test/langtools/jdk/javadoc/doclet/testJavascript/TestJavascript.java
changeset 59294 48b88b9c11eb
parent 54350 4f9772f4403d
equal deleted inserted replaced
59293:5af9fa90cd7b 59294:48b88b9c11eb
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      4665566 4855876 7025314 8012375 8015997 8016328 8024756 8148985 8151921 8151743 8196202
    26  * @bug      4665566 4855876 7025314 8012375 8015997 8016328 8024756 8148985 8151921 8151743 8196202 8223378
    27  * @summary  Verify that the output has the right javascript.
    27  * @summary  Verify that the output has the right javascript.
    28  * @author   jamieh
    28  * @author   jamieh
    29  * @library  ../../lib
    29  * @library  ../../lib
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @build    javadoc.tester.*
    31  * @build    javadoc.tester.*
    46         javadoc("-d", "out",
    46         javadoc("-d", "out",
    47                 "-sourcepath", testSrc,
    47                 "-sourcepath", testSrc,
    48                 "pkg", testSrc("TestJavascript.java"));
    48                 "pkg", testSrc("TestJavascript.java"));
    49         checkExit(Exit.OK);
    49         checkExit(Exit.OK);
    50 
    50 
    51         checkOutput("pkg/C.html", true,
    51         checkOutput("pkg/C.html", false,
    52                 "<script type=\"text/javascript\"><!--\n"
    52                 "<script type=\"text/javascript\"><!--\n"
    53                 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
    53                 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
    54                 + "//-->\n"
    54                 + "//-->\n"
    55                 + "</script>");
    55                 + "</script>");
    56 
    56 
    57         checkOutput("index.html", true,
    57         checkOutput("index.html", false,
    58                 "<script type=\"text/javascript\"><!--\n"
    58                 "<script type=\"text/javascript\"><!--\n"
    59                 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
    59                 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
    60                 + "//-->\n");
    60                 + "//-->\n");
    61 
    61 
    62         checkOutput("script.js", true,
    62         checkOutput("script.js", false,
    63                 "$(window).resize(function() {\n"
    63                 "$(window).resize(function() {\n"
    64                 + "        $('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
    64                 + "        $('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n"
    65                 + "    });");
    65                 + "    });");
    66     }
    66     }
    67 }
    67 }