Bug 1408456 - convert mochitest test_audioDestinationNode.html to a web-platform-test r?padenot draft
authorp1509425
Fri, 05 Jan 2018 16:45:01 +0100
changeset 716371 3d0014d33648af14a9912f3c7594dc0a379222ed
parent 716367 23ae09c0899a652645042c3cd276b87d4d3c0e74
child 716372 fd2e411296d9a95f52fac79a7d549f0b83e74874
push id94412
push userbmo:alan.guyoch@gmail.com
push dateFri, 05 Jan 2018 15:46:31 +0000
reviewerspadenot
bugs1408456
milestone59.0a1
Bug 1408456 - convert mochitest test_audioDestinationNode.html to a web-platform-test r?padenot MozReview-Commit-ID: HunhGcBrki7
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/webaudio/the-audio-api/the-audiocontext-interface/test_audioDestinationNode.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -348582,16 +348582,22 @@
     ]
    ],
    "webaudio/the-audio-api/the-audiocontext-interface/test_AudioContext.html": [
     [
      "/webaudio/the-audio-api/the-audiocontext-interface/test_AudioContext.html",
      {}
     ]
    ],
+   "webaudio/the-audio-api/the-audiocontext-interface/test_audioDestinationNode.html": [
+    [
+     "/webaudio/the-audio-api/the-audiocontext-interface/test_audioDestinationNode.html",
+     {}
+    ]
+   ],
    "webaudio/the-audio-api/the-audiodestinationnode-interface/idl-test.html": [
     [
      "/webaudio/the-audio-api/the-audiodestinationnode-interface/idl-test.html",
      {}
     ]
    ],
    "webaudio/the-audio-api/the-audionode-interface/audionode-connect-return-value.html": [
     [
@@ -576507,16 +576513,20 @@
   "webaudio/the-audio-api/the-audiocontext-interface/.gitkeep": [
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
   "webaudio/the-audio-api/the-audiocontext-interface/test_AudioContext.html": [
    "e8833ffc68e8a1dbee1fc48f15347f35dcca7a5a",
    "testharness"
   ],
+  "webaudio/the-audio-api/the-audiocontext-interface/test_audioDestinationNode.html": [
+   "10a4852ec668833e7047610aa0085861a9f96f56",
+   "testharness"
+  ],
   "webaudio/the-audio-api/the-audiodestinationnode-interface/.gitkeep": [
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
   "webaudio/the-audio-api/the-audiodestinationnode-interface/idl-test.html": [
    "3e8b55e707434899be9af13334d935368579f1dc",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/webaudio/the-audio-api/the-audiocontext-interface/test_audioDestinationNode.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <script src="/resources/testharness.js"></script>
+  <script src="/resources/testharnessreport.js"></script>
+  <script>
+var t = async_test();
+
+var ac = new AudioContext();
+ac.destination.addEventListener("foo", function() {
+  assert_true(true, "Event received!");
+  t.done();
+});
+ac.destination.dispatchEvent(new CustomEvent("foo"));
+  </script>
+</head>
+</body>
+</html>