mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8151921: Improved page resolution
Reviewed-by: jjg, ksrini, ahgross
This commit is contained in:
parent
d130403704
commit
af3d6a8409
4 changed files with 26 additions and 22 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
/*
|
||||
* @test
|
||||
* @bug 4665566 4855876 7025314 8012375 8015997 8016328 8024756
|
||||
* @bug 4665566 4855876 7025314 8012375 8015997 8016328 8024756 8151921
|
||||
* @summary Verify that the output has the right javascript.
|
||||
* @author jamieh
|
||||
* @library ../lib
|
||||
|
@ -54,11 +54,12 @@ public class TestJavascript extends JavadocTester {
|
|||
|
||||
checkOutput("index.html", true,
|
||||
"<script type=\"text/javascript\">\n"
|
||||
+ " targetPage = \"\" + window.location.search;\n"
|
||||
+ " if (targetPage != \"\" && targetPage != \"undefined\")\n"
|
||||
+ " targetPage = targetPage.substring(1);\n"
|
||||
+ " if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))\n"
|
||||
+ " targetPage = \"undefined\";\n"
|
||||
+ " tmpTargetPage = \"\" + window.location.search;\n"
|
||||
+ " if (tmpTargetPage != \"\" && tmpTargetPage != \"undefined\")\n"
|
||||
+ " tmpTargetPage = tmpTargetPage.substring(1);\n"
|
||||
+ " if (tmpTargetPage.indexOf(\":\") != -1 || (tmpTargetPage != \"\" && !validURL(tmpTargetPage)))\n"
|
||||
+ " tmpTargetPage = \"undefined\";\n"
|
||||
+ " targetPage = tmpTargetPage;\n"
|
||||
+ " function validURL(url) {\n"
|
||||
+ " try {\n"
|
||||
+ " url = decodeURIComponent(url);\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue