Quantcast

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

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

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

rbri
Revision: 13800
          http://sourceforge.net/p/htmlunit/code/13800
Author:   rbri
Date:     2017-03-16 20:36:37 +0000 (Thu, 16 Mar 2017)
Log Message:
-----------
re-tested and fixed for latest chrome

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/media/ConstantSourceNode.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfATest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java 2017-03-16 12:40:21 UTC (rev 13799)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/AudioScheduledSourceNode.java 2017-03-16 20:36:37 UTC (rev 13800)
@@ -16,10 +16,10 @@
 
 import static com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName.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.WebBrowser;
+import com.gargoylesoftware.htmlunit.javascript.host.media.AudioNode;
 
 /**
  * A JavaScript object for {@code AudioScheduledSourceNode}.
@@ -27,7 +27,7 @@
  * @author Ronald Brill
  */
 @JsxClass(browsers = @WebBrowser(CHROME))
-public class AudioScheduledSourceNode extends SimpleScriptable {
+public class AudioScheduledSourceNode extends AudioNode {
 
     /**
      * Creates a new instance.

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/media/ConstantSourceNode.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/media/ConstantSourceNode.java 2017-03-16 12:40:21 UTC (rev 13799)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/media/ConstantSourceNode.java 2017-03-16 20:36:37 UTC (rev 13800)
@@ -19,6 +19,7 @@
 import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
 import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor;
 import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser;
+import com.gargoylesoftware.htmlunit.javascript.host.AudioScheduledSourceNode;
 
 /**
  * A JavaScript object for {@code ConstantSourceNode}.
@@ -26,7 +27,7 @@
  * @author Ahmed Ashour
  */
 @JsxClass(browsers = @WebBrowser(CHROME))
-public class ConstantSourceNode extends AudioNode {
+public class ConstantSourceNode extends AudioScheduledSourceNode {
 
     /**
      * Creates an instance.

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfATest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfATest.java 2017-03-16 12:40:21 UTC (rev 13799)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/huge/HostParentOfATest.java 2017-03-16 20:36:37 UTC (rev 13800)
@@ -386,8 +386,7 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "false",
-            CHROME = "true")
+    @Alerts("false")
     public void _AudioContext_webkitAudioContext() throws Exception {
         test("AudioContext", "webkitAudioContext");
     }
@@ -396,16 +395,6 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts("false")
-    @NotYetImplemented(CHROME)
-    public void _AudioContext_webkitOfflineAudioContext() throws Exception {
-        test("AudioContext", "webkitOfflineAudioContext");
-    }
-
-    /**
-     * @throws Exception if the test fails
-     */
-    @Test
     @Alerts(DEFAULT = "true",
             IE = "false")
     public void _AudioDestinationNode_AudioDestinationNode() throws Exception {
@@ -466,6 +455,16 @@
      * @throws Exception if the test fails
      */
     @Test
+    @Alerts(DEFAULT = "false",
+            CHROME = "true")
+    public void _AudioNode_AudioScheduledSourceNode() throws Exception {
+        test("AudioNode", "AudioScheduledSourceNode");
+    }
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
     @Alerts(DEFAULT = "true",
             IE = "false")
     public void _AudioNode_BiquadFilterNode() throws Exception {
@@ -526,6 +525,48 @@
      * @throws Exception if the test fails
      */
     @Test
+    @Alerts(DEFAULT = "false",
+            CHROME = "true")
+    @NotYetImplemented(CHROME)
+    public void _AudioScheduledSourceNode_AudioBufferSourceNode() throws Exception {
+        test("AudioScheduledSourceNode", "AudioBufferSourceNode");
+    }
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
+    @Alerts(DEFAULT = "false",
+            CHROME = "true")
+    public void _AudioScheduledSourceNode_AudioScheduledSourceNode() throws Exception {
+        test("AudioScheduledSourceNode", "AudioScheduledSourceNode");
+    }
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
+    @Alerts(DEFAULT = "false",
+            CHROME = "true")
+    public void _AudioScheduledSourceNode_ConstantSourceNode() throws Exception {
+        test("AudioScheduledSourceNode", "ConstantSourceNode");
+    }
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
+    @Alerts(DEFAULT = "false",
+            CHROME = "true")
+    @NotYetImplemented(CHROME)
+    public void _AudioScheduledSourceNode_OscillatorNode() throws Exception {
+        test("AudioScheduledSourceNode", "OscillatorNode");
+    }
+
+    /**
+     * @throws Exception if the test fails
+     */
+    @Test
     @Alerts(DEFAULT = "true",
             IE = "false")
     public void _BiquadFilterNode_BiquadFilterNode() throws Exception {
@@ -1302,26 +1343,6 @@
     @Test
     @Alerts(DEFAULT = "false",
             CHROME = "true")
-    public void _BaseAudioContext_webkitAudioContext() throws Exception {
-        test("BaseAudioContext", "webkitAudioContext");
-    }
-
-    /**
-     * @throws Exception if the test fails
-     */
-    @Test
-    @Alerts(DEFAULT = "false",
-            CHROME = "true")
-    public void _BaseAudioContext_webkitOfflineAudioContext() throws Exception {
-        test("BaseAudioContext", "webkitOfflineAudioContext");
-    }
-
-    /**
-     * @throws Exception if the test fails
-     */
-    @Test
-    @Alerts(DEFAULT = "false",
-            CHROME = "true")
     public void _ConstantSourceNode_ConstantSourceNode() throws Exception {
         test("ConstantSourceNode", "ConstantSourceNode");
     }


------------------------------------------------------------------------------
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
Loading...