1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066
|
/*
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 8072945 8081854 8141492 8148985 8150188 4649116 8173707 8151743 8169819 8183037 8182765 8196202
* 8202624 8210047 8184205 8221871 8223733 8223378 8261976
* @summary Test the version of HTML generated by the javadoc tool.
* @library ../../lib
* @modules jdk.javadoc/jdk.javadoc.internal.tool
* @build javadoc.tester.*
* @run main TestHtmlVersion
*/
import javadoc.tester.JavadocTester;
public class TestHtmlVersion extends JavadocTester {
public static void main(String... args) throws Exception {
var tester = new TestHtmlVersion();
tester.runTests();
}
@Test
public void test1() {
javadoc("-d", "out-1",
"-private",
"-linksource",
"-bottom", "bottom text",
"-sourcepath", testSrc,
"-use",
"pkg", "pkg1", "pkg2", "pkg3");
checkExit(Exit.OK);
html5Output();
html5NegatedOutput();
}
@Test
public void test4() {
javadoc("-d", "out-4",
"-private",
"-linksource",
"-bottom", "bottom text",
"-sourcepath", testSrc,
"-use",
"pkg3");
checkExit(Exit.OK);
}
void html5Output() {
// Test for overview-summary page
checkOutput("index.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<div id="all-packages-table">
<div class="caption"><span>Packages</span></div>
<div class="summary-table two-column-summary">""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for package-summary page
checkOutput("pkg/package-summary.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<div class="summary-table two-column-summary">""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<section class="package-description" id="package-description">
<div class="block">Test package.</div>""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// No package description
checkOutput("pkg1/package-summary.html", true,
"""
<section class="summary">
<ul class="summary-list">
<li>
<div id="class-summary">
<div class="caption"><span>Classes</span></div>
<div class="summary-table two-column-summary">""");
// Test for package-tree page
checkOutput("pkg/package-tree.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"<li class=\"circle\">",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<section class="hierarchy">
<h2 title="Class Hierarchy">Class Hierarchy</h2>""",
"""
<section class="hierarchy">
<h2 title="Interface Hierarchy">Interface Hierarchy</h2>""",
"""
<section class="hierarchy">
<h2 title="Annotation Interface Hierarchy">Annotation Interface Hierarchy</h2>""",
"""
<section class="hierarchy">
<h2 title="Enum Class Hierarchy">Enum Class Hierarchy</h2>""",
"""
<footer role="contentinfo">""",
"""
bottom text""" );
// Test for package-use page
checkOutput("pkg1/package-use.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<div class="summary-table two-column-summary">""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for constant-values page
checkOutput("constant-values.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<div class="summary-table three-column-summary">""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<section class="packages">
<h2 title="Contents">Contents</h2>
""",
"""
<section class="constants-summary" id="pkg">
<h2 title="pkg.*">pkg.*</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for deprecated-list page
checkOutput("deprecated-list.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<div class="summary-table two-column-summary">""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for serialized-form page
checkOutput("serialized-form.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<section class="serialized-package-container">
<h2 title="Package">Package <a href="pkg/package-summary.html">pkg</a></h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for overview-tree page
checkOutput("overview-tree.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"<li class=\"circle\">",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<section class="hierarchy">
<h2 title="Class Hierarchy">Class Hierarchy</h2>
""",
"""
<section class="hierarchy">
<h2 title="Interface Hierarchy">Interface Hierarchy</h2>
""",
"""
<section class="hierarchy">
<h2 title="Annotation Interface Hierarchy">Annotation Interface Hierarchy</h2>
""",
"""
<section class="hierarchy">
<h2 title="Enum Class Hierarchy">Enum Class Hierarchy</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for index-all page
checkOutput("index-all.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
</header>
<div class="flex-content">
<main role="main">""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for src-html page
checkOutput("src-html/pkg/AnotherClass.html", true,
"<!DOCTYPE HTML>",
"""
<main role="main">
<div class="source-container">""");
// Test for help-doc page
checkOutput("help-doc.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<h1 class="title">JavaDoc Help</h1>""",
"""
<section class="help-section" id="overview">
<h3>Overview</h3>
""",
"""
<section class="help-section" id="package">
<h3>Package</h3>
""",
"""
<section class="help-section" id="class">
<h3>Class or Interface</h3>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for a regular class page and members (nested class, field, constructore and method)
checkOutput("pkg/AnotherClass.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">""",
"""
<section class="nested-class-summary" id="nested-class-summary">
<h2>Nested Class Summary</h2>
<div class="caption"><span>Nested Classes</span></div>
<div class="summary-table three-column-summary">""",
"""
<section class="field-summary" id="field-summary">
<h2>Field Summary</h2>
<div class="caption"><span>Fields</span></div>
<div class="summary-table three-column-summary">""",
"""
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table two-column-summary">""",
"""
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>""",
"""
<section class="field-details" id="field-detail">
<h2>Field Details</h2>
""",
"""
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
""",
"""
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for enum page
checkOutput("pkg/AnotherClass.ModalExclusionType.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">""",
"""
<section class="constants-summary" id="enum-constant-summary">
<h2>Enum Constant Summary</h2>
<div class="caption"><span>Enum Constants</span></div>
""",
"""
<div class="summary-table three-column-summary">
""",
"""
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
""",
"""
<section class="constant-details" id="enum-constant-detail">
<h2>Enum Constant Details</h2>
""",
"""
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for interface page
checkOutput("pkg2/Interface.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">""",
"""
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
""",
"""
<div class="summary-table three-column-summary">
""",
"""
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for error page
checkOutput("pkg/TestError.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">""",
"""
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>""",
"""
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for exception page
checkOutput("pkg/TestException.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">""",
"""
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>""",
"""
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for annotation page
checkOutput("pkg2/TestAnnotationType.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">""",
"""
<section class="member-summary" id="annotation-interface-required-element-summary">
<h2>Required Element Summary</h2>
<div class="caption"><span>Required Elements</span></div>
<div class="summary-table three-column-summary">""",
"""
<section class="member-summary" id="annotation-interface-optional-element-summary">
<h2>Optional Element Summary</h2>
<div class="caption"><span>Optional Elements</span></div>
<div class="summary-table three-column-summary">""",
"""
<section class="details" id="annotation-interface-element-detail">
<ul class="details-list">
<!-- ============ ANNOTATION INTERFACE MEMBER DETAIL =========== -->
<li>
<section class="member-details">
<h2>Element Details</h2>
""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
// Test for class use page
checkOutput("pkg1/class-use/RegClass.html", true,
"<!DOCTYPE HTML>",
"<meta name=\"dc.created\"",
"""
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
""",
"""
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->""",
"""
<main role="main">
<div class="header">""",
"""
<div class="summary-table two-column-summary">""",
"""
<section class="detail" id="pkg">
<h2>Uses of <a href="../RegClass.html" title="class in pkg1">RegClass</a> in <a \
href="../../pkg/package-summary.html">pkg</a></h2>
<div class="caption"><span>Fields in <a href="../../pkg/package-summary.html">pk\
g</a> declared as <a href="../RegClass.html" title="class in pkg1">RegClass</a><\
/span></div>
<div class="summary-table three-column-summary">""",
"""
<footer role="contentinfo">""",
"""
bottom text""");
}
void html5NegatedOutput() {
// Negated test for overview-summary page
checkOutput("overview-summary.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<table summary="Package Summary table, listing packages, and an explanation">
<caption>""",
"""
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->""");
// Negated test for package-summary page
checkOutput("pkg/package-summary.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<section>
<h2 title="PackageAnotherClass.ModalExclusionType.html pkg Description">Package pkg Description</h2>
""",
"""
<div class="type-summary">
<table summary="Interface Summary table, listing interfaces, and an explanation">""",
"""
<div class="type-summary">
<table summary="Class Summary table, listing classes, and an explanation">""",
"""
<div class="type-summary">
<table summary="Enum Summary table, listing enums, and an explanation">""",
"""
<div class="type-summary">
<table summary="Exception Summary table, listing exceptions, and an explanation">""",
"""
<div class="type-summary">
<table summary="Error Summary table, listing errors, and an explanation">""",
"""
<div class="type-summary">
<table summary="Annotation Types Summary table, listing annotation types, and an explanation">""");
// Negated test for package-tree page
checkOutput("pkg/package-tree.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""");
// Negated test for package-use page
checkOutput("pkg1/package-use.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<div class="use-summary">
<table summary="Use table, listing packages, and an explanation">""");
// Negated test for constant-values page
checkOutput("constant-values.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="header">""",
"""
<div class="constants-summary">
<table summary="Constant Field Values table, listing constant fields, and values">""");
// Negated test for deprecated-list page
checkOutput("deprecated-list.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="header">
<h1 title="Deprecated API" class="title">Deprecated API</h1>
<h2 title="Contents">Contents</h2>""",
"""
<div class="deprecated-summary">
<table summary="Classes table, listing classes, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Enums table, listing enums, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Exceptions table, listing exceptions, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Errors table, listing errors, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Annotation Types table, listing annotation types, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Fields table, listing fields, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Methods table, listing methods, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Constructors table, listing constructors, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Enum Constants table, listing enum constants, and an explanation">""",
"""
<div class="deprecated-summary">
<table summary="Annotation Type Elements table, listing annotation type elements, and an explanation">""");
// Negated test for serialized-form page
checkOutput("serialized-form.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="header">""",
"""
<li>
<h2 title="Package">Package pkg</h2>""");
// Negated test for overview-tree page
checkOutput("overview-tree.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="header">""",
"""
<div class="contentContainer">
<h2 title="Class Hierarchy">Class Hierarchy</h2>""",
"""
</ul>
<h2 title="Interface Hierarchy">Interface Hierarchy</h2>""",
"""
</ul>
<h2 title="Enum Class Hierarchy">Enum Class Hierarchy</h2>""");
// Negated test for index-all page
checkOutput("index-all.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="contentContainer">""");
// Negated test for src-html page
checkOutput("src-html/pkg/AnotherClass.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"""
<body>
<div class="source-container">""");
// Negated test for help-doc page
checkOutput("help-doc.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="header">""",
"""
<ul class="block-list">
<li>
<h2>Overview</h2>""",
"<li>\n"
+ "<h2>Package</h2>",
"<li>\n"
+ "<h2>Class/Interface</h2>");
// Negated test for a regular class page and members (nested class, field, constructore and method)
checkOutput("pkg/AnotherClass.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="block-list">
<li><a name="nested.class.summary">
<!-- -->
</a>
<h2>Nested Class Summary</h2>
<div class="member-summary">
<table summary="Nested Class Summary table, listing nested classes, and an explanation">""",
"""
<!-- =========== FIELD SUMMARY =========== -->
<ul class="block-list">
<li><a name="field.summary">
<!-- -->
</a>
<h2>Field Summary</h2>
<div class="member-summary">
<table summary="Field Summary table, listing fields, and an explanation">""",
"""
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="block-list">
<li><a name="constructor.summary">
<!-- -->
</a>
<h2>Constructor Summary</h2>
<div class="member-summary">
<table summary="Constructor Summary table, listing constructors, and an explanation">""",
"""
<!-- ========== METHOD SUMMARY =========== -->
<ul class="block-list">
<li><a name="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="member-summary">
<table summary="Method Summary table, listing methods, and an explanation">""",
"""
<!-- ============ FIELD DETAIL =========== -->
<ul class="block-list">
<li><a name="field.detail">
<!-- -->
</a>
<h2>Field Details</h2>""",
"""
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="block-list">
<li><a name="constructor.detail">
<!-- -->
</a>
<h2>Constructor Details</h2>""",
"""
<!-- ============ METHOD DETAIL ========== -->
<ul class="block-list">
<li><a name="method.detail">
<!-- -->
</a>
<h2>Method Details</h2>""");
// Negated test for enum page
checkOutput("pkg/AnotherClass.ModalExclusionType.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<ul class="block-list">
<li><a name="enum.constant.summary">
<!-- -->
</a>
<h2>Enum Constant Summary</h2>
<div class="member-summary">
<table summary="Enum Constant Summary table, listing enum constants, and an explanation">""",
"""
<!-- ========== METHOD SUMMARY =========== -->
<ul class="block-list">
<li><a name="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="member-summary">
<table summary="Method Summary table, listing methods, and an explanation">""",
"""
<!-- ============ ENUM CONSTANT DETAIL =========== -->
<ul class="block-list">
<li><a name="enum.constant.detail">
<!-- -->
</a>
<h2>Enum Constant Details</h2>""",
"""
<!-- ============ METHOD DETAIL ========== -->
<ul class="block-list">
<li><a name="method.detail">
<!-- -->
</a>
<h2>Method Details</h2>""");
// Negated test for interface page
checkOutput("pkg2/Interface.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========== METHOD SUMMARY =========== -->
<ul class="block-list">
<li><a name="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="member-summary">
<table summary="Method Summary table, listing methods, and an explanation">""",
"""
<!-- ============ METHOD DETAIL ========== -->
<ul class="block-list">
<li><a name="method.detail">
<!-- -->
</a>
<h2>Method Details</h2>""");
// Negated test for error page
checkOutput("pkg/TestError.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="block-list">
<li><a name="constructor.summary">
<!-- -->
</a>
<h2>Constructor Summary</h2>""",
"""
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="block-list">
<li><a name="constructor.detail">
<!-- -->
</a>
<h2>Constructor Details</h2>""");
// Negated test for exception page
checkOutput("pkg/TestException.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="block-list">
<li><a name="constructor.summary">
<!-- -->
</a>
<h2>Constructor Summary</h2>""",
"""
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="block-list">
<li><a name="constructor.detail">
<!-- -->
</a>
<h2>Constructor Details</h2>""");
// Negated test for annotation page
checkOutput("pkg2/TestAnnotationType.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- =========== ANNOTATION TYPE REQUIRED MEMBER SUMMARY =========== -->
<ul class="block-list">
<li><a name="annotation.type.required.element.summary">
<!-- -->
</a>
<h2>Required Element Summary</h2>
<div class="member-summary">
<table summary="Required Element Summary table, listing required elements, and an explanation">""",
"""
<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== -->
<ul class="block-list">
<li><a name="annotation.type.optional.element.summary">
<!-- -->
</a>
<h2>Optional Element Summary</h2>
<div class="member-summary">
<table summary="Optional Element Summary table, listing optional elements, and an explanation">""",
"""
<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
<ul class="block-list">
<li><a name="annotation.type.element.detail">
<!-- -->
</a>
<h2>Element Details</h2>""");
// Negated test for class use page
checkOutput("pkg1/class-use/RegClass.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"<meta name=\"date\"",
"""
<a name="navbar-top-firstrow">
<!-- -->
</a>""",
"""
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="header">""",
"""
<div class="use-summary">
<table summary="Use table, listing packages, and an explanation">""",
"""
<li><a name="pkg">
<!-- -->
</a>
<h2>Uses of <a href="../RegClass.html" title="class in pkg1">RegClass</a> in <a \
href="../../pkg/package-summary.html">pkg</a></h2>
<div class="use-summary">
<table summary="Use table, listing fields, and an explanation">""");
// Negated test for main index page
checkOutput("index.html", false,
"""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">""",
"""
<body>
<script type="text/javascript">
if (targetPage == "" || targetPage == "undefined")
window.location.replace('overview-summary.html');
</script>
<noscript>JavaScript is disabled on your browser.</noscript>
<div class="mainContainer">
""");
}
}
|