1.1 --- a/test/com/sun/javadoc/testJavascript/TestJavascript.java Tue Sep 24 13:48:12 2013 -0700 1.2 +++ b/test/com/sun/javadoc/testJavascript/TestJavascript.java Tue Sep 24 16:12:06 2013 -0700 1.3 @@ -23,7 +23,7 @@ 1.4 1.5 /* 1.6 * @test 1.7 - * @bug 4665566 4855876 7025314 8012375 8015997 1.8 + * @bug 4665566 4855876 7025314 8012375 8015997 8016328 1.9 * @summary Verify that the output has the right javascript. 1.10 * @author jamieh 1.11 * @library ../lib/ 1.12 @@ -56,6 +56,12 @@ 1.13 " if (targetPage.indexOf(\":\") != -1 || (targetPage != \"\" && !validURL(targetPage)))" + NL + 1.14 " targetPage = \"undefined\";" + NL + 1.15 " function validURL(url) {" + NL + 1.16 + " try {" + NL + 1.17 + " url = decodeURIComponent(url);" + NL + 1.18 + " }" + NL + 1.19 + " catch (error) {" + NL + 1.20 + " return false;" + NL + 1.21 + " }" + NL + 1.22 " var pos = url.indexOf(\".html\");" + NL + 1.23 " if (pos == -1 || pos != url.length - 5)" + NL + 1.24 " return false;" + NL + 1.25 @@ -67,7 +73,8 @@ 1.26 " if ('a' <= ch && ch <= 'z' ||" + NL + 1.27 " 'A' <= ch && ch <= 'Z' ||" + NL + 1.28 " ch == '$' ||" + NL + 1.29 - " ch == '_') {" + NL + 1.30 + " ch == '_' ||" + NL + 1.31 + " ch.charCodeAt(0) > 127) {" + NL + 1.32 " allowNumber = true;" + NL + 1.33 " allowSep = true;" + NL + 1.34 " } else if ('0' <= ch && ch <= '9'" + NL +