Bug 1424271 - convert mochitest test_AudioContext.html to a web-platform-test r?padenot draft
authorp1509425
Fri, 05 Jan 2018 16:36:24 +0100
changeset 717082 847cafcab758fb8c8bd5e66fdc4d8d7928afaed7
parent 717081 0185301efaf20c2785b2b8d943151dbd547fcd46
child 717083 ccbfff9e6b68aa35b91f66758d10c679e62fc4d3
push id94557
push userbmo:alan.guyoch@gmail.com
push dateMon, 08 Jan 2018 07:50:18 +0000
reviewerspadenot
bugs1424271
milestone59.0a1
Bug 1424271 - convert mochitest test_AudioContext.html to a web-platform-test r?padenot MozReview-Commit-ID: GhuGevb5Xxo
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/webaudio/the-audio-api/the-audiocontext-interface/test_AudioContext.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -348576,16 +348576,22 @@
     ]
    ],
    "webaudio/the-audio-api/the-audiobuffersourcenode-interface/test_audioBufferSourceNodeOffset.html": [
     [
      "/webaudio/the-audio-api/the-audiobuffersourcenode-interface/test_audioBufferSourceNodeOffset.html",
      {}
     ]
    ],
+   "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-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": [
     [
@@ -576497,16 +576503,20 @@
   "webaudio/the-audio-api/the-audiobuffersourcenode-interface/test_audioBufferSourceNodeOffset.html": [
    "9c49750f889df8b10bdefb6d8ac008b97e8c200e",
    "testharness"
   ],
   "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-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_AudioContext.html
@@ -0,0 +1,16 @@
+<!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();
+assert_not_equals(ac, null, "Create a AudioContext object");
+assert_true(ac instanceof EventTarget, "AudioContexts must be EventTargets");
+t.done();
+  </script>
+</head>
+</body>
+</html>