34 import javadoc.tester.JavadocTester; 35 36 public class AccessSkipNav extends JavadocTester { 37 38 public static void main(String... args) throws Exception { 39 AccessSkipNav tester = new AccessSkipNav(); 40 tester.runTests(); 41 } 42 43 @Test 44 public void test() { 45 javadoc("-d", "out", 46 "-sourcepath", testSrc, 47 "p1", "p2"); 48 checkExit(Exit.OK); 49 50 // Testing only for the presence of the <a href> and <a id> 51 checkOutput("p1/C1.html", true, 52 // Top navbar <a href> 53 "<a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a>", 54 // Top navbar <a name> 55 "<a id=\"skip.navbar.top\">\n" 56 + "<!-- -->\n" 57 + "</a>", 58 // Bottom navbar <a href> 59 "<a href=\"#skip.navbar.bottom\" title=\"Skip navigation links\">Skip navigation links</a>", 60 // Bottom navbar <a name> 61 "<a id=\"skip.navbar.bottom\">\n" 62 + "<!-- -->\n" 63 + "</a>"); 64 } 65 } | 34 import javadoc.tester.JavadocTester; 35 36 public class AccessSkipNav extends JavadocTester { 37 38 public static void main(String... args) throws Exception { 39 AccessSkipNav tester = new AccessSkipNav(); 40 tester.runTests(); 41 } 42 43 @Test 44 public void test() { 45 javadoc("-d", "out", 46 "-sourcepath", testSrc, 47 "p1", "p2"); 48 checkExit(Exit.OK); 49 50 // Testing only for the presence of the <a href> and <a id> 51 checkOutput("p1/C1.html", true, 52 // Top navbar <a href> 53 "<a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a>", 54 // Top navbar <span id> 55 "<span class=\"skipNav\" id=\"skip.navbar.top\">\n" 56 + "<!-- -->\n" 57 + "</span>", 58 // Bottom navbar <a href> 59 "<a href=\"#skip.navbar.bottom\" title=\"Skip navigation links\">Skip navigation links</a>", 60 // Bottom navbar <span id> 61 "<span class=\"skipNav\" id=\"skip.navbar.bottom\">\n" 62 + "<!-- -->\n" 63 + "</span>"); 64 } 65 } |