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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrackCueList/getCueById.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrackCueList/getCueById.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrackCueList/getCueById.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrackCueList/getCueById.html
deleted file mode 100644
index 3aa81583bc983aae9a5cce7e151b27f1616efd3a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrackCueList/getCueById.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!doctype html>
-<title>TextTrackCueList.getCueById</title>
-<script src=../../../../../../../../resources/testharness.js></script>
-<script src=../../../../../../../../resources/testharnessreport.js></script>
-<div id=log></div>
-<script>
-test(function(){
- var video = document.createElement('video');
- var t = video.addTextTrack('subtitles');
- document.body.appendChild(video);
- var cues = t.cues;
- var c = new VTTCue(0, 1, 'text1');
- t.addCue(c);
- assert_equals(cues.getCueById(""), null, '""');
- assert_equals(cues.getCueById(null), null, 'null');
- assert_equals(cues.getCueById(undefined), null, 'undefined');
-}, document.title+ ', no id');
-test(function(){
- var video = document.createElement('video');
- var t = video.addTextTrack('subtitles');
- document.body.appendChild(video);
- var cues = t.cues;
- var c = new VTTCue(0, 1, 'text1');
- c.id = 'foo';
- t.addCue(c);
- assert_equals(cues.getCueById(""), null, '""');
- assert_equals(cues.getCueById("foo"), c, '"foo"');
- assert_equals(cues.getCueById({toString:function(){return "foo"}}), c, 'object');
-}, document.title+ ', id foo');
-test(function(){
- var video = document.createElement('video');
- var t = video.addTextTrack('subtitles');
- document.body.appendChild(video);
- var cues = t.cues;
- var c = new VTTCue(0, 1, 'text1');
- c.id = '1';
- t.addCue(c);
- assert_equals(cues.getCueById(""), null, '""');
- assert_equals(cues.getCueById("1"), c, '"1"');
- assert_equals(cues.getCueById(1), c, '1');
-}, document.title+ ', no 1');
-test(function(){
- var video = document.createElement('video');
- var t = video.addTextTrack('subtitles');
- document.body.appendChild(video);
- var cues = t.cues;
- var c = new VTTCue(0, 1, 'text1');
- c.id = 'a\u0000b';
- t.addCue(c);
- assert_equals(cues.getCueById("a\u0000b"), c, '"a\\u0000b"');
- assert_equals(cues.getCueById("a"), null, '"a"');
-}, document.title+ ', id a\\u0000b');
-</script>

Powered by Google App Engine
This is Rietveld 408576698