From: <rb...@us...> - 2018-05-13 15:58:10
|
Revision: 15259 http://sourceforge.net/p/htmlunit/code/15259 Author: rbri Date: 2018-05-13 15:58:06 +0000 (Sun, 13 May 2018) Log Message: ----------- more tests Modified Paths: -------------- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float32ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float64ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int16ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int32ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int8ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint16ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint32ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ArrayTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ClampedArrayTest.java Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float32ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float32ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float32ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -172,4 +175,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Float32Array]", "[object Float32Array]", "[object Float32Array]", + "[object Float32Array]", "[object Float32Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Float32Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Float32Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Float32Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Float32Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Float32Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Float32Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Float32Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float64ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float64ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float64ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -172,4 +175,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Float64Array]", "[object Float64Array]", "[object Float64Array]", + "[object Float64Array]", "[object Float64Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Float64Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Float64Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Float64Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Float64Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Float64Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Float64Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Float64Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int16ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int16ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int16ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -266,4 +269,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Int16Array]", "[object Int16Array]", "[object Int16Array]", + "[object Int16Array]", "[object Int16Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Int16Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Int16Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Int16Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Int16Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Int16Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Int16Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Int16Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int32ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int32ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int32ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -172,4 +175,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Int32Array]", "[object Int32Array]", "[object Int32Array]", + "[object Int32Array]", "[object Int32Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Int32Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Int32Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Int32Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Int32Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Int32Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Int32Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Int32Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int8ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int8ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int8ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -240,4 +243,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Int8Array]", "[object Int8Array]", "[object Int8Array]", + "[object Int8Array]", "[object Int8Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Int8Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Int8Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Int8Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Int8Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Int8Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Int8Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Int8Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint16ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint16ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint16ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -173,4 +176,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Uint16Array]", "[object Uint16Array]", "[object Uint16Array]", + "[object Uint16Array]", "[object Uint16Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Uint16Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Uint16Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Uint16Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Uint16Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Uint16Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Uint16Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Uint16Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint32ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint32ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint32ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -194,4 +197,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Uint32Array]", "[object Uint32Array]", "[object Uint32Array]", + "[object Uint32Array]", "[object Uint32Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Uint32Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Uint32Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Uint32Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Uint32Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Uint32Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Uint32Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Uint32Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -224,4 +227,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Uint8Array]", "[object Uint8Array]", "[object Uint8Array]", + "[object Uint8Array]", "[object Uint8Array]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Uint8Array(0);\n" + + " alert(array.toString());\n" + + + " array = new Uint8Array(1);\n" + + " alert(array.toString());\n" + + + " array = new Uint8Array([1]);\n" + + " alert(array.toString());\n" + + + " array = new Uint8Array([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Uint8Array([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Uint8Array") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Uint8Array.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ClampedArrayTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ClampedArrayTest.java 2018-05-12 14:11:32 UTC (rev 15258) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ClampedArrayTest.java 2018-05-13 15:58:06 UTC (rev 15259) @@ -14,11 +14,14 @@ */ package com.gargoylesoftware.htmlunit.javascript.host.arrays; +import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF45; + import org.junit.Test; import org.junit.runner.RunWith; import com.gargoylesoftware.htmlunit.BrowserRunner; import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts; +import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented; import com.gargoylesoftware.htmlunit.WebDriverTestCase; /** @@ -174,4 +177,53 @@ loadPageWithAlerts2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"}, + FF45 = {"[object Uint8ClampedArray]", "[object Uint8ClampedArray]", "[object Uint8ClampedArray]", + "[object Uint8ClampedArray]", "[object Uint8ClampedArray]"}) + @NotYetImplemented(FF45) + public void asString() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " var array = new Uint8ClampedArray(0);\n" + + " alert(array.toString());\n" + + + " array = new Uint8ClampedArray(1);\n" + + " alert(array.toString());\n" + + + " array = new Uint8ClampedArray([1]);\n" + + " alert(array.toString());\n" + + + " array = new Uint8ClampedArray([1,3]);\n" + + " alert(array.toString());\n" + + + " array = new Uint8ClampedArray([1,3,4,7,11,0,123]);\n" + + " alert(array.toString());\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } + + /** + * @throws Exception if the test fails + */ + @Test + @Alerts("Uint8ClampedArray") + public void name() throws Exception { + final String html + = "<html><head><title>foo</title><script>\n" + + "function test() {\n" + + " alert(Uint8ClampedArray.name);\n" + + "}\n" + + "</script></head><body onload='test()'>\n" + + "</body></html>"; + + loadPageWithAlerts2(html); + } } |