[HtmlUnit] SVN: [13779] trunk/htmlunit/src

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] SVN: [13779] trunk/htmlunit/src

rbri
Revision: 13779
          http://sourceforge.net/p/htmlunit/code/13779
Author:   rbri
Date:     2017-03-16 07:37:21 +0000 (Thu, 16 Mar 2017)
Log Message:
-----------
re-tested and fixed

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/performance/PerformanceNavigationTiming.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostTypeOfTest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/performance/PerformanceNavigationTiming.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/performance/PerformanceNavigationTiming.java 2017-03-16 07:35:47 UTC (rev 13778)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/performance/PerformanceNavigationTiming.java 2017-03-16 07:37:21 UTC (rev 13779)
@@ -19,6 +19,7 @@
 
 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.WebBrowser;
 
 /**
@@ -32,6 +33,7 @@
     /**
      * Creates an instance.
      */
+    @JsxConstructor(@WebBrowser(CHROME))
     public PerformanceNavigationTiming() {
     }
 }

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostTypeOfTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostTypeOfTest.java 2017-03-16 07:35:47 UTC (rev 13778)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/HostTypeOfTest.java 2017-03-16 07:37:21 UTC (rev 13779)
@@ -28,6 +28,7 @@
  * Tests that {@code typeof} host class is correct.
  *
  * @author Ahmed Ashour
+ * @author Ronald Brill
  */
 @RunWith(BrowserRunner.class)
 public class HostTypeOfTest extends WebDriverTestCase {
@@ -2150,8 +2151,7 @@
      * @throws Exception if an error occurs
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void svgCursorElement() throws Exception {
         test("SVGCursorElement");
     }
@@ -6251,8 +6251,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitAudioContext() throws Exception {
         test("webkitAudioContext");
     }
@@ -6261,8 +6260,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBCursor() throws Exception {
         test("webkitIDBCursor");
     }
@@ -6271,8 +6269,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBDatabase() throws Exception {
         test("webkitIDBDatabase");
     }
@@ -6281,8 +6278,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBFactory() throws Exception {
         test("webkitIDBFactory");
     }
@@ -6291,8 +6287,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBIndex() throws Exception {
         test("webkitIDBIndex");
     }
@@ -6301,8 +6296,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBKeyRange() throws Exception {
         test("webkitIDBKeyRange");
     }
@@ -6311,8 +6305,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBObjectStore() throws Exception {
         test("webkitIDBObjectStore");
     }
@@ -6321,8 +6314,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBRequest() throws Exception {
         test("webkitIDBRequest");
     }
@@ -6331,8 +6323,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitIDBTransaction() throws Exception {
         test("webkitIDBTransaction");
     }
@@ -6351,8 +6342,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void webkitOfflineAudioContext() throws Exception {
         test("webkitOfflineAudioContext");
     }
@@ -6590,8 +6580,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "undefined",
-            CHROME = "function")
+    @Alerts("undefined")
     public void serviceWorkerMessageEvent() throws Exception {
         test("ServiceWorkerMessageEvent");
     }
@@ -6970,6 +6959,7 @@
      */
     @Test
     @Alerts(DEFAULT = "undefined",
+            CHROME = "function",
             IE = "object")
     public void performanceNavigationTiming() throws Exception {
         test("PerformanceNavigationTiming");


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop