test/com/sun/javadoc/testJavascript/TestJavascript.java

changeset 766
90af8d87741f
parent 554
9d9f26857129
child 798
4868a36f6fd8
equal deleted inserted replaced
758:bcbc86cc5b31 766:90af8d87741f
43 }; 43 };
44 44
45 //Input for string search tests. 45 //Input for string search tests.
46 private static final String[][] TEST = { 46 private static final String[][] TEST = {
47 {BUG_ID + FS + "pkg" + FS + "C.html", 47 {BUG_ID + FS + "pkg" + FS + "C.html",
48 "<A HREF=\"../index.html?pkg/C.html\" target=\"_top\"><STRONG>FRAMES</STRONG></A>"}, 48 "<a href=\"../index.html?pkg/C.html\" target=\"_top\">FRAMES</a>"},
49 {BUG_ID + FS + "TestJavascript.html", 49 {BUG_ID + FS + "TestJavascript.html",
50 "<A HREF=\"index.html?TestJavascript.html\" target=\"_top\"><STRONG>FRAMES</STRONG></A>"}, 50 "<a href=\"index.html?TestJavascript.html\" target=\"_top\">FRAMES</a>"},
51 {BUG_ID + FS + "index.html", 51 {BUG_ID + FS + "index.html",
52 "<SCRIPT type=\"text/javascript\">" + NL + 52 "<script type=\"text/javascript\">" + NL +
53 " targetPage = \"\" + window.location.search;" + NL + 53 " targetPage = \"\" + window.location.search;" + NL +
54 " if (targetPage != \"\" && targetPage != \"undefined\")" + NL + 54 " if (targetPage != \"\" && targetPage != \"undefined\")" + NL +
55 " targetPage = targetPage.substring(1);" + NL + 55 " targetPage = targetPage.substring(1);" + NL +
56 " if (targetPage.indexOf(\":\") != -1)" + NL + 56 " if (targetPage.indexOf(\":\") != -1)" + NL +
57 " targetPage = \"undefined\";" + NL + 57 " targetPage = \"undefined\";" + NL +
58 " function loadFrames() {" + NL + 58 " function loadFrames() {" + NL +
59 " if (targetPage != \"\" && targetPage != \"undefined\")" + NL + 59 " if (targetPage != \"\" && targetPage != \"undefined\")" + NL +
60 " top.classFrame.location = top.targetPage;" + NL + 60 " top.classFrame.location = top.targetPage;" + NL +
61 " }" + NL + 61 " }" + NL +
62 "</SCRIPT>"}, 62 "</script>"},
63 63
64 //Make sure title javascript only runs if is-external is not true 64 //Make sure title javascript only runs if is-external is not true
65 {BUG_ID + FS + "pkg" + FS + "C.html", 65 {BUG_ID + FS + "pkg" + FS + "C.html",
66 " if (location.href.indexOf('is-external=true') == -1) {" + NL + 66 " if (location.href.indexOf('is-external=true') == -1) {" + NL +
67 " parent.document.title=\"C\";" + NL + 67 " parent.document.title=\"C\";" + NL +

mercurial