Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: LayoutTests/media/track/text-track-cue-constructor.html

Issue 177613005: Remove the TextTrackCue constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix fast/js/constructor-length.html Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/fast/js/constructor-length-expected.txt ('k') | LayoutTests/media/track/text-track-cue-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698