Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit bd4d9b6

Browse files
Pehrsonsmoz-wptsync-bot
authored andcommitted
Fix MediaRecorderErrorEvent boilerplate in idlharness.window.js.
Differential Revision: https://phabricator.services.mozilla.com/D46468 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1582408 gecko-commit: 8104d82879e2f73ba695ee0a8b6c7005418f0819 gecko-integration-branch: autoland gecko-reviewers: jib
1 parent 6baeb70 commit bd4d9b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mediacapture-record/idlharness.window.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
idl_test(
99
['mediastream-recording'],
10-
['mediacapture-streams', 'FileAPI', 'html', 'dom'],
10+
['mediacapture-streams', 'FileAPI', 'html', 'dom', 'WebIDL'],
1111
idl_array => {
1212
// Ignored errors will be surfaced in idlharness.js's test_object below.
1313
let recorder, blob, error;
@@ -31,7 +31,9 @@ idl_test(
3131
idl_array.add_objects({ BlobEvent: [blob] });
3232

3333
try {
34-
error = new MediaRecorderErrorEvent("type", {});
34+
error = new MediaRecorderErrorEvent("type", {
35+
error: new DOMException,
36+
});
3537
} catch(e) {}
3638
idl_array.add_objects({ MediaRecorderErrorEvent: [error] });
3739
}

0 commit comments

Comments
 (0)