Title: [269133] trunk/LayoutTests
Revision
269133
Author
[email protected]
Date
2020-10-28 17:51:55 -0700 (Wed, 28 Oct 2020)

Log Message

Resync web-platform-tests/webaudio tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=218313

Reviewed by Alex Christensen.

Resync web-platform-tests/webaudio tests from upstream 5fe9553936ab4d7ba2b4.

* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context-expected.txt: Added.
* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative.html.
* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative-expected.txt: Removed.
* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard-expected.txt: Added.
* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard.html: Added.
* web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log:
* web-platform-tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSourceToScriptProcessorTest.html:
* web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context-expected.txt: Added.
* web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html.
* web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative-expected.txt: Removed.
* web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard-expected.txt: Added.
* web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard.html: Added.
* web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/w3c-import.log:

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/TestExpectations (269132 => 269133)


--- trunk/LayoutTests/TestExpectations	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/TestExpectations	2020-10-29 00:51:55 UTC (rev 269133)
@@ -370,7 +370,6 @@
 imported/w3c/web-platform-tests/streams/writable-streams/write.any.html [ DumpJSConsoleLogInStdErr ]
 imported/w3c/web-platform-tests/streams/writable-streams/error.any.html [ DumpJSConsoleLogInStdErr ]
 imported/w3c/web-platform-tests/workers/WorkerGlobalScope_ErrorEvent_lineno.htm [ DumpJSConsoleLogInStdErr ]
-imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html [ DumpJSConsoleLogInStdErr ]
 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html [ DumpJSConsoleLogInStdErr ]
 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audionode-interface/audionode-disconnect-audioparam.html [ DumpJSConsoleLogInStdErr ]
 fast/files/file-reader-back-forward-cache.html [ DumpJSConsoleLogInStdErr ]

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-10-29 00:51:55 UTC (rev 269133)
@@ -1,5 +1,28 @@
 2020-10-28  Chris Dumez  <[email protected]>
 
