From: <rb...@us...> - 2017-09-11 18:36:25
|
Revision: 14830 http://sourceforge.net/p/htmlunit/code/14830 Author: rbri Date: 2017-09-11 18:36:22 +0000 (Mon, 11 Sep 2017) Log Message: ----------- latest chrome (wip) Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/network/NetworkInformation.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfDTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/network/NetworkInformation.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/network/NetworkInformation.java 2017-09-11 16:39:09 UTC (rev 14829) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/network/NetworkInformation.java 2017-09-11 18:36:22 UTC (rev 14830) @@ -16,10 +16,10 @@ import static com.gargoylesoftware.htmlunit.javascript.configuration.SupportedBrowser.CHROME; -import com.gargoylesoftware.htmlunit.javascript.SimpleScriptable; import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass; import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor; import com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter; +import com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget; /** * A JavaScript object for {@code NetworkInformation}. @@ -27,7 +27,7 @@ * @author Ronald Brill */ @JsxClass(CHROME) -public class NetworkInformation extends SimpleScriptable { +public class NetworkInformation extends EventTarget { /** * Creates an instance. Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfDTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfDTest.java 2017-09-11 16:39:09 UTC (rev 14829) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfDTest.java 2017-09-11 18:36:22 UTC (rev 14830) @@ -34,6 +34,7 @@ * This class handles all host names which starts by character 'D' to 'E'. * * @author Ahmed Ashour + * @author Ronald Brill */ @RunWith(BrowserParameterizedRunner.class) public class HostParentOfDTest extends HostParentOf { @@ -247,8 +248,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "false", - FF = "true") + @Alerts(DEFAULT = "true", + IE = "false") public void _DOMMatrix_DOMMatrix() throws Exception { test("DOMMatrix", "DOMMatrix"); } @@ -258,6 +259,7 @@ */ @Test @Alerts(DEFAULT = "false", + CHROME = "true", FF52 = "true") @NotYetImplemented(FF52) public void _DOMMatrix_WebKitCSSMatrix() throws Exception { @@ -268,8 +270,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "false", - FF = "true") + @Alerts(DEFAULT = "true", + IE = "false") public void _DOMMatrixReadOnly_DOMMatrix() throws Exception { test("DOMMatrixReadOnly", "DOMMatrix"); } @@ -278,8 +280,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "false", - FF = "true") + @Alerts(DEFAULT = "true", + IE = "false") public void _DOMMatrixReadOnly_DOMMatrixReadOnly() throws Exception { test("DOMMatrixReadOnly", "DOMMatrixReadOnly"); } @@ -289,6 +291,7 @@ */ @Test @Alerts(DEFAULT = "false", + CHROME = "true", FF52 = "true") @NotYetImplemented(FF52) public void _DOMMatrixReadOnly_WebKitCSSMatrix() throws Exception { @@ -308,8 +311,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "false", - FF = "true") + @Alerts(DEFAULT = "true", + IE = "false") public void _DOMPoint_DOMPoint() throws Exception { test("DOMPoint", "DOMPoint"); } @@ -318,8 +321,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "false", - FF = "true") + @Alerts(DEFAULT = "true", + IE = "false") public void _DOMPointReadOnly_DOMPoint() throws Exception { test("DOMPointReadOnly", "DOMPoint"); } @@ -328,8 +331,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "false", - FF = "true") + @Alerts(DEFAULT = "true", + IE = "false") public void _DOMPointReadOnly_DOMPointReadOnly() throws Exception { test("DOMPointReadOnly", "DOMPointReadOnly"); } @@ -338,8 +341,8 @@ * @throws Exception if the test fails */ @Test - @Alerts(DEFAULT = "false", - FF = "true") + @Alerts(DEFAULT = "true", + IE = "false") public void _DOMRectReadOnly_DOMRectReadOnly() throws Exception { test("DOMRectReadOnly", "DOMRectReadOnly"); } @@ -3982,6 +3985,16 @@ * @throws Exception if the test fails */ @Test + @Alerts(DEFAULT = "false", + CHROME = "true") + public void _EventTarget_NetworkInformation() throws Exception { + test("EventTarget", "NetworkInformation"); + } + + /** + * @throws Exception if the test fails + */ + @Test @Alerts(DEFAULT = "true", IE = "false") public void _EventTarget_Node() throws Exception { @@ -5182,5 +5195,4 @@ public void _External_External() throws Exception { test("External", "External"); } - } |