diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html')
-rw-r--r-- | tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html index 8f5a543d8fb..4946cd71d81 100644 --- a/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html +++ b/tests/wpt/web-platform-tests/mediacapture-streams/MediaStreamTrackEvent-constructor.https.html @@ -6,25 +6,25 @@ <script> test(function() { assert_equals(MediaStreamTrackEvent.length, 2); - assert_throws(new TypeError, function() { + assert_throws_js(TypeError, function() { new MediaStreamTrackEvent("type"); }); - assert_throws(new TypeError, function() { + assert_throws_js(TypeError, function() { new MediaStreamTrackEvent("type", null); }); - assert_throws(new TypeError, function() { + assert_throws_js(TypeError, function() { new MediaStreamTrackEvent("type", undefined); }); }, "The eventInitDict argument is required"); test(function() { - assert_throws(new TypeError, function() { + assert_throws_js(TypeError, function() { new MediaStreamTrackEvent("type", {}); }); - assert_throws(new TypeError, function() { + assert_throws_js(TypeError, function() { new MediaStreamTrackEvent("type", { track: null }); }); - assert_throws(new TypeError, function() { + assert_throws_js(TypeError, function() { new MediaStreamTrackEvent("type", { track: undefined }); }); }, "The eventInitDict's track member is required."); |