mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Add the missing file for the test in bug 809654
This commit is contained in:
parent
aee7ba06a2
commit
5d5d4ac533
14
content/media/webaudio/test/webaudio.js
Normal file
14
content/media/webaudio/test/webaudio.js
Normal file
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user