Add the missing file for the test in bug 809654
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 08 Nov 2012 09:33:12 -0500
changeset 112687 c1d783e19750d3ede754bcea409b71a933306b2e
parent 112686 83e1f7986539dfef7c95c2eaa62c4acc882cb6c5
child 112688 f8989ca9a3c6ab5e161932e22f645e392964ab37
push id23835
push userryanvm@gmail.com
push dateFri, 09 Nov 2012 00:52:02 +0000
treeherdermozilla-central@27ae6c86237f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs809654
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Add the missing file for the test in bug 809654
content/media/webaudio/test/webaudio.js
new file mode 100644
--- /dev/null
+++ b/content/media/webaudio/test/webaudio.js
@@ -0,0 +1,14 @@
+// Helpers for Web Audio tests
+
+function expectException(func, exceptionCode) {
+  var threw = false;
+  try {
+    func();
+  } catch (ex) {
+    threw = true;
+    ok(ex instanceof DOMException, "Expect a DOM exception");
+    ok(ex.code, exceptionCode, "Expect the correct exception code");
+  }
+  ok(threw, "The exception was thrown");
+}
+