48 checkExit(Exit.OK); |
48 checkExit(Exit.OK); |
49 checkSearchOutput("UnnamedPkgClass.html", true, true); |
49 checkSearchOutput("UnnamedPkgClass.html", true, true); |
50 checkJqueryAndImageFiles(true); |
50 checkJqueryAndImageFiles(true); |
51 checkSearchJS(); |
51 checkSearchJS(); |
52 checkFiles(false, |
52 checkFiles(false, |
53 "package-search-index.zip", |
53 "tag-search-index.zip", |
54 "tag-search-index.zip", |
|
55 "package-search-index.js", |
|
56 "tag-search-index.js"); |
54 "tag-search-index.js"); |
57 checkFiles(true, |
55 checkFiles(true, |
58 "member-search-index.zip", |
56 "package-search-index.zip", |
59 "type-search-index.zip", |
57 "member-search-index.zip", |
|
58 "type-search-index.zip", |
|
59 "package-search-index.js", |
60 "member-search-index.js", |
60 "member-search-index.js", |
61 "type-search-index.js"); |
61 "type-search-index.js"); |
62 } |
62 } |
63 |
63 |
64 @Test |
64 @Test |
73 checkSearchOutput(true); |
73 checkSearchOutput(true); |
74 checkSingleIndex(true, true); |
74 checkSingleIndex(true, true); |
75 checkSingleIndexSearchTagDuplication(); |
75 checkSingleIndexSearchTagDuplication(); |
76 checkJqueryAndImageFiles(true); |
76 checkJqueryAndImageFiles(true); |
77 checkSearchJS(); |
77 checkSearchJS(); |
|
78 checkAllPkgsAllClasses(); |
78 checkFiles(true, |
79 checkFiles(true, |
79 "member-search-index.zip", |
80 "member-search-index.zip", |
80 "package-search-index.zip", |
81 "package-search-index.zip", |
81 "tag-search-index.zip", |
82 "tag-search-index.zip", |
82 "type-search-index.zip", |
83 "type-search-index.zip", |
152 "type-search-index.zip", |
153 "type-search-index.zip", |
153 "member-search-index.js", |
154 "member-search-index.js", |
154 "package-search-index.js", |
155 "package-search-index.js", |
155 "tag-search-index.js", |
156 "tag-search-index.js", |
156 "type-search-index.js", |
157 "type-search-index.js", |
157 "index-all.html"); |
158 "index-all.html", |
|
159 "allpackages-index.html", |
|
160 "allclasses-index.html"); |
158 } |
161 } |
159 |
162 |
160 @Test |
163 @Test |
161 void test4() { |
164 void test4() { |
162 javadoc("-d", "out-4", |
165 javadoc("-d", "out-4", |
469 "<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
472 "<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
470 + "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
473 + "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
471 "<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
474 "<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
472 + "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
475 + "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>", |
473 "<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#SingleWord\">" |
476 "<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#SingleWord\">" |
474 + "SingleWord</a></span> - Search tag in pkg</dt>"); |
477 + "SingleWord</a></span> - Search tag in pkg</dt>", |
|
478 "<br><a href=\"../allclasses-index.html\">All Classes</a> " |
|
479 + "<a href=\"../allpackages-index.html\">All Packages</a>"); |
475 checkOutput("index-files/index-10.html", true, |
480 checkOutput("index-files/index-10.html", true, |
476 "<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#phrasewithspaces\">" |
481 "<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#phrasewithspaces\">" |
477 + "phrase with spaces</a></span> - Search tag in pkg</dt>", |
482 + "phrase with spaces</a></span> - Search tag in pkg</dt>", |
478 "<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#pkg\">" |
483 "<dt><span class=\"searchTagLink\"><a href=\"../pkg/package-summary.html#pkg\">" |
479 + "pkg</a></span> - Search tag in pkg</dt>", |
484 + "pkg</a></span> - Search tag in pkg</dt>", |
626 + " var urlPrefix=\"\";\n" |
631 + " var urlPrefix=\"\";\n" |
627 + " if (useModuleDirectories) {\n" |
632 + " if (useModuleDirectories) {\n" |
628 + " var slash = \"/\";\n" |
633 + " var slash = \"/\";\n" |
629 + " if (ui.item.category === catModules) {\n" |
634 + " if (ui.item.category === catModules) {\n" |
630 + " return ui.item.l + slash;\n" |
635 + " return ui.item.l + slash;\n" |
631 + " } else if (ui.item.category === catPackages) {\n" |
636 + " } else if (ui.item.category === catPackages && ui.item.m) {\n" |
632 + " return ui.item.m + slash;\n" |
637 + " return ui.item.m + slash;\n" |
633 + " } else if (ui.item.category === catTypes || ui.item.category === catMembers) {\n" |
638 + " } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) {\n" |
634 + " $.each(packageSearchIndex, function(index, item) {\n" |
639 + " $.each(packageSearchIndex, function(index, item) {\n" |
635 + " if (ui.item.p == item.l) {\n" |
640 + " if (ui.item.p == item.l) {\n" |
636 + " urlPrefix = item.m + slash;\n" |
641 + " urlPrefix = item.m + slash;\n" |
637 + " }\n" |
642 + " }\n" |
638 + " });\n" |
643 + " });\n" |
|
644 + " return urlPrefix;\n" |
|
645 + " } else {\n" |
639 + " return urlPrefix;\n" |
646 + " return urlPrefix;\n" |
640 + " }\n" |
647 + " }\n" |
641 + " }\n" |
648 + " }\n" |
642 + " return urlPrefix;\n" |
649 + " return urlPrefix;\n" |
643 + "}", |
650 + "}", |
671 + "<dd>with description</dd>\n" |
678 + "<dd>with description</dd>\n" |
672 + "<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
679 + "<dt><span class=\"searchTagLink\"><a href=\"../pkg2/TestError.html#SearchTagDeprecatedMethod\">" |
673 + "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
680 + "SearchTagDeprecatedMethod</a></span> - Search tag in pkg2.TestError</dt>\n" |
674 + "<dd>with description</dd>"); |
681 + "<dd>with description</dd>"); |
675 } |
682 } |
|
683 |
|
684 void checkAllPkgsAllClasses() { |
|
685 checkOutput("allclasses-index.html", true, |
|
686 "<table class=\"typeSummary\">\n" |
|
687 + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Classes</span>" |
|
688 + "<span class=\"tabEnd\"> </span></span><span id=\"t1\" class=\"tableTab\">" |
|
689 + "<span><a href=\"javascript:show(1);\">Interface Summary</a></span><span class=\"tabEnd\">" |
|
690 + " </span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">" |
|
691 + "Class Summary</a></span><span class=\"tabEnd\"> </span></span><span id=\"t3\" class=\"tableTab\">" |
|
692 + "<span><a href=\"javascript:show(4);\">Enum Summary</a></span><span class=\"tabEnd\"> " |
|
693 + "</span></span><span id=\"t4\" class=\"tableTab\"><span><a href=\"javascript:show(8);\">" |
|
694 + "Exception Summary</a></span><span class=\"tabEnd\"> </span></span>" |
|
695 + "<span id=\"t5\" class=\"tableTab\"><span><a href=\"javascript:show(16);\">" |
|
696 + "Error Summary</a></span><span class=\"tabEnd\"> </span></span>" |
|
697 + "<span id=\"t6\" class=\"tableTab\"><span><a href=\"javascript:show(32);\">Annotation Types Summary" |
|
698 + "</a></span><span class=\"tabEnd\"> </span></span></caption>\n" |
|
699 + "<tr>\n" |
|
700 + "<th class=\"colFirst\" scope=\"col\">Class</th>\n" |
|
701 + "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
|
702 + "</tr>", |
|
703 "var data = {\"i0\":32,\"i1\":2,\"i2\":4,\"i3\":2,\"i4\":2,\"i5\":1,\"i6\":2,\"i7\":32," |
|
704 + "\"i8\":2,\"i9\":4,\"i10\":16,\"i11\":16,\"i12\":8,\"i13\":8,\"i14\":1,\"i15\":2};"); |
|
705 checkOutput("allpackages-index.html", true, |
|
706 "<table class=\"packagesSummary\">\n" |
|
707 + "<caption><span>Package Summary</span><span class=\"tabEnd\"> </span></caption>\n" |
|
708 + "<tr>\n" |
|
709 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n" |
|
710 + "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
|
711 + "</tr>\n"); |
|
712 checkOutput("type-search-index.js", true, |
|
713 "{\"l\":\"All Classes\",\"url\":\"allclasses-index.html\"}"); |
|
714 checkOutput("package-search-index.js", true, |
|
715 "{\"l\":\"All Packages\",\"url\":\"allpackages-index.html\"}"); |
|
716 checkOutput("index-all.html", true, |
|
717 "<br><a href=\"allclasses-index.html\">All Classes</a> " |
|
718 + "<a href=\"allpackages-index.html\">All Packages</a>"); |
676 } |
719 } |
|
720 } |