[HtmlUnit] SVN: [15539] trunk/htmlunit/src
rbri--- via HtmlUnit-develop <[email protected]> Thu, 23 Aug 2018 13:38:58 +0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 15539
http://sourceforge.net/p/htmlunit/code/15539
Author: rbri
Date: 2018-08-23 13:38:51 +0000 (Thu, 23 Aug 2018)
Log Message:
-----------
test fixes
Modified Paths:
--------------
trunk/htmlunit/src/changes/changes.xml
trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java
trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/TextEncoderTest.java
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
trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/crypto/CryptoTest.java
Modified: trunk/htmlunit/src/changes/changes.xml
===================================================================
--- trunk/htmlunit/src/changes/changes.xml 2018-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/changes/changes.xml 2018-08-23 13:38:51 UTC (rev 15539)
@@ -9,6 +9,9 @@
<body>
<release version="2.33" date="xxxx, 2018" description="Bugfixes">
<action type="update" dev="rbri">
+ We are using the typed array implementation from Rhino now, our own impl is gone.
+ </action>
+ <action type="update" dev="rbri">
Method Date.toUTCString() is available in Rhino; remove our own impl.
</action>
<action type="fix" dev="rbri" issue="1979" due-to="Atsushi Nakagawa">
Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java 2018-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ExternalTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -54,7 +54,7 @@
/** Gecko driver. */
static String GECKO_DRIVER_ = "0.21.0";
/** IE driver. */
- static String IE_DRIVER_ = "3.13.0.0";
+ static String IE_DRIVER_ = "3.14.0.0";
/**
* Tests that POM dependencies are the latest.
Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/TextEncoderTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/TextEncoderTest.java 2018-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/TextEncoderTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -85,7 +85,7 @@
+ "<body onload='doTest()'>\n"
+ "</body></html>";
- loadPageWithAlerts2(html, 7777777);
+ loadPageWithAlerts2(html);
}
/**
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float32ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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.BrowserRunner.TestedBrowser;
import com.gargoylesoftware.htmlunit.WebDriverTestCase;
/**
@@ -161,9 +165,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({TestedBrowser.FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -185,7 +190,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Float32Array]", "[object Float32Array]",
+ "[object Float32Array]", "[object Float32Array]",
+ "[object Float32Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -215,7 +224,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Float32Array")
+ @Alerts(DEFAULT = "Float32Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Float64ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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;
/**
@@ -161,9 +165,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -185,7 +190,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Float64Array]", "[object Float64Array]",
+ "[object Float64Array]", "[object Float64Array]",
+ "[object Float64Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -215,7 +224,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Float64Array")
+ @Alerts(DEFAULT = "Float64Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int16ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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;
/**
@@ -255,9 +259,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -279,7 +284,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Int16Array]", "[object Int16Array]",
+ "[object Int16Array]", "[object Int16Array]",
+ "[object Int16Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -309,7 +318,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Int16Array")
+ @Alerts(DEFAULT = "Int16Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int32ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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;
/**
@@ -161,9 +165,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -185,7 +190,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Int32Array]", "[object Int32Array]",
+ "[object Int32Array]", "[object Int32Array]",
+ "[object Int32Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -215,7 +224,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Int32Array")
+ @Alerts(DEFAULT = "Int32Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Int8ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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;
/**
@@ -229,9 +233,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -253,7 +258,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Int8Array]", "[object Int8Array]",
+ "[object Int8Array]", "[object Int8Array]",
+ "[object Int8Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -283,7 +292,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Int8Array")
+ @Alerts(DEFAULT = "Int8Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint16ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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;
/**
@@ -162,9 +166,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -186,7 +191,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Uint16Array]", "[object Uint16Array]",
+ "[object Uint16Array]", "[object Uint16Array]",
+ "[object Uint16Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -216,7 +225,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Uint16Array")
+ @Alerts(DEFAULT = "Uint16Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint32ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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;
/**
@@ -183,9 +187,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -207,7 +212,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Uint32Array]", "[object Uint32Array]",
+ "[object Uint32Array]", "[object Uint32Array]",
+ "[object Uint32Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -237,7 +246,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Uint32Array")
+ @Alerts(DEFAULT = "Uint32Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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.BrowserRunner.TestedBrowser;
import com.gargoylesoftware.htmlunit.WebDriverTestCase;
/**
@@ -162,9 +166,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({TestedBrowser.FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -237,7 +242,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Uint8Array]", "[object Uint8Array]",
+ "[object Uint8Array]", "[object Uint8Array]",
+ "[object Uint8Array]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -267,7 +276,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Uint8Array")
+ @Alerts(DEFAULT = "Uint8Array",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
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-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/arrays/Uint8ClampedArrayTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -14,11 +14,15 @@
*/
package com.gargoylesoftware.htmlunit.javascript.host.arrays;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.FF52;
+import static com.gargoylesoftware.htmlunit.BrowserRunner.TestedBrowser.IE;
+
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;
/**
@@ -163,9 +167,10 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts(DEFAULT = "exception",
- CHROME = "0",
- FF60 = "0")
+ @Alerts(DEFAULT = "0",
+ FF52 = "exception",
+ IE = "exception")
+ @NotYetImplemented({FF52, IE})
public void nullConstructor() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -187,7 +192,11 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts({"", "0", "1", "1,3", "1,3,4,7,11,0,123"})
+ @Alerts(DEFAULT = {"", "0", "1", "1,3", "1,3,4,7,11,0,123"},
+ IE = {"[object Uint8ClampedArray]", "[object Uint8ClampedArray]",
+ "[object Uint8ClampedArray]", "[object Uint8ClampedArray]",
+ "[object Uint8ClampedArray]"})
+ @NotYetImplemented(IE)
public void asString() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
@@ -217,7 +226,9 @@
* @throws Exception if the test fails
*/
@Test
- @Alerts("Uint8ClampedArray")
+ @Alerts(DEFAULT = "Uint8ClampedArray",
+ IE = "undefined")
+ @NotYetImplemented(IE)
public void name() throws Exception {
final String html
= "<html><head><title>foo</title><script>\n"
Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/crypto/CryptoTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/crypto/CryptoTest.java 2018-08-23 07:21:40 UTC (rev 15538)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/crypto/CryptoTest.java 2018-08-23 13:38:51 UTC (rev 15539)
@@ -35,7 +35,7 @@
*/
@Test
@Alerts(DEFAULT = {"true", "true", "true", "false", "false", "false"},
- IE = {"true", "exception"})
+ IE = {"true", "true", "true", "exception"})
public void getRandomValues() throws Exception {
final String html = "<html><head><script>\n"
+ "try {\n"
@@ -51,7 +51,7 @@
+ "catch(e) { alert('exception'); }\n"
+ "</script></head></html>";
- loadPageWithAlerts2(html, 777777);
+ loadPageWithAlerts2(html);
}
/**
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot