Title: [97348] trunk/LayoutTests
Revision
97348
Author
[email protected]
Date
2011-10-12 23:52:56 -0700 (Wed, 12 Oct 2011)

Log Message

Tests don't override the WebKitWebAudioEnabled runtime preference
https://bugs.webkit.org/show_bug.cgi?id=69830

Rubber-stamped by Eric Carlson.

Override WebKitWebAudioEnabled in the WebAudio tests so the audio
context can be created even for the WebKit ports not enabling the
runtime WebAudio preference by default.

* webaudio/biquadfilternode-basic.html:
* webaudio/delaynode-scheduling.html:
* webaudio/delaynode.html:
* webaudio/mediaelementaudiosourcenode-gc.html:
* webaudio/mediaelementaudiosourcenode.html:
* webaudio/realtimeanalyser-fft-sizing.html:
* webaudio/resources/audio-testing.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (97347 => 97348)


--- trunk/LayoutTests/ChangeLog	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/ChangeLog	2011-10-13 06:52:56 UTC (rev 97348)
@@ -1,3 +1,22 @@
+2011-10-11  Philippe Normand  <[email protected]>
+
+        Tests don't override the WebKitWebAudioEnabled runtime preference
+        https://bugs.webkit.org/show_bug.cgi?id=69830
+
+        Rubber-stamped by Eric Carlson.
+
+        Override WebKitWebAudioEnabled in the WebAudio tests so the audio
+        context can be created even for the WebKit ports not enabling the
+        runtime WebAudio preference by default.
+
+        * webaudio/biquadfilternode-basic.html:
+        * webaudio/delaynode-scheduling.html:
+        * webaudio/delaynode.html:
+        * webaudio/mediaelementaudiosourcenode-gc.html:
+        * webaudio/mediaelementaudiosourcenode.html:
+        * webaudio/realtimeanalyser-fft-sizing.html:
+        * webaudio/resources/audio-testing.js:
+
 2011-10-12  Kent Tamura  <[email protected]>
 
         [Chromium] Test expectation udpate.

Modified: trunk/LayoutTests/webaudio/biquadfilternode-basic.html (97347 => 97348)


--- trunk/LayoutTests/webaudio/biquadfilternode-basic.html	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/webaudio/biquadfilternode-basic.html	2011-10-13 06:52:56 UTC (rev 97348)
@@ -17,6 +17,7 @@
 
 function runTest() {
     if (window.layoutTestController) {
+        layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");
         layoutTestController.dumpAsText();
         layoutTestController.waitUntilDone();
     }

Modified: trunk/LayoutTests/webaudio/delaynode-scheduling.html (97347 => 97348)


--- trunk/LayoutTests/webaudio/delaynode-scheduling.html	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/webaudio/delaynode-scheduling.html	2011-10-13 06:52:56 UTC (rev 97348)
@@ -17,6 +17,7 @@
 
 function runTest() {
     if (window.layoutTestController) {
+        layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");
         layoutTestController.dumpAsText();
         layoutTestController.waitUntilDone();
     }

Modified: trunk/LayoutTests/webaudio/delaynode.html (97347 => 97348)


--- trunk/LayoutTests/webaudio/delaynode.html	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/webaudio/delaynode.html	2011-10-13 06:52:56 UTC (rev 97348)
@@ -17,6 +17,7 @@
 
 function runTest() {
     if (window.layoutTestController) {
+        layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");
         layoutTestController.dumpAsText();
         layoutTestController.waitUntilDone();
     }

Modified: trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-gc.html (97347 => 97348)


--- trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-gc.html	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-gc.html	2011-10-13 06:52:56 UTC (rev 97348)
@@ -24,9 +24,11 @@
 }
 
 function runTest() {
-    if (window.layoutTestController)
+    if (window.layoutTestController) {
+        layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");
         layoutTestController.dumpAsText();
-    
+    }
+
     audioElement = document.createElement("audio");
     context = new webkitAudioContext(1, 1000, 44100);
     source = context.createMediaElementSource(audioElement);

Modified: trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html (97347 => 97348)


--- trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html	2011-10-13 06:52:56 UTC (rev 97348)
@@ -17,6 +17,7 @@
 
 function runTest() {
     if (window.layoutTestController) {
+        layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");
         layoutTestController.dumpAsText();
         layoutTestController.waitUntilDone();
     }

Modified: trunk/LayoutTests/webaudio/realtimeanalyser-fft-sizing.html (97347 => 97348)


--- trunk/LayoutTests/webaudio/realtimeanalyser-fft-sizing.html	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/webaudio/realtimeanalyser-fft-sizing.html	2011-10-13 06:52:56 UTC (rev 97348)
@@ -14,6 +14,7 @@
 description("Test that re-sizing the FFT arrays does not fail.");
 
 if (window.layoutTestController) {
+    layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");
     layoutTestController.dumpAsText();
     layoutTestController.waitUntilDone();
 }

Modified: trunk/LayoutTests/webaudio/resources/audio-testing.js (97347 => 97348)


--- trunk/LayoutTests/webaudio/resources/audio-testing.js	2011-10-13 06:14:27 UTC (rev 97347)
+++ trunk/LayoutTests/webaudio/resources/audio-testing.js	2011-10-13 06:52:56 UTC (rev 97348)
@@ -1,3 +1,6 @@
+if (window.layoutTestController)
+    layoutTestController.overridePreference("WebKitWebAudioEnabled", "1");
+
 function writeString(s, a, offset) {
     for (var i = 0; i < s.length; ++i) {
         a[offset + i] = s.charCodeAt(i);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to