< prev index next >

test/langtools/jdk/javadoc/doclet/testModules/TestModules.java

Print this page




 427         checkExit(Exit.OK);
 428         checkModuleName(true);
 429     }
 430 
 431     /**
 432      * Test -linkoffline option.
 433      */
 434     @Test
 435     void testLinkOffline() {
 436         String url = "https://docs.oracle.com/javase/9/docs/api/";
 437         javadoc("-d", "out-linkoffline", "-use", "--show-module-contents=all", "-Xdoclint:none",
 438                 "--module-source-path", testSrc,
 439                 "--module", "moduleA,moduleB",
 440                 "-linkoffline", url, testSrc + "/jdk",
 441                 "testpkgmdlA", "testpkgmdlB", "testpkg3mdlB");
 442         checkExit(Exit.OK);
 443         checkLinkOffline();
 444     }
 445 
 446     void checkDescription(boolean found) {
 447         checkOutput("moduleA-summary.html", found,
 448                 "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 449                 + "<a name=\"module.description\">\n"
 450                 + "<!--   -->\n"
 451                 + "</a>\n"
 452                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 453                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
 454         checkOutput("moduleB-summary.html", found,
 455                 "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 456                 + "<a name=\"module.description\">\n"
 457                 + "<!--   -->\n"
 458                 + "</a>\n"
 459                 + "<div class=\"block\">This is a test description for the moduleB module. Search "
 460                 + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
 461         checkOutput("overview-summary.html", found,
 462                 "</script>\n"
 463                 + "<div class=\"contentContainer\">\n"
 464                 + "<div class=\"block\">The overview summary page header.</div>\n"
 465                 + "</div>\n"
 466                 + "<div class=\"contentContainer\">\n"
 467                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 468                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 469         checkOutput("overview-summary.html", false,
 470                 "</table>\n"
 471                 + "</div>\n"
 472                 + "<div class=\"contentContainer\">\n"
 473                 + "<div class=\"block\">The overview summary page header.</div>\n"
 474                 + "</div>\n"
 475                 + "<div class=\"contentContainer\">\n"
 476                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 477                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 478     }
 479 
 480     void checkNoDescription(boolean found) {
 481         checkOutput("moduleA-summary.html", found,
 482                 "<div class=\"contentContainer\">\n"
 483                 + "<ul class=\"blockList\">\n"
 484                 + "<li class=\"blockList\">\n"
 485                 + "<ul class=\"blockList\">\n"
 486                 + "<li class=\"blockList\">\n"
 487                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 488         checkOutput("moduleB-summary.html", found,
 489                 "<div class=\"contentContainer\">\n"
 490                 + "<ul class=\"blockList\">\n"
 491                 + "<li class=\"blockList\">\n"
 492                 + "<ul class=\"blockList\">\n"
 493                 + "<li class=\"blockList\">\n"
 494                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 495     }
 496 
 497     void checkHtml5Description(boolean found) {
 498         checkOutput("moduleA-summary.html", found,
 499                 "<section role=\"region\">\n"
 500                 + "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
 501                 + " This API element is subject to removal in a future version.</span>\n"
 502                 + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
 503                 + "</div>\n"
 504                 + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 505                 + "<a id=\"module.description\">\n"
 506                 + "<!--   -->\n"
 507                 + "</a>\n"
 508                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 509                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
 510         checkOutput("moduleB-summary.html", found,
 511                 "<section role=\"region\">\n"
 512                 + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 513                 + "<a id=\"module.description\">\n"
 514                 + "<!--   -->\n"
 515                 + "</a>\n"
 516                 + "<div class=\"block\">This is a test description for the moduleB module. Search "
 517                 + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
 518         checkOutput("overview-summary.html", found,
 519                 "</nav>\n"
 520                 + "</header>\n"
 521                 + "<main role=\"main\">\n"
 522                 + "<div class=\"contentContainer\">\n"
 523                 + "<div class=\"block\">The overview summary page header.</div>\n"
 524                 + "</div>\n"
 525                 + "<div class=\"contentContainer\">\n"
 526                 + "<table class=\"overviewSummary\">\n"
 527                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 528         checkOutput("overview-summary.html", false,
 529                 "</table>\n"
 530                 + "</div>\n"
 531                 + "</main>\n"
 532                 + "<main role=\"main\">\n"
 533                 + "<div class=\"contentContainer\">\n"
 534                 + "<div class=\"block\">The overview summary page header.</div>\n"
 535                 + "</div>\n"
 536                 + "<div class=\"contentContainer\">\n"
 537                 + "<table class=\"overviewSummary\">\n"
 538                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 539     }
 540 
 541     void checkHtml5NoDescription(boolean found) {
 542         checkOutput("moduleA-summary.html", found,
 543                 "<div class=\"contentContainer\">\n"
 544                 + "<ul class=\"blockList\">\n"
 545                 + "<li class=\"blockList\">\n"
 546                 + "<ul class=\"blockList\">\n"
 547                 + "<li class=\"blockList\">\n"
 548                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 549         checkOutput("moduleB-summary.html", found,
 550                 "<div class=\"contentContainer\">\n"
 551                 + "<ul class=\"blockList\">\n"
 552                 + "<li class=\"blockList\">\n"
 553                 + "<ul class=\"blockList\">\n"
 554                 + "<li class=\"blockList\">\n"
 555                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 556     }
 557 
 558     void checkModuleLink() {
 559         checkOutput("overview-summary.html", true,
 560                 "<li>Module</li>");
 561         checkOutput("moduleA-summary.html", true,
 562                 "<li class=\"navBarCell1Rev\">Module</li>");
 563         checkOutput("moduleB-summary.html", true,
 564                 "<li class=\"navBarCell1Rev\">Module</li>");
 565         checkOutput("testpkgmdlA/class-use/TestClassInModuleA.html", true,
 566                 "<li><a href=\"../../moduleA-summary.html\">Module</a></li>");
 567         checkOutput("testpkgmdlB/package-summary.html", true,
 568                 "<li><a href=\"../moduleB-summary.html\">Module</a></li>");
 569         checkOutput("testpkgmdlB/TestClassInModuleB.html", true,
 570                 "<li><a href=\"../moduleB-summary.html\">Module</a></li>");
 571         checkOutput("testpkgmdlB/class-use/TestClassInModuleB.html", true,
 572                 "<li><a href=\"../../moduleB-summary.html\">Module</a></li>");
 573     }
 574 
 575     void checkNoModuleLink() {
 576         checkOutput("testpkgnomodule/package-summary.html", true,
 577                 "<ul class=\"navList\" title=\"Navigation\">\n"
 578                 + "<li><a href=\"../testpkgnomodule/package-summary.html\">Package</a></li>");
 579         checkOutput("testpkgnomodule/TestClassNoModule.html", true,
 580                 "<ul class=\"navList\" title=\"Navigation\">\n"
 581                 + "<li><a href=\"../testpkgnomodule/package-summary.html\">Package</a></li>");
 582         checkOutput("testpkgnomodule/class-use/TestClassNoModule.html", true,
 583                 "<ul class=\"navList\" title=\"Navigation\">\n"
 584                 + "<li><a href=\"../../testpkgnomodule/package-summary.html\">Package</a></li>");
 585     }
 586 
 587     void checkModuleTags() {
 588         checkOutput("moduletags-summary.html", true,
 589                 "Type Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in "
 590                 + "testpkgmdltags\"><code>TestClassInModuleTags</code></a>.",
 591                 "Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#"
 592                 + "testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.",
 593                 "Package Link: <a href=\"testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.",
 594                 "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
 595                 + "<dd>JDK 9</dd>",
 596                 "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
 597                 + "<dd>\"Test see tag\", \n"
 598                 + "<a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>"
 599                 + "TestClassInModuleTags</code></a></dd>",
 600                 "<dt><span class=\"simpleTagLabel\">Regular Tag:</span></dt>\n"
 601                 + "<dd>Just a regular simple tag.</dd>",
 602                 "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
 603                 + "<dd>Just a simple module tag.</dd>",
 604                 "<dt><span class=\"simpleTagLabel\">Version:</span></dt>\n"
 605                 + "<dd>1.0</dd>",
 606                 "<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n"
 607                 + "<dd>Bhavesh Patel</dd>");
 608         checkOutput("testpkgmdltags/TestClassInModuleTags.html", false,
 609                 "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
 610                 + "<dd>Just a simple module tag.</dd>");
 611     }
 612 
 613     void checkOverviewSummaryModules() {
 614         checkOutput("overview-summary.html", true,
 615                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 616                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 617                 + "<tr>\n"
 618                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 619                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 620                 + "</tr>");
 621         checkOutput("overview-summary.html", false,
 622                 "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 623                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 624                 + "<tr>\n"
 625                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 626                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 627                 + "</tr>");
 628     }
 629 
 630     void checkOverviewSummaryPackages() {
 631         checkOutput("overview-summary.html", false,
 632                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 633                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 634                 + "<tr>\n"
 635                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 636                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 637                 + "</tr>",
 638                 "</table>\n"
 639                 + "</div>\n"
 640                 + "<div class=\"contentContainer\">\n"
 641                 + "<div class=\"block\">The overview summary page header.</div>\n"
 642                 + "</div>\n"
 643                 + "<div class=\"contentContainer\">\n"
 644                 + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 645                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 646         checkOutput("overview-summary.html", true,
 647                 "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 648                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 649                 + "<tr>\n"
 650                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 651                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 652                 + "</tr>",
 653                 "</script>\n"
 654                 + "<div class=\"contentContainer\">\n"
 655                 + "<div class=\"block\">The overview summary page header.</div>\n"
 656                 + "</div>\n"
 657                 + "<div class=\"contentContainer\">\n"
 658                 + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 659                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 660     }
 661 
 662     void checkHtml5OverviewSummaryModules() {
 663         checkOutput("overview-summary.html", true,
 664                 "<table class=\"overviewSummary\">\n"
 665                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 666                 + "<tr>\n"
 667                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 668                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 669                 + "</tr>");
 670         checkOutput("overview-summary.html", false,
 671                 "<table class=\"overviewSummary\">\n"
 672                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 673                 + "<tr>\n"
 674                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 675                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 676                 + "</tr>");
 677     }
 678 
 679     void checkHtml5OverviewSummaryPackages() {
 680         checkOutput("overview-summary.html", false,
 681                 "<table class=\"overviewSummary\">\n"
 682                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 683                 + "<tr>\n"
 684                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 685                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 686                 + "</tr>",
 687                 "</table>\n"
 688                 + "</div>\n"
 689                 + "</main>\n"
 690                 + "<main role=\"main\">\n"
 691                 + "<div class=\"contentContainer\">\n"
 692                 + "<div class=\"block\">The overview summary page header.</div>\n"
 693                 + "</div>\n"
 694                 + "<div class=\"contentContainer\"><a id=\"Packages\">\n"
 695                 + "<!--   -->\n"
 696                 + "</a>\n"
 697                 + "<table class=\"overviewSummary\">\n"
 698                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 699         checkOutput("overview-summary.html", true,
 700                 "<table class=\"overviewSummary\">\n"
 701                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 702                 + "<tr>\n"
 703                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 704                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 705                 + "</tr>",
 706                 "</script>\n"
 707                 + "</nav>\n"
 708                 + "</header>\n"
 709                 + "<main role=\"main\">\n"
 710                 + "<div class=\"contentContainer\">\n"
 711                 + "<div class=\"block\">The overview summary page header.</div>\n"
 712                 + "</div>\n"
 713                 + "<div class=\"contentContainer\">\n"
 714                 + "<table class=\"overviewSummary\">\n"
 715                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 716     }
 717 
 718     void checkModuleSummary() {
 719         checkOutput("moduleA-summary.html", true,
 720                 "<ul class=\"subNavList\">\n"
 721                 + "<li>Module:&nbsp;</li>\n"
 722                 + "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a "
 723                 + "href=\"#modules.summary\">Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">"
 724                 + "Packages</a>&nbsp;|&nbsp;Services</li>\n"
 725                 + "</ul>",
 726                 "<!-- ============ MODULES SUMMARY =========== -->\n"
 727                 + "<a name=\"modules.summary\">\n"
 728                 + "<!--   -->\n"
 729                 + "</a>",
 730                 "<tr class=\"altColor\" id=\"i0\">\n"
 731                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
 732                 + "<td class=\"colLast\">&nbsp;</td>\n"
 733                 + "</tr>",
 734                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
 735                 + "<a name=\"packages.summary\">\n"
 736                 + "<!--   -->\n"
 737                 + "</a>",
 738                 "<tr class=\"altColor\">\n"
 739                 + "<td class=\"colFirst\">transitive</td>\n"
 740                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
 741                 + "<td class=\"colLast\">\n"
 742                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 743                 + "</td>\n"
 744                 + "</tr>");
 745         checkOutput("moduleB-summary.html", true,
 746                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;Modules&nbsp;|&nbsp;"
 747                 + "<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">"
 748                 + "Services</a></li>",
 749                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
 750                 + "<a name=\"packages.summary\">\n"
 751                 + "<!--   -->\n"
 752                 + "</a>",
 753                 "<tr class=\"altColor\" id=\"i0\">\n"
 754                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
 755                 + "<td class=\"colLast\">&nbsp;</td>\n"
 756                 + "</tr>",
 757                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
 758                 + "<a name=\"packages.summary\">\n"
 759                 + "<!--   -->\n"
 760                 + "</a>",
 761                 "<!-- ============ SERVICES SUMMARY =========== -->\n"
 762                 + "<a name=\"services.summary\">\n"
 763                 + "<!--   -->\n"
 764                 + "</a>",
 765                 "<tr class=\"altColor\">\n"
 766                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
 767                 + "<td class=\"colLast\">\n"
 768                 + "<div class=\"block\">With a test description for uses.</div>\n</td>\n"
 769                 + "</tr>",
 770                 "<caption><span>Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 771                 + "<tr>\n"
 772                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 773                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 774                 + "</tr>",
 775                 "<caption><span>Uses</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 776                 + "<tr>\n"
 777                 + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
 778                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 779                 + "</tr>",
 780                 "<caption><span>Provides</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 781                 + "<tr>\n"
 782                 + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
 783                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 784                 + "</tr>");
 785     }
 786 
 787     void checkAggregatorModuleSummary() {
 788         checkOutput("moduleT-summary.html", true,
 789                 "<div class=\"header\">\n"
 790                 + "<h1 title=\"Module\" class=\"title\">Module&nbsp;moduleT</h1>\n"
 791                 + "</div>",
 792                 "<div class=\"block\">This is a test description for the moduleT module. "
 793                 + "Search phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>. "
 794                 + "Make sure there are no exported packages.</div>",
 795                 "<tbody>\n"
 796                 + "<tr class=\"altColor\">\n"
 797                 + "<td class=\"colFirst\">transitive</td>\n"
 798                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
 799                 + "<td class=\"colLast\">\n"
 800                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 801                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 802                 + "</td>\n"
 803                 + "</tr>\n"
 804                 + "<tr class=\"rowColor\">\n"
 805                 + "<td class=\"colFirst\">transitive</td>\n"
 806                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
 807                 + "<td class=\"colLast\">\n"
 808                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 809                 + "</td>\n"
 810                 + "</tr>\n"
 811                 + "</tbody>");
 812     }
 813 
 814     void checkNegatedModuleSummary() {
 815         checkOutput("moduleA-summary.html", false,
 816                 "<!-- ============ SERVICES SUMMARY =========== -->\n"
 817                 + "<a name=\"services.summary\">\n"
 818                 + "<!--   -->\n"
 819                 + "</a>");
 820     }
 821 
 822     void checkModuleClickThroughLinks() {
 823         checkOutput("module-overview-frame.html", true,
 824                 "<li><a href=\"moduleA-frame.html\" target=\"packageListFrame\" "
 825                 + "onclick=\"updateModuleFrame('moduleA-type-frame.html','moduleA-summary.html');"
 826                 + "\">moduleA</a></li>",
 827                 "<li><a href=\"moduleB-frame.html\" target=\"packageListFrame\" "
 828                 + "onclick=\"updateModuleFrame('moduleB-type-frame.html','moduleB-summary.html');"
 829                 + "\">moduleB</a></li>");
 830         checkOutput("script.js", true,
 831                 "function updateModuleFrame(pFrame, cFrame)\n"
 832                 + "{\n"
 833                 + "    top.packageFrame.location = pFrame;\n"
 834                 + "    top.classFrame.location = cFrame;\n"
 835                 + "}");
 836     }
 837 
 838     void checkModuleClickThrough(boolean found) {
 839         checkFiles(found,
 840                 "moduleA-type-frame.html",
 841                 "moduleB-type-frame.html");
 842     }
 843 
 844     void checkModuleFilesAndLinks(boolean found) {
 845         checkFileAndOutput("testpkgmdlA/package-summary.html", found,
 846                 "<li><a href=\"../moduleA-summary.html\">Module</a></li>",
 847                 "<div class=\"subTitle\"><span class=\"moduleLabelInPackage\">Module</span>&nbsp;"
 848                 + "<a href=\"../moduleA-summary.html\">moduleA</a></div>");
 849         checkFileAndOutput("testpkgmdlA/TestClassInModuleA.html", found,
 850                 "<li><a href=\"../moduleA-summary.html\">Module</a></li>",
 851                 "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
 852                 + "<a href=\"../moduleA-summary.html\">moduleA</a></div>");
 853         checkFileAndOutput("testpkgmdlB/AnnotationType.html", found,
 854                 "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
 855                 + "<a href=\"../moduleB-summary.html\">moduleB</a></div>",
 856                 "<div class=\"subTitle\"><span class=\"packageLabelInType\">"
 857                 + "Package</span>&nbsp;<a href=\"package-summary.html\">testpkgmdlB</a></div>");
 858         checkFiles(found,
 859                 "moduleA-frame.html",
 860                 "moduleA-summary.html",
 861                 "module-overview-frame.html");
 862     }
 863 
 864     void checkModuleFrameFiles(boolean found) {
 865         checkFiles(found,
 866                 "moduleC-frame.html",
 867                 "moduleC-type-frame.html",
 868                 "module-overview-frame.html");
 869         checkFiles(true,
 870                 "moduleC-summary.html",
 871                 "allclasses-frame.html",
 872                 "allclasses-noframe.html");
 873     }
 874 
 875     void checkAllModulesLink(boolean found) {
 876         checkOutput("overview-frame.html", found,
 877                 "<li><a href=\"module-overview-frame.html\" target=\"packageListFrame\">All&nbsp;Modules</a></li>");
 878     }
 879 
 880     void checkModulesInSearch(boolean found) {
 881         checkOutput("index-all.html", found,
 882                 "<dl>\n"
 883                 + "<dt><a href=\"moduleA-summary.html\">moduleA</a> - module moduleA</dt>\n"
 884                 + "<dd>\n"
 885                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 886                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 887                 + "</dd>\n"
 888                 + "<dt><a href=\"moduleB-summary.html\">moduleB</a> - module moduleB</dt>\n"
 889                 + "<dd>\n"
 890                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 891                 + "</dd>\n"
 892                 + "</dl>",
 893                 "<dl>\n"
 894                 + "<dt><span class=\"searchTagLink\"><a href=\"moduleA-summary.html#searchphrase\">"
 895                 + "search phrase</a></span> - Search tag in moduleA</dt>\n"
 896                 + "<dd>with description</dd>\n"
 897                 + "<dt><span class=\"searchTagLink\"><a href=\"moduleB-summary.html#search_word\">"
 898                 + "search_word</a></span> - Search tag in moduleB</dt>\n"
 899                 + "<dd>&nbsp;</dd>\n"
 900                 + "</dl>");
 901         checkOutput("index-all.html", false,
 902                 "<dt><span class=\"searchTagLink\"><a href=\"moduleA-summary.html#searchphrase\">"
 903                 + "search phrase</a></span> - Search tag in moduleA</dt>\n"
 904                 + "<dd>with description</dd>\n"
 905                 + "<dt><span class=\"searchTagLink\"><a href=\"moduleA-summary.html#searchphrase\">"
 906                 + "search phrase</a></span> - Search tag in moduleA</dt>\n"
 907                 + "<dd>with description</dd>");
 908     }
 909 
 910     void checkModuleModeCommon() {
 911         checkOutput("overview-summary.html", true,
 912                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
 913                 + "<td class=\"colLast\">\n"
 914                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 915                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 916                 + "</td>",
 917                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
 918                 + "<td class=\"colLast\">\n"
 919                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 920                 + "</td>",
 921                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduletags-summary.html\">moduletags</a></th>\n"
 922                 + "<td class=\"colLast\">\n"
 923                 + "<div class=\"block\">This is a test description for the moduletags module.<br>\n"
 924                 + " Type Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>TestClassInModuleTags</code></a>.<br>\n"
 925                 + " Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.<br>\n"
 926                 + " Package Link: <a href=\"testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.<br></div>\n"
 927                 + "</td>");
 928         checkOutput("moduleA-summary.html", true,
 929                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">"
 930                 + "Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
 931                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
 932                 + "<td class=\"colLast\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
 933         checkOutput("moduleB-summary.html", true,
 934                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
 935                 + "<td class=\"colLast\">\n"
 936                 + "<div class=\"block\">With a test description for uses.</div>\n</td>\n");
 937         checkOutput("moduletags-summary.html", true,
 938                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">Modules"
 939                 + "</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
 940                 "<table class=\"requiresSummary\" summary=\"Indirect Requires table, listing modules, and an explanation\">\n"
 941                 + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>",
 942                 "<td class=\"colFirst\">transitive</td>\n"
 943                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
 944                 + "<td class=\"colLast\">\n"
 945                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 946                 + "</td>",
 947                 "<table class=\"packagesSummary\" summary=\"Indirect Exports table, listing modules, and packages\">\n"
 948                 + "<caption><span>Indirect Exports</span><span class=\"tabEnd\">&nbsp;</span></caption>",
 949                 "<td class=\"colFirst\">transitive static</td>\n"
 950                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
 951                 + "<td class=\"colLast\">\n"
 952                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 953                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 954                 + "</td>",
 955                 "<table class=\"requiresSummary\" summary=\"Requires table, listing modules, and an explanation\">\n"
 956                 + "<caption><span>Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 957                 + "<tr>\n"
 958                 + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
 959                 + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
 960                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
 961                 "<table class=\"requiresSummary\" summary=\"Indirect Requires table, listing modules, and an explanation\">\n"
 962                 + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 963                 + "<tr>\n"
 964                 + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
 965                 + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
 966                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
 967                 "<table class=\"packagesSummary\" summary=\"Indirect Opens table, listing modules, and packages\">\n"
 968                 + "<caption><span>Indirect Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 969                 + "<tr>\n"
 970                 + "<th class=\"colFirst\" scope=\"col\">From</th>\n"
 971                 + "<th class=\"colLast\" scope=\"col\">Packages</th>\n"
 972                 + "</tr>\n",
 973                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB-summary.html\">moduleB</a></th>\n"
 974                 + "<td class=\"colLast\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
 975     }
 976 
 977     void checkModuleModeApi(boolean found) {
 978         checkOutput("moduleA-summary.html", found,
 979                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
 980                 + "<td class=\"colLast\">&nbsp;</td>");
 981         checkOutput("moduleB-summary.html", found,
 982                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;Modules&nbsp;|&nbsp;"
 983                 + "<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">Services</a></li>",
 984                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
 985                 + "<td class=\"colLast\">&nbsp;</td>",
 986                 "<table class=\"packagesSummary\" summary=\"Packages table, listing packages, and an explanation\">\n"
 987                 + "<caption><span>Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 988                 + "<tr>\n"
 989                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 990                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 991                 + "</tr>\n"
 992                 + "<tbody>\n"
 993                 + "<tr class=\"altColor\" id=\"i0\">\n"
 994                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
 995                 + "<td class=\"colLast\">&nbsp;</td>\n"
 996                 + "</tr>\n"
 997                 + "</tbody>\n"
 998                 + "</table>");
 999         checkOutput("moduletags-summary.html", true,
1000                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdltags/package-summary.html\">testpkgmdltags</a></th>\n"
1001                 + "<td class=\"colLast\">&nbsp;</td>");
1002     }
1003 
1004     void checkModuleModeAll(boolean found) {
1005         checkOutput("moduleA-summary.html", found,
1006                 "<td class=\"colFirst\"> </td>\n"
1007                 + "<th class=\"colSecond\" scope=\"row\">java.base</th>\n"
1008                 + "<td class=\"colLast\">&nbsp;</td>",
1009                 "<td class=\"colFirst\"> </td>\n"
1010                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"moduleC-summary.html\">moduleC</a></th>\n"
1011                 + "<td class=\"colLast\">\n"
1012                 + "<div class=\"block\">This is a test description for the moduleC module.</div>\n"
1013                 + "</td>",
1014                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleC-summary.html\">moduleC</a></th>\n"
1015                 + "<td class=\"colLast\"><a href=\"testpkgmdlC/package-summary.html\">testpkgmdlC</a></td>",
1016                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
1017                 + "<td class=\"colSecond\">All Modules</td>\n"
1018                 + "<td class=\"colLast\">&nbsp;</td>",
1019                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span>"
1020                 + "<span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(1);\">Exports</a></span>"
1021                 + "<span class=\"tabEnd\">&nbsp;</span></span><span id=\"t3\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(4);\">"
1022                 + "Concealed</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1023                 "<th class=\"colFirst\" scope=\"row\"><a href=\"concealedpkgmdlA/package-summary.html\">concealedpkgmdlA</a></th>\n"
1024                 + "<td class=\"colSecond\">None</td>\n"
1025                 + "<td class=\"colLast\">&nbsp;</td>");
1026         checkOutput("moduleB-summary.html", found,
1027                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">"
1028                 + "Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">Services</a></li>",
1029                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
1030                 + "<td class=\"colSecond\">None</td>\n"
1031                 + "<td class=\"colSecond\">All Modules</td>\n"
1032                 + "<td class=\"colLast\">&nbsp;</td>",
1033                 "<td class=\"colFirst\"> </td>\n"
1034                 + "<th class=\"colSecond\" scope=\"row\">java.base</th>\n"
1035                 + "<td class=\"colLast\">&nbsp;</td>",
1036                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClass2InModuleB.html\" title=\"class in testpkgmdlB\">TestClass2InModuleB</a></th>\n"
1037                 + "<td class=\"colLast\">&nbsp;</td>",
1038                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdlB/TestInterface2InModuleB.html\" title=\"interface in testpkg2mdlB\">TestInterface2InModuleB</a></th>\n"
1039                 + "<td class=\"colLast\">&nbsp;<br>(<span class=\"implementationLabel\">Implementation(s):</span>&nbsp;<a href=\"testpkgmdlB/TestClass2InModuleB.html\" "
1040                 + "title=\"class in testpkgmdlB\">TestClass2InModuleB</a>)</td>",
1041                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdlB/TestInterfaceInModuleB.html\" title=\"interface in testpkg2mdlB\">TestInterfaceInModuleB</a></th>\n"
1042                 + "<td class=\"colLast\">&nbsp;<br>(<span class=\"implementationLabel\">Implementation(s):</span>&nbsp;<a href=\"testpkgmdlB/TestClassInModuleB.html\" "
1043                 + "title=\"class in testpkgmdlB\">TestClassInModuleB</a>)</td>",
1044                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1045                 + "<a href=\"javascript:showPkgs(1);\">Exports</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span>"
1046                 + "<a href=\"javascript:showPkgs(2);\">Opens</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>");
1047         checkOutput("moduleC-summary.html", found,
1048                 "<caption><span>Exports</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
1049                 + "<tr>\n"
1050                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
1051                 + "<th class=\"colSecond\" scope=\"col\">Exported To Modules</th>\n"
1052                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
1053                 + "</tr>");
1054         checkOutput("moduletags-summary.html", true,
1055                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdltags/package-summary.html\">testpkgmdltags</a></th>\n"
1056                 + "<td class=\"colLast\">&nbsp;</td>");
1057     }
1058 
1059     void checkModuleDeprecation(boolean found) {
1060         checkOutput("moduleA-summary.html", found,
1061                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
1062                 + " This API element is subject to removal in a future version.</span>\n"
1063                 + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
1064                 + "</div>");
1065         checkOutput("deprecated-list.html", found,
1066                 "<ul>\n"
1067                 + "<li><a href=\"#forRemoval\">For Removal</a></li>\n"
1068                 + "<li><a href=\"#module\">Modules</a></li>\n"
1069                 + "</ul>",
1070                 "<tr class=\"altColor\">\n"
1071                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"moduleA-summary.html\">moduleA</a></th>\n"
1072                 + "<td class=\"colLast\">\n"
1073                 + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
1074                 + "</td>\n"
1075                 + "</tr>");
1076         checkOutput("moduleB-summary.html", !found,
1077                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
1078                 + "<div class=\"deprecationComment\">This module is deprecated using just the javadoc tag.</div>\n");
1079         checkOutput("moduletags-summary.html", found,
1080                 "<p>@Deprecated\n"
1081                 + "</p>",
1082                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span></div>");
1083     }
1084 
1085     void checkModuleAnnotation() {
1086         checkOutput("moduleB-summary.html", true,
1087                 "<p><a href=\"testpkgmdlB/AnnotationType.html\" title=\"annotation in testpkgmdlB\">@AnnotationType</a>(<a href=\"testpkgmdlB/AnnotationType.html#optional--\">optional</a>=\"Module Annotation\",\n"
1088                 + "                <a href=\"testpkgmdlB/AnnotationType.html#required--\">required</a>=2016)\n"
1089                 + "</p>");
1090         checkOutput("moduleB-summary.html", false,
1091                 "@AnnotationTypeUndocumented");
1092     }
1093 
1094     void checkOverviewFrame(boolean found) {
1095         checkOutput("index.html", !found,
1096                 "<iframe src=\"overview-frame.html\" name=\"packageListFrame\" title=\"All Packages\"></iframe>");
1097         checkOutput("index.html", found,
1098                 "<iframe src=\"module-overview-frame.html\" name=\"packageListFrame\" title=\"All Modules\"></iframe>");
1099     }
1100 
1101     void checkModuleSummaryNoExported(boolean found) {
1102         checkOutput("moduleNoExport-summary.html", found,
1103                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
1104                 + "<a name=\"packages.summary\">\n"
1105                 + "<!--   -->\n"
1106                 + "</a>",
1107                 "<caption><span>Concealed</span><span class=\"tabEnd\">&nbsp;</span></caption>");
1108     }
1109 
1110     void checkGroupOption() {
1111         checkOutput("overview-summary.html", true,
1112                 "<div class=\"contentContainer\">\n"
1113                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1114                 + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span class=\"tabEnd\">&nbsp;"
1115                 + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showGroups(1);\">"
1116                 + "Module Group A</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\">"
1117                 + "<span><a href=\"javascript:showGroups(2);\">Module Group B &amp; C</a></span><span class=\"tabEnd\">"
1118                 + "&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span><a href=\"javascript:showGroups(4);\">"
1119                 + "Other Modules</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1120                 "var groups = {\"i0\":1,\"i1\":2,\"i2\":2,\"i3\":4};\n"
1121                 + "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"Module Group A\"],2:[\"t2\",\"Module Group B & C\"],4:[\"t4\",\"Other Modules\"]};\n"
1122                 + "var altColor = \"altColor\";\n"
1123                 + "var rowColor = \"rowColor\";\n"
1124                 + "var tableTab = \"tableTab\";\n"
1125                 + "var activeTableTab = \"activeTableTab\";");
1126         checkOutput("overview-summary.html", false,
1127                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1128                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>",
1129                 "Java SE Modules");
1130     }
1131 
1132     void checkGroupOptionOrdering() {
1133         checkOutput("overview-summary.html", true,
1134                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span "
1135                 + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1136                 + "<a href=\"javascript:showGroups(1);\">B Group</a></span><span class=\"tabEnd\">"
1137                 + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
1138                 + "C Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
1139                 + "<span><a href=\"javascript:showGroups(4);\">A Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
1140                 + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:showGroups(8);\">Other Modules"
1141                 + "</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1142                 "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"B Group\"],2:[\"t2\",\"C Group\"],"
1143                 + "4:[\"t4\",\"A Group\"],8:[\"t8\",\"Other Modules\"]};");
1144         checkOutput("overview-summary.html", false,
1145                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span "
1146                 + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1147                 + "<a href=\"javascript:showGroups(1);\">A Group</a></span><span class=\"tabEnd\">"
1148                 + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
1149                 + "B Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
1150                 + "<span><a href=\"javascript:showGroups(4);\">C Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
1151                 + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:showGroups(8);\">Other Modules"
1152                 + "</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1153                 "Java SE Modules");
1154     }
1155 
1156     void checkUnnamedModuleGroupOption() {
1157         checkOutput("overview-summary.html", true,
1158                 "<div class=\"contentContainer\">\n"
1159                 + "<div class=\"block\">The overview summary page header.</div>\n"
1160                 + "</div>\n"
1161                 + "<div class=\"contentContainer\">\n"
1162                 + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
1163                 + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;"
1164                 + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showGroups(1);\">"
1165                 + "Package Group 0</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" "
1166                 + "class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">Package Group 1</a></span>"
1167                 + "<span class=\"tabEnd\">&nbsp;</span></span></caption>",
1168                 "var groups = {\"i0\":1,\"i1\":2};\n"
1169                 + "var tabs = {65535:[\"t0\",\"All Packages\"],1:[\"t1\",\"Package Group 0\"],2:[\"t2\",\"Package Group 1\"]};\n"
1170                 + "var altColor = \"altColor\";\n"
1171                 + "var rowColor = \"rowColor\";\n"
1172                 + "var tableTab = \"tableTab\";\n"
1173                 + "var activeTableTab = \"activeTableTab\";");
1174     }
1175 
1176     void checkGroupOptionPackageOrdering() {
1177         checkOutput("overview-summary.html", true,
1178                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span "
1179                 + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1180                 + "<a href=\"javascript:showGroups(1);\">Z Group</a></span><span class=\"tabEnd\">"
1181                 + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
1182                 + "A Group</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1183                 "var tabs = {65535:[\"t0\",\"All Packages\"],1:[\"t1\",\"Z Group\"],2:[\"t2\",\"A Group\"]};");
1184     }
1185 
1186     void checkGroupOptionSingleModule() {
1187         checkOutput("overview-summary.html", true,
1188                 "<div class=\"contentContainer\">\n"
1189                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1190                 + "<caption><span>Module Group B</span><span class=\"tabEnd\">&nbsp;</span></caption>");
1191         checkOutput("overview-summary.html", false,
1192                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1193                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
1194     }
1195 
1196     void checkModuleName(boolean found) {
1197         checkOutput("test.moduleFullName-summary.html", found,
1198                 "<div class=\"header\">\n"
1199                 + "<h1 title=\"Module\" class=\"title\">Module&nbsp;test.moduleFullName</h1>\n"
1200                 + "</div>");
1201         checkOutput("index-all.html", found,
1202                 "<h2 class=\"title\">T</h2>\n"
1203                 + "<dl>\n"
1204                 + "<dt><a href=\"test.moduleFullName-summary.html\">test.moduleFullName</a> - module test.moduleFullName</dt>\n"
1205                 + "<dd>\n"
1206                 + "<div class=\"block\">This is a test description for the test.moduleFullName.</div>\n"
1207                 + "</dd>");
1208         checkOutput("module-overview-frame.html", found,
1209                 "<h2 title=\"Modules\">Modules</h2>\n"
1210                 + "<ul title=\"Modules\">\n"
1211                 + "<li><a href=\"moduleB-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('moduleB-type-frame.html','moduleB-summary.html');\">moduleB</a></li>\n"
1212                 + "<li><a href=\"test.moduleFullName-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('test.moduleFullName-type-frame.html','test.moduleFullName-summary.html');\">test.moduleFullName</a></li>\n"
1213                 + "</ul>");
1214         checkOutput("test.moduleFullName-summary.html", !found,
1215                 "<div class=\"header\">\n"
1216                 + "<h1 title=\"Module\" class=\"title\">Module&nbsp;moduleFullName</h1>\n"
1217                 + "</div>");
1218         checkOutput("index-all.html", !found,
1219                 "<dl>\n"
1220                 + "<dt><a href=\"test.moduleFullName-summary.html\">moduleFullName</a> - module moduleFullName</dt>\n"
1221                 + "<dd>\n"
1222                 + "<div class=\"block\">This is a test description for the test.moduleFullName.</div>\n"
1223                 + "</dd>\n"
1224                 + "</dl>");
1225     }
1226 
1227     void checkLinkOffline() {
1228         checkOutput("testpkg3mdlB/package-summary.html", true,
1229                 "<a href=\"https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true\" "
1230                 + "title=\"class or interface in java.lang\" class=\"externalLink\"><code>Link to String Class</code></a>");
1231         checkOutput("testpkg3mdlB/package-summary.html", true,
1232                 "<a href=\"https://docs.oracle.com/javase/9/docs/api/java/lang/package-summary.html?is-external=true\" "
1233                 + "class=\"externalLink\"><code>Link to java.lang package</code></a>");
1234         checkOutput("testpkg3mdlB/package-summary.html", true,
1235                 "<a href=\"https://docs.oracle.com/javase/9/docs/api/java.base-summary.html?is-external=true\" "
1236                 + "class=\"externalLink\"><code>Link to java.base module</code></a>");
1237 }
1238 }


 427         checkExit(Exit.OK);
 428         checkModuleName(true);
 429     }
 430 
 431     /**
 432      * Test -linkoffline option.
 433      */
 434     @Test
 435     void testLinkOffline() {
 436         String url = "https://docs.oracle.com/javase/9/docs/api/";
 437         javadoc("-d", "out-linkoffline", "-use", "--show-module-contents=all", "-Xdoclint:none",
 438                 "--module-source-path", testSrc,
 439                 "--module", "moduleA,moduleB",
 440                 "-linkoffline", url, testSrc + "/jdk",
 441                 "testpkgmdlA", "testpkgmdlB", "testpkg3mdlB");
 442         checkExit(Exit.OK);
 443         checkLinkOffline();
 444     }
 445 
 446     void checkDescription(boolean found) {
 447         checkOutput("moduleA/module-summary.html", found,
 448                 "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 449                 + "<a name=\"module.description\">\n"
 450                 + "<!--   -->\n"
 451                 + "</a>\n"
 452                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 453                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
 454         checkOutput("moduleB/module-summary.html", found,
 455                 "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 456                 + "<a name=\"module.description\">\n"
 457                 + "<!--   -->\n"
 458                 + "</a>\n"
 459                 + "<div class=\"block\">This is a test description for the moduleB module. Search "
 460                 + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
 461         checkOutput("overview-summary.html", found,
 462                 "</script>\n"
 463                 + "<div class=\"contentContainer\">\n"
 464                 + "<div class=\"block\">The overview summary page header.</div>\n"
 465                 + "</div>\n"
 466                 + "<div class=\"contentContainer\">\n"
 467                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 468                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 469         checkOutput("overview-summary.html", false,
 470                 "</table>\n"
 471                 + "</div>\n"
 472                 + "<div class=\"contentContainer\">\n"
 473                 + "<div class=\"block\">The overview summary page header.</div>\n"
 474                 + "</div>\n"
 475                 + "<div class=\"contentContainer\">\n"
 476                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 477                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 478     }
 479 
 480     void checkNoDescription(boolean found) {
 481         checkOutput("moduleA/module-summary.html", found,
 482                 "<div class=\"contentContainer\">\n"
 483                 + "<ul class=\"blockList\">\n"
 484                 + "<li class=\"blockList\">\n"
 485                 + "<ul class=\"blockList\">\n"
 486                 + "<li class=\"blockList\">\n"
 487                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 488         checkOutput("moduleB/module-summary.html", found,
 489                 "<div class=\"contentContainer\">\n"
 490                 + "<ul class=\"blockList\">\n"
 491                 + "<li class=\"blockList\">\n"
 492                 + "<ul class=\"blockList\">\n"
 493                 + "<li class=\"blockList\">\n"
 494                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 495     }
 496 
 497     void checkHtml5Description(boolean found) {
 498         checkOutput("moduleA/module-summary.html", found,
 499                 "<section role=\"region\">\n"
 500                 + "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
 501                 + " This API element is subject to removal in a future version.</span>\n"
 502                 + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
 503                 + "</div>\n"
 504                 + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 505                 + "<a id=\"module.description\">\n"
 506                 + "<!--   -->\n"
 507                 + "</a>\n"
 508                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 509                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>");
 510         checkOutput("moduleB/module-summary.html", found,
 511                 "<section role=\"region\">\n"
 512                 + "<!-- ============ MODULE DESCRIPTION =========== -->\n"
 513                 + "<a id=\"module.description\">\n"
 514                 + "<!--   -->\n"
 515                 + "</a>\n"
 516                 + "<div class=\"block\">This is a test description for the moduleB module. Search "
 517                 + "word <a id=\"search_word\" class=\"searchTagResult\">search_word</a> with no description.</div>");
 518         checkOutput("overview-summary.html", found,
 519                 "</nav>\n"
 520                 + "</header>\n"
 521                 + "<main role=\"main\">\n"
 522                 + "<div class=\"contentContainer\">\n"
 523                 + "<div class=\"block\">The overview summary page header.</div>\n"
 524                 + "</div>\n"
 525                 + "<div class=\"contentContainer\">\n"
 526                 + "<table class=\"overviewSummary\">\n"
 527                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 528         checkOutput("overview-summary.html", false,
 529                 "</table>\n"
 530                 + "</div>\n"
 531                 + "</main>\n"
 532                 + "<main role=\"main\">\n"
 533                 + "<div class=\"contentContainer\">\n"
 534                 + "<div class=\"block\">The overview summary page header.</div>\n"
 535                 + "</div>\n"
 536                 + "<div class=\"contentContainer\">\n"
 537                 + "<table class=\"overviewSummary\">\n"
 538                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 539     }
 540 
 541     void checkHtml5NoDescription(boolean found) {
 542         checkOutput("moduleA/module-summary.html", found,
 543                 "<div class=\"contentContainer\">\n"
 544                 + "<ul class=\"blockList\">\n"
 545                 + "<li class=\"blockList\">\n"
 546                 + "<ul class=\"blockList\">\n"
 547                 + "<li class=\"blockList\">\n"
 548                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 549         checkOutput("moduleB/module-summary.html", found,
 550                 "<div class=\"contentContainer\">\n"
 551                 + "<ul class=\"blockList\">\n"
 552                 + "<li class=\"blockList\">\n"
 553                 + "<ul class=\"blockList\">\n"
 554                 + "<li class=\"blockList\">\n"
 555                 + "<!-- ============ PACKAGES SUMMARY =========== -->");
 556     }
 557 
 558     void checkModuleLink() {
 559         checkOutput("overview-summary.html", true,
 560                 "<li>Module</li>");
 561         checkOutput("moduleA/module-summary.html", true,
 562                 "<li class=\"navBarCell1Rev\">Module</li>");
 563         checkOutput("moduleB/module-summary.html", true,
 564                 "<li class=\"navBarCell1Rev\">Module</li>");
 565         checkOutput("moduleA/testpkgmdlA/class-use/TestClassInModuleA.html", true,
 566                 "<li><a href=\"../../module-summary.html\">Module</a></li>");
 567         checkOutput("moduleB/testpkgmdlB/package-summary.html", true,
 568                 "<li><a href=\"../module-summary.html\">Module</a></li>");
 569         checkOutput("moduleB/testpkgmdlB/TestClassInModuleB.html", true,
 570                 "<li><a href=\"../module-summary.html\">Module</a></li>");
 571         checkOutput("moduleB/testpkgmdlB/class-use/TestClassInModuleB.html", true,
 572                 "<li><a href=\"../../module-summary.html\">Module</a></li>");
 573     }
 574 
 575     void checkNoModuleLink() {
 576         checkOutput("testpkgnomodule/package-summary.html", true,
 577                 "<ul class=\"navList\" title=\"Navigation\">\n"
 578                 + "<li><a href=\"../testpkgnomodule/package-summary.html\">Package</a></li>");
 579         checkOutput("testpkgnomodule/TestClassNoModule.html", true,
 580                 "<ul class=\"navList\" title=\"Navigation\">\n"
 581                 + "<li><a href=\"../testpkgnomodule/package-summary.html\">Package</a></li>");
 582         checkOutput("testpkgnomodule/class-use/TestClassNoModule.html", true,
 583                 "<ul class=\"navList\" title=\"Navigation\">\n"
 584                 + "<li><a href=\"../../testpkgnomodule/package-summary.html\">Package</a></li>");
 585     }
 586 
 587     void checkModuleTags() {
 588         checkOutput("moduletags/module-summary.html", true,
 589                 "Type Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in "
 590                 + "testpkgmdltags\"><code>TestClassInModuleTags</code></a>.",
 591                 "Member Link: <a href=\"testpkgmdltags/TestClassInModuleTags.html#"
 592                 + "testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.",
 593                 "Package Link: <a href=\"testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.",
 594                 "<dt><span class=\"simpleTagLabel\">Since:</span></dt>\n"
 595                 + "<dd>JDK 9</dd>",
 596                 "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
 597                 + "<dd>\"Test see tag\", \n"
 598                 + "<a href=\"testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>"
 599                 + "TestClassInModuleTags</code></a></dd>",
 600                 "<dt><span class=\"simpleTagLabel\">Regular Tag:</span></dt>\n"
 601                 + "<dd>Just a regular simple tag.</dd>",
 602                 "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
 603                 + "<dd>Just a simple module tag.</dd>",
 604                 "<dt><span class=\"simpleTagLabel\">Version:</span></dt>\n"
 605                 + "<dd>1.0</dd>",
 606                 "<dt><span class=\"simpleTagLabel\">Author:</span></dt>\n"
 607                 + "<dd>Bhavesh Patel</dd>");
 608         checkOutput("moduletags/testpkgmdltags/TestClassInModuleTags.html", false,
 609                 "<dt><span class=\"simpleTagLabel\">Module Tag:</span></dt>\n"
 610                 + "<dd>Just a simple module tag.</dd>");
 611     }
 612 
 613     void checkOverviewSummaryModules() {
 614         checkOutput("overview-summary.html", true,
 615                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 616                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 617                 + "<tr>\n"
 618                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 619                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 620                 + "</tr>");
 621         checkOutput("overview-summary.html", false,
 622                 "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 623                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 624                 + "<tr>\n"
 625                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 626                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 627                 + "</tr>");
 628     }
 629 
 630     void checkOverviewSummaryPackages() {
 631         checkOutput("overview-summary.html", false,
 632                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
 633                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 634                 + "<tr>\n"
 635                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 636                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 637                 + "</tr>",
 638                 "</table>\n"
 639                 + "</div>\n"
 640                 + "<div class=\"contentContainer\">\n"
 641                 + "<div class=\"block\">The overview summary page header.</div>\n"
 642                 + "</div>\n"
 643                 + "<div class=\"contentContainer\">\n"
 644                 + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 645                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 646         checkOutput("overview-summary.html", true,
 647                 "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 648                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 649                 + "<tr>\n"
 650                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 651                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 652                 + "</tr>",
 653                 "</script>\n"
 654                 + "<div class=\"contentContainer\">\n"
 655                 + "<div class=\"block\">The overview summary page header.</div>\n"
 656                 + "</div>\n"
 657                 + "<div class=\"contentContainer\">\n"
 658                 + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
 659                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 660     }
 661 
 662     void checkHtml5OverviewSummaryModules() {
 663         checkOutput("overview-summary.html", true,
 664                 "<table class=\"overviewSummary\">\n"
 665                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 666                 + "<tr>\n"
 667                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 668                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 669                 + "</tr>");
 670         checkOutput("overview-summary.html", false,
 671                 "<table class=\"overviewSummary\">\n"
 672                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 673                 + "<tr>\n"
 674                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 675                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 676                 + "</tr>");
 677     }
 678 
 679     void checkHtml5OverviewSummaryPackages() {
 680         checkOutput("overview-summary.html", false,
 681                 "<table class=\"overviewSummary\">\n"
 682                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 683                 + "<tr>\n"
 684                 + "<th class=\"colFirst\" scope=\"col\">Module</th>\n"
 685                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 686                 + "</tr>",
 687                 "</table>\n"
 688                 + "</div>\n"
 689                 + "</main>\n"
 690                 + "<main role=\"main\">\n"
 691                 + "<div class=\"contentContainer\">\n"
 692                 + "<div class=\"block\">The overview summary page header.</div>\n"
 693                 + "</div>\n"
 694                 + "<div class=\"contentContainer\"><a id=\"Packages\">\n"
 695                 + "<!--   -->\n"
 696                 + "</a>\n"
 697                 + "<table class=\"overviewSummary\">\n"
 698                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 699         checkOutput("overview-summary.html", true,
 700                 "<table class=\"overviewSummary\">\n"
 701                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 702                 + "<tr>\n"
 703                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 704                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 705                 + "</tr>",
 706                 "</script>\n"
 707                 + "</nav>\n"
 708                 + "</header>\n"
 709                 + "<main role=\"main\">\n"
 710                 + "<div class=\"contentContainer\">\n"
 711                 + "<div class=\"block\">The overview summary page header.</div>\n"
 712                 + "</div>\n"
 713                 + "<div class=\"contentContainer\">\n"
 714                 + "<table class=\"overviewSummary\">\n"
 715                 + "<caption><span>Packages</span><span class=\"tabEnd\">&nbsp;</span></caption>");
 716     }
 717 
 718     void checkModuleSummary() {
 719         checkOutput("moduleA/module-summary.html", true,
 720                 "<ul class=\"subNavList\">\n"
 721                 + "<li>Module:&nbsp;</li>\n"
 722                 + "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a "
 723                 + "href=\"#modules.summary\">Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">"
 724                 + "Packages</a>&nbsp;|&nbsp;Services</li>\n"
 725                 + "</ul>",
 726                 "<!-- ============ MODULES SUMMARY =========== -->\n"
 727                 + "<a name=\"modules.summary\">\n"
 728                 + "<!--   -->\n"
 729                 + "</a>",
 730                 "<tr class=\"altColor\" id=\"i0\">\n"
 731                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
 732                 + "<td class=\"colLast\">&nbsp;</td>\n"
 733                 + "</tr>",
 734                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
 735                 + "<a name=\"packages.summary\">\n"
 736                 + "<!--   -->\n"
 737                 + "</a>",
 738                 "<tr class=\"altColor\">\n"
 739                 + "<td class=\"colFirst\">transitive</td>\n"
 740                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
 741                 + "<td class=\"colLast\">\n"
 742                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 743                 + "</td>\n"
 744                 + "</tr>");
 745         checkOutput("moduleB/module-summary.html", true,
 746                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;Modules&nbsp;|&nbsp;"
 747                 + "<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">"
 748                 + "Services</a></li>",
 749                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
 750                 + "<a name=\"packages.summary\">\n"
 751                 + "<!--   -->\n"
 752                 + "</a>",
 753                 "<tr class=\"altColor\" id=\"i0\">\n"
 754                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
 755                 + "<td class=\"colLast\">&nbsp;</td>\n"
 756                 + "</tr>",
 757                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
 758                 + "<a name=\"packages.summary\">\n"
 759                 + "<!--   -->\n"
 760                 + "</a>",
 761                 "<!-- ============ SERVICES SUMMARY =========== -->\n"
 762                 + "<a name=\"services.summary\">\n"
 763                 + "<!--   -->\n"
 764                 + "</a>",
 765                 "<tr class=\"altColor\">\n"
 766                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
 767                 + "<td class=\"colLast\">\n"
 768                 + "<div class=\"block\">With a test description for uses.</div>\n</td>\n"
 769                 + "</tr>",
 770                 "<caption><span>Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 771                 + "<tr>\n"
 772                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 773                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 774                 + "</tr>",
 775                 "<caption><span>Uses</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 776                 + "<tr>\n"
 777                 + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
 778                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 779                 + "</tr>",
 780                 "<caption><span>Provides</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 781                 + "<tr>\n"
 782                 + "<th class=\"colFirst\" scope=\"col\">Type</th>\n"
 783                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 784                 + "</tr>");
 785     }
 786 
 787     void checkAggregatorModuleSummary() {
 788         checkOutput("moduleT/module-summary.html", true,
 789                 "<div class=\"header\">\n"
 790                 + "<h1 title=\"Module\" class=\"title\">Module&nbsp;moduleT</h1>\n"
 791                 + "</div>",
 792                 "<div class=\"block\">This is a test description for the moduleT module. "
 793                 + "Search phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>. "
 794                 + "Make sure there are no exported packages.</div>",
 795                 "<tbody>\n"
 796                 + "<tr class=\"altColor\">\n"
 797                 + "<td class=\"colFirst\">transitive</td>\n"
 798                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleA/module-summary.html\">moduleA</a></th>\n"
 799                 + "<td class=\"colLast\">\n"
 800                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 801                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 802                 + "</td>\n"
 803                 + "</tr>\n"
 804                 + "<tr class=\"rowColor\">\n"
 805                 + "<td class=\"colFirst\">transitive</td>\n"
 806                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
 807                 + "<td class=\"colLast\">\n"
 808                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 809                 + "</td>\n"
 810                 + "</tr>\n"
 811                 + "</tbody>");
 812     }
 813 
 814     void checkNegatedModuleSummary() {
 815         checkOutput("moduleA/module-summary.html", false,
 816                 "<!-- ============ SERVICES SUMMARY =========== -->\n"
 817                 + "<a name=\"services.summary\">\n"
 818                 + "<!--   -->\n"
 819                 + "</a>");
 820     }
 821 
 822     void checkModuleClickThroughLinks() {
 823         checkOutput("module-overview-frame.html", true,
 824                 "<li><a href=\"moduleA/module-frame.html\" target=\"packageListFrame\" "
 825                 + "onclick=\"updateModuleFrame('moduleA/module-type-frame.html','moduleA/module-summary.html');"
 826                 + "\">moduleA</a></li>",
 827                 "<li><a href=\"moduleB/module-frame.html\" target=\"packageListFrame\" "
 828                 + "onclick=\"updateModuleFrame('moduleB/module-type-frame.html','moduleB/module-summary.html');"
 829                 + "\">moduleB</a></li>");
 830         checkOutput("script.js", true,
 831                 "function updateModuleFrame(pFrame, cFrame)\n"
 832                 + "{\n"
 833                 + "    top.packageFrame.location = pFrame;\n"
 834                 + "    top.classFrame.location = cFrame;\n"
 835                 + "}");
 836     }
 837 
 838     void checkModuleClickThrough(boolean found) {
 839         checkFiles(found,
 840                 "moduleA/module-type-frame.html",
 841                 "moduleB/module-type-frame.html");
 842     }
 843 
 844     void checkModuleFilesAndLinks(boolean found) {
 845         checkFileAndOutput("moduleA/testpkgmdlA/package-summary.html", found,
 846                 "<li><a href=\"../module-summary.html\">Module</a></li>",
 847                 "<div class=\"subTitle\"><span class=\"moduleLabelInPackage\">Module</span>&nbsp;"
 848                 + "<a href=\"../module-summary.html\">moduleA</a></div>");
 849         checkFileAndOutput("moduleA/testpkgmdlA/TestClassInModuleA.html", found,
 850                 "<li><a href=\"../module-summary.html\">Module</a></li>",
 851                 "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
 852                 + "<a href=\"../module-summary.html\">moduleA</a></div>");
 853         checkFileAndOutput("moduleB/testpkgmdlB/AnnotationType.html", found,
 854                 "<div class=\"subTitle\"><span class=\"moduleLabelInType\">Module</span>&nbsp;"
 855                 + "<a href=\"../module-summary.html\">moduleB</a></div>",
 856                 "<div class=\"subTitle\"><span class=\"packageLabelInType\">"
 857                 + "Package</span>&nbsp;<a href=\"package-summary.html\">testpkgmdlB</a></div>");
 858         checkFiles(found,
 859                 "moduleA/module-frame.html",
 860                 "moduleA/module-summary.html",
 861                 "module-overview-frame.html");
 862     }
 863 
 864     void checkModuleFrameFiles(boolean found) {
 865         checkFiles(found,
 866                 "moduleC/module-frame.html",
 867                 "moduleC/module-type-frame.html",
 868                 "module-overview-frame.html");
 869         checkFiles(true,
 870                 "moduleC/module-summary.html",
 871                 "allclasses-frame.html",
 872                 "allclasses-noframe.html");
 873     }
 874 
 875     void checkAllModulesLink(boolean found) {
 876         checkOutput("overview-frame.html", found,
 877                 "<li><a href=\"module-overview-frame.html\" target=\"packageListFrame\">All&nbsp;Modules</a></li>");
 878     }
 879 
 880     void checkModulesInSearch(boolean found) {
 881         checkOutput("index-all.html", found,
 882                 "<dl>\n"
 883                 + "<dt><a href=\"moduleA/module-summary.html\">moduleA</a> - module moduleA</dt>\n"
 884                 + "<dd>\n"
 885                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 886                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 887                 + "</dd>\n"
 888                 + "<dt><a href=\"moduleB/module-summary.html\">moduleB</a> - module moduleB</dt>\n"
 889                 + "<dd>\n"
 890                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 891                 + "</dd>\n"
 892                 + "</dl>",
 893                 "<dl>\n"
 894                 + "<dt><span class=\"searchTagLink\"><a href=\"moduleA/module-summary.html#searchphrase\">"
 895                 + "search phrase</a></span> - Search tag in moduleA</dt>\n"
 896                 + "<dd>with description</dd>\n"
 897                 + "<dt><span class=\"searchTagLink\"><a href=\"moduleB/module-summary.html#search_word\">"
 898                 + "search_word</a></span> - Search tag in moduleB</dt>\n"
 899                 + "<dd>&nbsp;</dd>\n"
 900                 + "</dl>");
 901         checkOutput("index-all.html", false,
 902                 "<dt><span class=\"searchTagLink\"><a href=\"moduleA/module-summary.html#searchphrase\">"
 903                 + "search phrase</a></span> - Search tag in moduleA</dt>\n"
 904                 + "<dd>with description</dd>\n"
 905                 + "<dt><span class=\"searchTagLink\"><a href=\"moduleA/module-summary.html#searchphrase\">"
 906                 + "search phrase</a></span> - Search tag in moduleA</dt>\n"
 907                 + "<dd>with description</dd>");
 908     }
 909 
 910     void checkModuleModeCommon() {
 911         checkOutput("overview-summary.html", true,
 912                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleA/module-summary.html\">moduleA</a></th>\n"
 913                 + "<td class=\"colLast\">\n"
 914                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 915                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 916                 + "</td>",
 917                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduleB/module-summary.html\">moduleB</a></th>\n"
 918                 + "<td class=\"colLast\">\n"
 919                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 920                 + "</td>",
 921                 "<th class=\"colFirst\" scope=\"row\"><a href=\"moduletags/module-summary.html\">moduletags</a></th>\n"
 922                 + "<td class=\"colLast\">\n"
 923                 + "<div class=\"block\">This is a test description for the moduletags module.<br>\n"
 924                 + " Type Link: <a href=\"moduletags/testpkgmdltags/TestClassInModuleTags.html\" title=\"class in testpkgmdltags\"><code>TestClassInModuleTags</code></a>.<br>\n"
 925                 + " Member Link: <a href=\"moduletags/testpkgmdltags/TestClassInModuleTags.html#testMethod-java.lang.String-\"><code>testMethod(String)</code></a>.<br>\n"
 926                 + " Package Link: <a href=\"moduletags/testpkgmdltags/package-summary.html\"><code>testpkgmdltags</code></a>.<br></div>\n"
 927                 + "</td>");
 928         checkOutput("moduleA/module-summary.html", true,
 929                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">"
 930                 + "Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
 931                 "<th class=\"colFirst\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
 932                 + "<td class=\"colLast\"><a href=\"../moduleB/testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
 933         checkOutput("moduleB/module-summary.html", true,
 934                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClassInModuleB.html\" title=\"class in testpkgmdlB\">TestClassInModuleB</a></th>\n"
 935                 + "<td class=\"colLast\">\n"
 936                 + "<div class=\"block\">With a test description for uses.</div>\n</td>\n");
 937         checkOutput("moduletags/module-summary.html", true,
 938                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">Modules"
 939                 + "</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;Services</li>",
 940                 "<table class=\"requiresSummary\" summary=\"Indirect Requires table, listing modules, and an explanation\">\n"
 941                 + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>",
 942                 "<td class=\"colFirst\">transitive</td>\n"
 943                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
 944                 + "<td class=\"colLast\">\n"
 945                 + "<div class=\"block\">This is a test description for the moduleB module.</div>\n"
 946                 + "</td>",
 947                 "<table class=\"packagesSummary\" summary=\"Indirect Exports table, listing modules, and packages\">\n"
 948                 + "<caption><span>Indirect Exports</span><span class=\"tabEnd\">&nbsp;</span></caption>",
 949                 "<td class=\"colFirst\">transitive static</td>\n"
 950                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleA/module-summary.html\">moduleA</a></th>\n"
 951                 + "<td class=\"colLast\">\n"
 952                 + "<div class=\"block\">This is a test description for the moduleA module with a Search "
 953                 + "phrase <a id=\"searchphrase\" class=\"searchTagResult\">search phrase</a>.</div>\n"
 954                 + "</td>",
 955                 "<table class=\"requiresSummary\" summary=\"Requires table, listing modules, and an explanation\">\n"
 956                 + "<caption><span>Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 957                 + "<tr>\n"
 958                 + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
 959                 + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
 960                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
 961                 "<table class=\"requiresSummary\" summary=\"Indirect Requires table, listing modules, and an explanation\">\n"
 962                 + "<caption><span>Indirect Requires</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 963                 + "<tr>\n"
 964                 + "<th class=\"colFirst\" scope=\"col\">Modifier</th>\n"
 965                 + "<th class=\"colSecond\" scope=\"col\">Module</th>\n"
 966                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
 967                 "<table class=\"packagesSummary\" summary=\"Indirect Opens table, listing modules, and packages\">\n"
 968                 + "<caption><span>Indirect Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 969                 + "<tr>\n"
 970                 + "<th class=\"colFirst\" scope=\"col\">From</th>\n"
 971                 + "<th class=\"colLast\" scope=\"col\">Packages</th>\n"
 972                 + "</tr>\n",
 973                 "<th class=\"colFirst\" scope=\"row\"><a href=\"../moduleB/module-summary.html\">moduleB</a></th>\n"
 974                 + "<td class=\"colLast\"><a href=\"../moduleB/testpkgmdlB/package-summary.html\">testpkgmdlB</a></td>\n");
 975     }
 976 
 977     void checkModuleModeApi(boolean found) {
 978         checkOutput("moduleA/module-summary.html", found,
 979                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
 980                 + "<td class=\"colLast\">&nbsp;</td>");
 981         checkOutput("moduleB/module-summary.html", found,
 982                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;Modules&nbsp;|&nbsp;"
 983                 + "<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">Services</a></li>",
 984                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
 985                 + "<td class=\"colLast\">&nbsp;</td>",
 986                 "<table class=\"packagesSummary\" summary=\"Packages table, listing packages, and an explanation\">\n"
 987                 + "<caption><span>Opens</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
 988                 + "<tr>\n"
 989                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
 990                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
 991                 + "</tr>\n"
 992                 + "<tbody>\n"
 993                 + "<tr class=\"altColor\" id=\"i0\">\n"
 994                 + "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
 995                 + "<td class=\"colLast\">&nbsp;</td>\n"
 996                 + "</tr>\n"
 997                 + "</tbody>\n"
 998                 + "</table>");
 999         checkOutput("moduletags/module-summary.html", true,
1000                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdltags/package-summary.html\">testpkgmdltags</a></th>\n"
1001                 + "<td class=\"colLast\">&nbsp;</td>");
1002     }
1003 
1004     void checkModuleModeAll(boolean found) {
1005         checkOutput("moduleA/module-summary.html", found,
1006                 "<td class=\"colFirst\"> </td>\n"
1007                 + "<th class=\"colSecond\" scope=\"row\">java.base</th>\n"
1008                 + "<td class=\"colLast\">&nbsp;</td>",
1009                 "<td class=\"colFirst\"> </td>\n"
1010                 + "<th class=\"colSecond\" scope=\"row\"><a href=\"../moduleC/module-summary.html\">moduleC</a></th>\n"
1011                 + "<td class=\"colLast\">\n"
1012                 + "<div class=\"block\">This is a test description for the moduleC module.</div>\n"
1013                 + "</td>",
1014                 "<th class=\"colFirst\" scope=\"row\"><a href=\"../moduleC/module-summary.html\">moduleC</a></th>\n"
1015                 + "<td class=\"colLast\"><a href=\"../moduleC/testpkgmdlC/package-summary.html\">testpkgmdlC</a></td>",
1016                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlA/package-summary.html\">testpkgmdlA</a></th>\n"
1017                 + "<td class=\"colSecond\">All Modules</td>\n"
1018                 + "<td class=\"colLast\">&nbsp;</td>",
1019                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span>"
1020                 + "<span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(1);\">Exports</a></span>"
1021                 + "<span class=\"tabEnd\">&nbsp;</span></span><span id=\"t3\" class=\"tableTab\"><span><a href=\"javascript:showPkgs(4);\">"
1022                 + "Concealed</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1023                 "<th class=\"colFirst\" scope=\"row\"><a href=\"concealedpkgmdlA/package-summary.html\">concealedpkgmdlA</a></th>\n"
1024                 + "<td class=\"colSecond\">None</td>\n"
1025                 + "<td class=\"colLast\">&nbsp;</td>");
1026         checkOutput("moduleB/module-summary.html", found,
1027                 "<li><a href=\"#module.description\">Description</a>&nbsp;|&nbsp;<a href=\"#modules.summary\">"
1028                 + "Modules</a>&nbsp;|&nbsp;<a href=\"#packages.summary\">Packages</a>&nbsp;|&nbsp;<a href=\"#services.summary\">Services</a></li>",
1029                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/package-summary.html\">testpkgmdlB</a></th>\n"
1030                 + "<td class=\"colSecond\">None</td>\n"
1031                 + "<td class=\"colSecond\">All Modules</td>\n"
1032                 + "<td class=\"colLast\">&nbsp;</td>",
1033                 "<td class=\"colFirst\"> </td>\n"
1034                 + "<th class=\"colSecond\" scope=\"row\">java.base</th>\n"
1035                 + "<td class=\"colLast\">&nbsp;</td>",
1036                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdlB/TestClass2InModuleB.html\" title=\"class in testpkgmdlB\">TestClass2InModuleB</a></th>\n"
1037                 + "<td class=\"colLast\">&nbsp;</td>",
1038                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdlB/TestInterface2InModuleB.html\" title=\"interface in testpkg2mdlB\">TestInterface2InModuleB</a></th>\n"
1039                 + "<td class=\"colLast\">&nbsp;<br>(<span class=\"implementationLabel\">Implementation(s):</span>&nbsp;<a href=\"testpkgmdlB/TestClass2InModuleB.html\" "
1040                 + "title=\"class in testpkgmdlB\">TestClass2InModuleB</a>)</td>",
1041                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkg2mdlB/TestInterfaceInModuleB.html\" title=\"interface in testpkg2mdlB\">TestInterfaceInModuleB</a></th>\n"
1042                 + "<td class=\"colLast\">&nbsp;<br>(<span class=\"implementationLabel\">Implementation(s):</span>&nbsp;<a href=\"testpkgmdlB/TestClassInModuleB.html\" "
1043                 + "title=\"class in testpkgmdlB\">TestClassInModuleB</a>)</td>",
1044                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1045                 + "<a href=\"javascript:showPkgs(1);\">Exports</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span>"
1046                 + "<a href=\"javascript:showPkgs(2);\">Opens</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>");
1047         checkOutput("moduleC/module-summary.html", found,
1048                 "<caption><span>Exports</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
1049                 + "<tr>\n"
1050                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
1051                 + "<th class=\"colSecond\" scope=\"col\">Exported To Modules</th>\n"
1052                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
1053                 + "</tr>");
1054         checkOutput("moduletags/module-summary.html", true,
1055                 "<th class=\"colFirst\" scope=\"row\"><a href=\"testpkgmdltags/package-summary.html\">testpkgmdltags</a></th>\n"
1056                 + "<td class=\"colLast\">&nbsp;</td>");
1057     }
1058 
1059     void checkModuleDeprecation(boolean found) {
1060         checkOutput("moduleA/module-summary.html", found,
1061                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated, for removal:"
1062                 + " This API element is subject to removal in a future version.</span>\n"
1063                 + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
1064                 + "</div>");
1065         checkOutput("deprecated-list.html", found,
1066                 "<ul>\n"
1067                 + "<li><a href=\"#forRemoval\">For Removal</a></li>\n"
1068                 + "<li><a href=\"#module\">Modules</a></li>\n"
1069                 + "</ul>",
1070                 "<tr class=\"altColor\">\n"
1071                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"moduleA/module-summary.html\">moduleA</a></th>\n"
1072                 + "<td class=\"colLast\">\n"
1073                 + "<div class=\"deprecationComment\">This module is deprecated.</div>\n"
1074                 + "</td>\n"
1075                 + "</tr>");
1076         checkOutput("moduleB/module-summary.html", !found,
1077                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span>\n"
1078                 + "<div class=\"deprecationComment\">This module is deprecated using just the javadoc tag.</div>\n");
1079         checkOutput("moduletags/module-summary.html", found,
1080                 "<p>@Deprecated\n"
1081                 + "</p>",
1082                 "<div class=\"deprecationBlock\"><span class=\"deprecatedLabel\">Deprecated.</span></div>");
1083     }
1084 
1085     void checkModuleAnnotation() {
1086         checkOutput("moduleB/module-summary.html", true,
1087                 "<p><a href=\"testpkgmdlB/AnnotationType.html\" title=\"annotation in testpkgmdlB\">@AnnotationType</a>(<a href=\"testpkgmdlB/AnnotationType.html#optional--\">optional</a>=\"Module Annotation\",\n"
1088                 + "                <a href=\"testpkgmdlB/AnnotationType.html#required--\">required</a>=2016)\n"
1089                 + "</p>");
1090         checkOutput("moduleB/module-summary.html", false,
1091                 "@AnnotationTypeUndocumented");
1092     }
1093 
1094     void checkOverviewFrame(boolean found) {
1095         checkOutput("index.html", !found,
1096                 "<iframe src=\"overview-frame.html\" name=\"packageListFrame\" title=\"All Packages\"></iframe>");
1097         checkOutput("index.html", found,
1098                 "<iframe src=\"module-overview-frame.html\" name=\"packageListFrame\" title=\"All Modules\"></iframe>");
1099     }
1100 
1101     void checkModuleSummaryNoExported(boolean found) {
1102         checkOutput("moduleNoExport/module-summary.html", found,
1103                 "<!-- ============ PACKAGES SUMMARY =========== -->\n"
1104                 + "<a name=\"packages.summary\">\n"
1105                 + "<!--   -->\n"
1106                 + "</a>",
1107                 "<caption><span>Concealed</span><span class=\"tabEnd\">&nbsp;</span></caption>");
1108     }
1109 
1110     void checkGroupOption() {
1111         checkOutput("overview-summary.html", true,
1112                 "<div class=\"contentContainer\">\n"
1113                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1114                 + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span class=\"tabEnd\">&nbsp;"
1115                 + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showGroups(1);\">"
1116                 + "Module Group A</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" class=\"tableTab\">"
1117                 + "<span><a href=\"javascript:showGroups(2);\">Module Group B &amp; C</a></span><span class=\"tabEnd\">"
1118                 + "&nbsp;</span></span><span id=\"t4\" class=\"tableTab\"><span><a href=\"javascript:showGroups(4);\">"
1119                 + "Other Modules</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1120                 "var groups = {\"i0\":1,\"i1\":2,\"i2\":2,\"i3\":4};\n"
1121                 + "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"Module Group A\"],2:[\"t2\",\"Module Group B & C\"],4:[\"t4\",\"Other Modules\"]};\n"
1122                 + "var altColor = \"altColor\";\n"
1123                 + "var rowColor = \"rowColor\";\n"
1124                 + "var tableTab = \"tableTab\";\n"
1125                 + "var activeTableTab = \"activeTableTab\";");
1126         checkOutput("overview-summary.html", false,
1127                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1128                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>",
1129                 "Java SE Modules");
1130     }
1131 
1132     void checkGroupOptionOrdering() {
1133         checkOutput("overview-summary.html", true,
1134                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span "
1135                 + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1136                 + "<a href=\"javascript:showGroups(1);\">B Group</a></span><span class=\"tabEnd\">"
1137                 + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
1138                 + "C Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
1139                 + "<span><a href=\"javascript:showGroups(4);\">A Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
1140                 + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:showGroups(8);\">Other Modules"
1141                 + "</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1142                 "var tabs = {65535:[\"t0\",\"All Modules\"],1:[\"t1\",\"B Group\"],2:[\"t2\",\"C Group\"],"
1143                 + "4:[\"t4\",\"A Group\"],8:[\"t8\",\"Other Modules\"]};");
1144         checkOutput("overview-summary.html", false,
1145                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Modules</span><span "
1146                 + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1147                 + "<a href=\"javascript:showGroups(1);\">A Group</a></span><span class=\"tabEnd\">"
1148                 + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
1149                 + "B Group</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t4\" class=\"tableTab\">"
1150                 + "<span><a href=\"javascript:showGroups(4);\">C Group</a></span><span class=\"tabEnd\">&nbsp;</span>"
1151                 + "</span><span id=\"t8\" class=\"tableTab\"><span><a href=\"javascript:showGroups(8);\">Other Modules"
1152                 + "</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1153                 "Java SE Modules");
1154     }
1155 
1156     void checkUnnamedModuleGroupOption() {
1157         checkOutput("overview-summary.html", true,
1158                 "<div class=\"contentContainer\">\n"
1159                 + "<div class=\"block\">The overview summary page header.</div>\n"
1160                 + "</div>\n"
1161                 + "<div class=\"contentContainer\">\n"
1162                 + "<table class=\"overviewSummary\" summary=\"Package Summary table, listing packages, and an explanation\">\n"
1163                 + "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span class=\"tabEnd\">&nbsp;"
1164                 + "</span></span><span id=\"t1\" class=\"tableTab\"><span><a href=\"javascript:showGroups(1);\">"
1165                 + "Package Group 0</a></span><span class=\"tabEnd\">&nbsp;</span></span><span id=\"t2\" "
1166                 + "class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">Package Group 1</a></span>"
1167                 + "<span class=\"tabEnd\">&nbsp;</span></span></caption>",
1168                 "var groups = {\"i0\":1,\"i1\":2};\n"
1169                 + "var tabs = {65535:[\"t0\",\"All Packages\"],1:[\"t1\",\"Package Group 0\"],2:[\"t2\",\"Package Group 1\"]};\n"
1170                 + "var altColor = \"altColor\";\n"
1171                 + "var rowColor = \"rowColor\";\n"
1172                 + "var tableTab = \"tableTab\";\n"
1173                 + "var activeTableTab = \"activeTableTab\";");
1174     }
1175 
1176     void checkGroupOptionPackageOrdering() {
1177         checkOutput("overview-summary.html", true,
1178                 "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All Packages</span><span "
1179                 + "class=\"tabEnd\">&nbsp;</span></span><span id=\"t1\" class=\"tableTab\"><span>"
1180                 + "<a href=\"javascript:showGroups(1);\">Z Group</a></span><span class=\"tabEnd\">"
1181                 + "&nbsp;</span></span><span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:showGroups(2);\">"
1182                 + "A Group</a></span><span class=\"tabEnd\">&nbsp;</span></span></caption>",
1183                 "var tabs = {65535:[\"t0\",\"All Packages\"],1:[\"t1\",\"Z Group\"],2:[\"t2\",\"A Group\"]};");
1184     }
1185 
1186     void checkGroupOptionSingleModule() {
1187         checkOutput("overview-summary.html", true,
1188                 "<div class=\"contentContainer\">\n"
1189                 + "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1190                 + "<caption><span>Module Group B</span><span class=\"tabEnd\">&nbsp;</span></caption>");
1191         checkOutput("overview-summary.html", false,
1192                 "<table class=\"overviewSummary\" summary=\"Module Summary table, listing modules, and an explanation\">\n"
1193                 + "<caption><span>Modules</span><span class=\"tabEnd\">&nbsp;</span></caption>");
1194     }
1195 
1196     void checkModuleName(boolean found) {
1197         checkOutput("test.moduleFullName/module-summary.html", found,
1198                 "<div class=\"header\">\n"
1199                 + "<h1 title=\"Module\" class=\"title\">Module&nbsp;test.moduleFullName</h1>\n"
1200                 + "</div>");
1201         checkOutput("index-all.html", found,
1202                 "<h2 class=\"title\">T</h2>\n"
1203                 + "<dl>\n"
1204                 + "<dt><a href=\"test.moduleFullName/module-summary.html\">test.moduleFullName</a> - module test.moduleFullName</dt>\n"
1205                 + "<dd>\n"
1206                 + "<div class=\"block\">This is a test description for the test.moduleFullName.</div>\n"
1207                 + "</dd>");
1208         checkOutput("module-overview-frame.html", found,
1209                 "<h2 title=\"Modules\">Modules</h2>\n"
1210                 + "<ul title=\"Modules\">\n"
1211                 + "<li><a href=\"moduleB/module-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('moduleB/module-type-frame.html','moduleB/module-summary.html');\">moduleB</a></li>\n"
1212                 + "<li><a href=\"test.moduleFullName/module-frame.html\" target=\"packageListFrame\" onclick=\"updateModuleFrame('test.moduleFullName/module-type-frame.html','test.moduleFullName/module-summary.html');\">test.moduleFullName</a></li>\n"
1213                 + "</ul>");
1214         checkOutput("test.moduleFullName/module-summary.html", !found,
1215                 "<div class=\"header\">\n"
1216                 + "<h1 title=\"Module\" class=\"title\">Module&nbsp;moduleFullName</h1>\n"
1217                 + "</div>");
1218         checkOutput("index-all.html", !found,
1219                 "<dl>\n"
1220                 + "<dt><a href=\"test.moduleFullName/module-summary.html\">moduleFullName</a> - module moduleFullName</dt>\n"
1221                 + "<dd>\n"
1222                 + "<div class=\"block\">This is a test description for the test.moduleFullName.</div>\n"
1223                 + "</dd>\n"
1224                 + "</dl>");
1225     }
1226 
1227     void checkLinkOffline() {
1228         checkOutput("moduleB/testpkg3mdlB/package-summary.html", true,
1229                 "<a href=\"https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true\" "
1230                 + "title=\"class or interface in java.lang\" class=\"externalLink\"><code>Link to String Class</code></a>");
1231         checkOutput("moduleB/testpkg3mdlB/package-summary.html", true,
1232                 "<a href=\"https://docs.oracle.com/javase/9/docs/api/java/lang/package-summary.html?is-external=true\" "
1233                 + "class=\"externalLink\"><code>Link to java.lang package</code></a>");
1234         checkOutput("moduleB/testpkg3mdlB/package-summary.html", true,
1235                 "<a href=\"https://docs.oracle.com/javase/9/docs/api/java.base/module-summary.html?is-external=true\" "
1236                 + "class=\"externalLink\"><code>Link to java.base module</code></a>");
1237 }
1238 }
< prev index next >