Skip to content

Commit

Permalink
[JENKINS-17713] Not yet fixed.
Browse files Browse the repository at this point in the history
Links are now correct, thanks to Ancestor.getRelativePath as called from getRelativeLinkTo being correct.
But getRelativeNameFrom is not working, so anchor texts are ‘project » module’ rather than simply ‘module’.
  • Loading branch information
jglick committed Jun 19, 2013
1 parent 92a113c commit f8ec4c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/src/test/java/hudson/maven/MavenMultiModuleTest.java
@@ -1,5 +1,6 @@
package hudson.maven;

import com.gargoylesoftware.htmlunit.html.HtmlAnchor;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.junit.Assert;
import org.jvnet.hudson.test.Bug;
Expand Down Expand Up @@ -424,9 +425,9 @@ else if (parentModuleName.equals("org.jvnet.hudson.main.test.multimod.incr:modul
assertEquals(1, m.getLastBuild().getNumber());
JenkinsRule.WebClient wc = j.createWebClient();
HtmlPage modulesPage = wc.getPage(ms, "modules");
// for (HtmlAnchor a : modulesPage.getAnchors()) {
// System.out.println(a.getHrefAttribute() + " → " + a.asText());
// }
for (HtmlAnchor a : modulesPage.getAnchors()) {
System.out.println(a.getHrefAttribute() + " → " + a.asText());
}
modulesPage.getAnchorByText(m.getDisplayName()).openLinkInNewWindow();
}

Expand Down

0 comments on commit f8ec4c1

Please sign in to comment.