equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2016, 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. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4665566 4855876 7025314 8012375 8015997 8016328 8024756 |
26 * @bug 4665566 4855876 7025314 8012375 8015997 8016328 8024756 8148985 |
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 |
30 * @modules jdk.javadoc |
31 * @build JavadocTester |
31 * @build JavadocTester |
98 + " return false;\n" |
98 + " return false;\n" |
99 + " }\n" |
99 + " }\n" |
100 + " }\n" |
100 + " }\n" |
101 + " return true;\n" |
101 + " return true;\n" |
102 + " }\n" |
102 + " }\n" |
|
103 + " function loadFrames() {\n" |
|
104 + " if (targetPage != \"\" && targetPage != \"undefined\")\n" |
|
105 + " top.classFrame.location = top.targetPage;\n" |
|
106 + " }\n" |
103 + "</script>"); |
107 + "</script>"); |
|
108 |
|
109 checkOutput("index.html", true, |
|
110 "<body onload=\"loadFrames()\""); |
104 |
111 |
105 //Make sure title javascript only runs if is-external is not true |
112 //Make sure title javascript only runs if is-external is not true |
106 checkOutput("pkg/C.html", true, |
113 checkOutput("pkg/C.html", true, |
107 " try {\n" |
114 " try {\n" |
108 + " if (location.href.indexOf('is-external=true') == -1) {\n" |
115 + " if (location.href.indexOf('is-external=true') == -1) {\n" |