1 /* |
1 /* |
2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
54 "-sourcepath", testSrc, |
54 "-sourcepath", testSrc, |
55 "p1", "p2"); |
55 "p1", "p2"); |
56 checkExit(Exit.OK); |
56 checkExit(Exit.OK); |
57 checkOutput("overview-summary.html", true, |
57 checkOutput("overview-summary.html", true, |
58 "<script type=\"text/javascript\">", |
58 "<script type=\"text/javascript\">", |
59 "<body>"); |
59 "<body class=\"package-index\">"); |
60 |
60 |
61 // Test that "onload" is not present in BODY tag: |
61 // Test that "onload" is not present in BODY tag: |
62 checkOutput("p1/package-summary.html", true, "<body>"); |
62 checkOutput("p1/package-summary.html", true, "<body class=\"package-declaration\">"); |
63 checkOutput("overview-frame.html", true, "<body>"); |
63 checkOutput("overview-frame.html", true, "<body class=\"package-index-frame\">"); |
64 checkOutput("allclasses-frame.html", true, "<body>"); |
64 checkOutput("allclasses-frame.html", true, "<body class=\"all-classes-frame\">"); |
65 checkOutput("p1/package-frame.html", true, "<body>"); |
65 checkOutput("p1/package-frame.html", true, "<body class=\"package-frame\">"); |
66 |
66 |
67 // Test that win title javascript is followed by NOSCRIPT code. |
67 // Test that win title javascript is followed by NOSCRIPT code. |
68 checkOutput("p1/C.html", true, |
68 checkOutput("p1/C.html", true, |
69 "<script type=\"text/javascript\"><!--\n" |
69 "<script type=\"text/javascript\"><!--\n" |
70 + " try {\n" |
70 + " try {\n" |