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

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

Issue 63173020: Split VTTCue from TextTrackCue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
new file mode 100644
index 0000000000000000000000000000000000000000..2a74a10389f4fb5e1a566f0e859d909d0938cb1a
--- /dev/null
+++ b/LayoutTests/media/track/text-track-cue-constructor.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>TextTrackCue constructor</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <div id="log"></div>
+ <script>
+ test(function()
+ {
+ assert_not_equals(TextTrackCue, VTTCue);
+ }, "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");
+ </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