| Index: LayoutTests/media/track/text-track-cue-constructor.html
|
| diff --git a/LayoutTests/media/track/text-track-cue-constructor.html b/LayoutTests/media/track/text-track-cue-constructor.html
|
| index 87f9408ebcccdb660be73e3de9f9cfc498360f10..79ef414880b5f6f1ed0389b67b03e445d94f8ed2 100644
|
| --- a/LayoutTests/media/track/text-track-cue-constructor.html
|
| +++ b/LayoutTests/media/track/text-track-cue-constructor.html
|
| @@ -14,20 +14,11 @@
|
| }, "TextTrackCue and VTTCue are separate interfaces");
|
| test(function()
|
| {
|
| - var cue = new TextTrackCue(0, 0, "");
|
| - assert_true(cue instanceof TextTrackCue);
|
| - assert_true(cue instanceof VTTCue);
|
| - }, "TextTrackCue constructor returns a VTTCue");
|
| - test(function()
|
| - {
|
| - try {
|
| - new TextTrackCue(0);
|
| - assert_unreached("Expected a TypeError");
|
| - } catch (e) {
|
| - assert_true(e instanceof TypeError);
|
| - assert_equals(e.message, "Failed to construct 'TextTrackCue': 3 arguments required, but only 1 present.");
|
| - }
|
| - }, "When not fully applied, TextTrackCue constructor throws a TypeError");
|
| + assert_throws(new TypeError(), function()
|
| + {
|
| + new TextTrackCue(0, 0, "");
|
| + });
|
| + }, "TextTrackCue constructor should not be supported");
|
| </script>
|
| </body>
|
| </html>
|
|
|