+        Resync web-platform-tests/webaudio tests from upstream
+        https://bugs.webkit.org/show_bug.cgi?id=218313
+
+        Reviewed by Alex Christensen.
+
+        Resync web-platform-tests/webaudio tests from upstream 5fe9553936ab4d7ba2b4.
+
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context-expected.txt: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative.html.
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative-expected.txt: Removed.
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard-expected.txt: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard.html: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log:
+        * web-platform-tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSourceToScriptProcessorTest.html:
+        * web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context-expected.txt: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html.
+        * web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative-expected.txt: Removed.
+        * web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard-expected.txt: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard.html: Added.
+        * web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/w3c-import.log:
+
+2020-10-28  Chris Dumez  <[email protected]>
+
         AudioBuffer channels should be neuterable / detachable
         https://bugs.webkit.org/show_bug.cgi?id=218286
 

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context-expected.txt (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context-expected.txt	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,9 @@
+
+PASS # AUDIT TASK RUNNER STARTED.
+PASS Executing "decoding-on-detached-iframe"
+PASS Audit report
+PASS > [decoding-on-detached-iframe]
+FAIL X decodeAudioData() upon a detached iframe rejected correctly but got NotAllowedError instead of InvalidStateError. Got Promise. assert_true: expected true got false
+FAIL < [decoding-on-detached-iframe] 1 out of 1 assertions were failed. assert_true: expected true got false
+FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed. assert_true: expected true got false
+

Copied: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.html (from rev 269132, trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative.html) (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.html	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>
+      Testing behavior of AudioContext after execution context is detached
+    </title>
+    <script src=""
+    <script src=""
+    <script src=""
+  </head>
+  <body>
+    <script id="layout-test-code">
+      const audit = Audit.createTaskRunner();
+
+      audit.define('decoding-on-detached-iframe', (task, should) => {
+        const iframe =
+            document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
+        document.body.appendChild(iframe);
+        let context = new iframe.contentWindow.AudioContext();
+        document.body.removeChild(iframe);
+
+        should(context.decodeAudioData(new ArrayBuffer(1)),
+               'decodeAudioData() upon a detached iframe')
+            .beRejectedWith('InvalidStateError')
+            .then(() => task.done());
+      });
+
+      audit.run();
+    </script>
+  </body>
+</html>

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative-expected.txt (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative-expected.txt	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative-expected.txt	2020-10-29 00:51:55 UTC (rev 269133)
@@ -1,9 +0,0 @@
-
-PASS # AUDIT TASK RUNNER STARTED.
-PASS Executing "decoding-on-detached-iframe"
-PASS Audit report
-PASS > [decoding-on-detached-iframe]
-PASS   decodeAudioData() upon a detached iframe rejected correctly with NotAllowedError.
-PASS < [decoding-on-detached-iframe] All assertions passed. (total 1 assertions)
-PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully.
-

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative.html (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative.html	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative.html	2020-10-29 00:51:55 UTC (rev 269133)
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>
-      Testing behavior of AudioContext after execution context is detached
-    </title>
-    <script src=""
-    <script src=""
-    <script src=""
-  </head>
-  <body>
-    <script id="layout-test-code">
-      const audit = Audit.createTaskRunner();
-
-      audit.define('decoding-on-detached-iframe', (task, should) => {
-        const iframe =
-            document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
-        document.body.appendChild(iframe);
-        let context = new iframe.contentWindow.AudioContext();
-        document.body.removeChild(iframe);
-
-        // TODO(crbug.com/1060315): This assertion needs to be revised when the
-        // spec behavior is clarified for the case of a non-existent
-        // ExecutionContext.
-        should(context.decodeAudioData(new ArrayBuffer(1)),
-               'decodeAudioData() upon a detached iframe')
-            .beRejectedWith('NotAllowedError')
-            .then(() => task.done());
-      });
-
-      audit.run();
-    </script>
-  </body>
-</html>

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard-expected.txt (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard-expected.txt	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,5 @@
+
+FAIL suspend() promise_rejects_dom: function "function () { throw e }" threw an exception from the wrong global
+FAIL resume() promise_rejects_dom: function "function () { throw e }" threw an exception from the wrong global
+FAIL close() promise_rejects_dom: function "function () { throw e }" threw an exception from the wrong global
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard.html (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard.html	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,28 @@
+<!doctype html>
+<title>Test for rejected promises from methods on an AudioContext in a
+  discarded browsing context</title>
+<script src=""
+<script src=""
+<body></body>
+<script>
+let context;
+let childDOMException;
+setup(() => {
+  const frame = document.createElement('iframe');
+  document.body.appendChild(frame);
+  context = new frame.contentWindow.AudioContext();
+  childDOMException = frame.contentWindow.DOMException;
+  frame.remove();
+});
+
+promise_test((t) => promise_rejects_dom(t, 'InvalidStateError',
+                                        childDOMException, context.suspend()),
+             'suspend()');
+promise_test((t) => promise_rejects_dom(t, 'InvalidStateError',
+                                        childDOMException, context.resume()),
+             'resume()');
+promise_test((t) => promise_rejects_dom(t, 'InvalidStateError',
+                                        childDOMException, context.close()),
+             'close()');
+// decodeAudioData() is tested in audiocontext-detached-execution-context.html
+</script>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/w3c-import.log	2020-10-29 00:51:55 UTC (rev 269133)
@@ -14,7 +14,7 @@
 None
 ------------------------------------------------------------------------
 List of files:
-/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.tentative.html
+/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-detached-execution-context.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-getoutputtimestamp.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-not-fully-active.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontext-suspend-resume.html
@@ -21,4 +21,5 @@
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/audiocontextoptions.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/constructor-allowed-to-start.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/processing-after-resume.https.html
+/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/promise-methods-after-discard.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiocontext-interface/suspend-after-construct.html

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSourceToScriptProcessorTest.html (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSourceToScriptProcessorTest.html	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-mediaelementaudiosourcenode-interface/mediaElementAudioSourceToScriptProcessorTest.html	2020-10-29 00:51:55 UTC (rev 269133)
@@ -8,7 +8,7 @@
 to those of a loaded AudioBuffer with the same source.
 
 Somewhat similiar to a test from Mozilla:
-(http://dxr.mozilla.org/mozilla-central/source/content/media/webaudio/test/test_mediaElementAudioSourceNode.html?force=1)
+https://searchfox.org/mozilla-central/source/dom/media/webaudio/test/test_mediaElementAudioSourceNode.html
 -->
 
 <html class="a">

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context-expected.txt (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context-expected.txt	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,9 @@
+
+PASS # AUDIT TASK RUNNER STARTED.
+PASS Executing "decoding-on-detached-iframe"
+PASS Audit report
+PASS > [decoding-on-detached-iframe]
+FAIL X decodeAudioData() upon a detached iframe rejected correctly but got NotAllowedError instead of InvalidStateError. Got Promise. assert_true: expected true got false
+FAIL < [decoding-on-detached-iframe] 1 out of 1 assertions were failed. assert_true: expected true got false
+FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed. assert_true: expected true got false
+

Copied: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.html (from rev 269132, trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html) (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.html	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>
+      Testing behavior OfflineAudioContext after execution context is detached
+    </title>
+    <script src=""
+    <script src=""
+    <script src=""
+  </head>
+  <body>
+    <script id="layout-test-code">
+      const audit = Audit.createTaskRunner();
+
+      audit.define('decoding-on-detached-iframe', (task, should) => {
+        const iframe =
+            document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
+        document.body.appendChild(iframe);
+
+        // Use the lowest value possible for the faster test.
+        let context =
+            new iframe.contentWindow.OfflineAudioContext(1, 1, 8000);
+
+        document.body.removeChild(iframe);
+
+        return should(context.decodeAudioData(new ArrayBuffer(1)),
+               'decodeAudioData() upon a detached iframe')
+            .beRejectedWith('InvalidStateError');
+      });
+
+      audit.run();
+    </script>
+  </body>
+</html>

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative-expected.txt (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative-expected.txt	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative-expected.txt	2020-10-29 00:51:55 UTC (rev 269133)
@@ -1,9 +0,0 @@
-
-PASS # AUDIT TASK RUNNER STARTED.
-PASS Executing "decoding-on-detached-iframe"
-PASS Audit report
-PASS > [decoding-on-detached-iframe]
-PASS   decodeAudioData() upon a detached iframe rejected correctly with NotAllowedError.
-PASS < [decoding-on-detached-iframe] All assertions passed. (total 1 assertions)
-PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully.
-

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html	2020-10-29 00:51:55 UTC (rev 269133)
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>
-      Testing behavior OfflineAudioContext after execution context is detached
-    </title>
-    <script src=""
-    <script src=""
-    <script src=""
-  </head>
-  <body>
-    <script id="layout-test-code">
-      const audit = Audit.createTaskRunner();
-
-      audit.define('decoding-on-detached-iframe', async (task, should) => {
-        const iframe =
-            document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
-        document.body.appendChild(iframe);
-
-        // Use the lowest value possible for the faster test.
-        let context =
-            new iframe.contentWindow.OfflineAudioContext(1, 1, 8000);
-
-        document.body.removeChild(iframe);
-
-        // TODO(crbug.com/1060315): This assertion needs to be revised when the
-        // spec behavior is clarified for the case of a non-existent
-        // ExecutionContext.
-        should(context.decodeAudioData(new ArrayBuffer(1)),
-               'decodeAudioData() upon a detached iframe')
-            .beRejectedWith('NotAllowedError')
-            .then(() => task.done());
-      });
-
-      audit.run();
-    </script>
-  </body>
-</html>

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard-expected.txt (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard-expected.txt	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,3 @@
+
+FAIL startRendering() promise_rejects_dom: function "function () { throw e }" threw an exception from the wrong global
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard.html (0 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard.html	2020-10-29 00:51:55 UTC (rev 269133)
@@ -0,0 +1,24 @@
+<!doctype html>
+<title>Test for rejected promise from startRendering() on an
+  OfflineAudioContext in a discarded browsing context</title>
+<script src=""
+<script src=""
+<body></body>
+<script>
+let context;
+let childDOMException;
+setup(() => {
+  const frame = document.createElement('iframe');
+  document.body.appendChild(frame);
+  context = new frame.contentWindow.OfflineAudioContext(
+    {length: 1, sampleRate: 48000});
+  childDOMException = frame.contentWindow.DOMException;
+  frame.remove();
+});
+
+promise_test((t) => promise_rejects_dom(
+  t, 'InvalidStateError', childDOMException, context.startRendering()),
+             'startRendering()');
+// decodeAudioData() is tested in
+// offlineaudiocontext-detached-execution-context.html
+</script>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/w3c-import.log (269132 => 269133)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/w3c-import.log	2020-10-29 00:10:26 UTC (rev 269132)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/w3c-import.log	2020-10-29 00:51:55 UTC (rev 269133)
@@ -16,4 +16,5 @@
 List of files:
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/ctor-offlineaudiocontext.html
 /LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/current-time-block-size.html
-/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.tentative.html
+/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/offlineaudiocontext-detached-execution-context.html
+/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-offlineaudiocontext-interface/startrendering-after-discard.html
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to