test/langtools/jdk/javadoc/doclet/testNavigation/TestNavigation.java
author bpatel
Tue, 06 Mar 2018 10:45:47 -0800
changeset 49139 771616d26ca1
parent 48756 ce608a09a666
child 49551 0d4786e42471
permissions -rw-r--r--
8182765: HTML5 must be the default javadoc codegen mode in the near future Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
48654
36f58bd6269f 8195796: Reduce the size of relative URLs in generated docs
jjg
parents: 47216
diff changeset
     2
 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2985
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2985
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 2985
diff changeset
    21
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
 * @test
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    26
 * @bug      4131628 4664607 7025314 8023700 7198273 8025633 8026567 8081854 8150188 8151743 8196027 8182765
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
 * @summary  Make sure the Next/Prev Class links iterate through all types.
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
 *           Make sure the navagation is 2 columns, not 3.
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
 * @author   jamieh
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    30
 * @library  ../lib
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    31
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    32
 * @build    JavadocTester
19659
51324d86f628 8023701: Fix badly named test
jjg
parents: 9067
diff changeset
    33
 * @run main TestNavigation
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
19659
51324d86f628 8023701: Fix badly named test
jjg
parents: 9067
diff changeset
    36
public class TestNavigation extends JavadocTester {
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    38
    public static void main(String... args) throws Exception {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    39
        TestNavigation tester = new TestNavigation();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    40
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    41
    }
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
    @Test
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
    void test() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    45
        javadoc("-d", "out",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    46
                "-overview", testSrc("overview.html"),
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    48
                "pkg");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    49
        checkExit(Exit.OK);
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    50
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    51
        checkOutput("pkg/A.html", true,
48756
ce608a09a666 8196027: Remove "Prev" and "Next" links from the javadoc navigation
bpatel
parents: 48654
diff changeset
    52
                "<ul class=\"navList\" title=\"Navigation\">\n" +
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    53
                "<li><a href=\"../overview-summary.html\">Overview</a></li>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    55
        checkOutput("pkg/C.html", true,
48756
ce608a09a666 8196027: Remove "Prev" and "Next" links from the javadoc navigation
bpatel
parents: 48654
diff changeset
    56
                "<ul class=\"navList\" title=\"Navigation\">\n" +
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    57
                "<li><a href=\"../overview-summary.html\">Overview</a></li>");
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    58
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    59
        checkOutput("pkg/E.html", true,
48756
ce608a09a666 8196027: Remove "Prev" and "Next" links from the javadoc navigation
bpatel
parents: 48654
diff changeset
    60
                "<ul class=\"navList\" title=\"Navigation\">\n" +
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    61
                "<li><a href=\"../overview-summary.html\">Overview</a></li>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    63
        checkOutput("pkg/I.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    64
                // Test for 4664607
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    65
                "<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    66
                + "<a id=\"navbar.top.firstrow\">\n"
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    67
                + "<!--   -->\n"
36705
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    68
                + "</a>",
890c250d8da8 8071982: Update tests for revamped Doclet API
ksrini
parents: 35426
diff changeset
    69
                "<li><a href=\"../overview-summary.html\">Overview</a></li>");
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    70
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    71
        // Remaining tests check for additional padding to offset the fixed navigation bar.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    72
        checkOutput("pkg/A.html", true,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    73
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    74
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    75
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
    76
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
    77
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
    78
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
    79
                + "</script>\n"
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    80
                + "</nav>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    81
                + "</header>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    82
                + "<!-- ======== START OF CLASS DATA ======== -->");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    83
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    84
        checkOutput("pkg/package-summary.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    85
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    86
                + "</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    87
                + "<div class=\"navPadding\">&nbsp;</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    88
                + "<script type=\"text/javascript\"><!--\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    89
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    90
                + "//-->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    91
                + "</script>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    92
                + "</nav>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    93
                + "</header>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    94
                + "<main role=\"main\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    95
                + "<div class=\"header\">");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    96
    }
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    97
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    98
    @Test
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
    99
    void test_html4() {
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   100
        javadoc("-d", "out-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   101
                "-html4",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   102
                "-overview", testSrc("overview.html"),
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   103
                "-sourcepath", testSrc,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   104
                "pkg");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   105
        checkExit(Exit.OK);
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   106
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   107
        checkOutput("pkg/I.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   108
                // Test for 4664607
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   109
                "<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   110
                + "<a name=\"navbar.top.firstrow\">\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   111
                + "<!--   -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   112
                + "</a>");
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   113
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   114
        // Remaining tests check for additional padding to offset the fixed navigation bar.
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   115
        checkOutput("pkg/A.html", true,
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   116
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   117
                + "</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   118
                + "<div class=\"navPadding\">&nbsp;</div>\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   119
                + "<script type=\"text/javascript\"><!--\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   120
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   121
                + "//-->\n"
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   122
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   123
                + "<!-- ======== START OF CLASS DATA ======== -->");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   124
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   125
        checkOutput("pkg/package-summary.html", true,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   126
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   127
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   128
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   129
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   130
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   131
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   132
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   133
                + "<div class=\"header\">");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   134
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   135
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   136
    // Test for checking additional padding to offset the fixed navigation bar in HTML5.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   137
    @Test
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   138
    void test1() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   139
        javadoc("-d", "out-1",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   140
                "-html5",
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   141
                "-sourcepath", testSrc,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   142
                "pkg");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   143
        checkExit(Exit.OK);
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   144
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   145
        checkOutput("pkg/A.html", true,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   146
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   147
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   148
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   149
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   150
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   151
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   152
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   153
                + "</nav>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   154
                + "</header>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   155
                + "<!-- ======== START OF CLASS DATA ======== -->");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   156
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   157
        checkOutput("pkg/package-summary.html", true,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   158
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   159
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   160
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   161
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   162
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   163
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   164
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   165
                + "</nav>");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   166
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   167
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   168
    // Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified for HTML4.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   169
    @Test
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   170
    void test2() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   171
        javadoc("-d", "out-2",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   172
                "-nonavbar",
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   173
                "-sourcepath", testSrc,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   174
                "pkg");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   175
        checkExit(Exit.OK);
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   176
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   177
        checkOutput("pkg/A.html", false,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   178
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   179
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   180
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   181
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   182
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   183
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   184
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   185
                + "<!-- ======== START OF CLASS DATA ======== -->");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   186
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   187
        checkOutput("pkg/package-summary.html", false,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   188
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   189
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   190
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   191
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   192
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   193
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   194
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   195
                + "<div class=\"header\">");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   196
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   197
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   198
    // Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified for HTML5.
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   199
    @Test
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   200
    void test3() {
49139
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   201
        javadoc("-d", "out-3",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   202
                "-html5",
771616d26ca1 8182765: HTML5 must be the default javadoc codegen mode in the near future
bpatel
parents: 48756
diff changeset
   203
                "-nonavbar",
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   204
                "-sourcepath", testSrc,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   205
                "pkg");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   206
        checkExit(Exit.OK);
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   207
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   208
        checkOutput("pkg/A.html", false,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   209
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   210
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   211
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   212
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   213
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   214
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   215
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   216
                + "</nav>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   217
                + "</header>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   218
                + "<!-- ======== START OF CLASS DATA ======== -->");
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   219
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   220
        checkOutput("pkg/package-summary.html", false,
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   221
                "<!-- ========= END OF TOP NAVBAR ========= -->\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   222
                + "</div>\n"
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   223
                + "<div class=\"navPadding\">&nbsp;</div>\n"
43870
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   224
                + "<script type=\"text/javascript\"><!--\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   225
                + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   226
                + "//-->\n"
8805a0acaded 8151743: Header can still disappear behind the navbar
bpatel
parents: 36709
diff changeset
   227
                + "</script>\n"
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
   228
                + "</nav>");
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
}