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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/webvtt/webvtt-api-for-browsers/vttcue-interface/line.html

Issue 2711183003: Import wpt@a7e9c2abcf65b78fcf1c246fec6681c74e1bc352 (Closed)
Patch Set: Update test expectations and baselines. Created 3 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: third_party/WebKit/LayoutTests/external/wpt/webvtt/webvtt-api-for-browsers/vttcue-interface/line.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/webvtt/webvtt-api-for-browsers/vttcue-interface/line.html b/third_party/WebKit/LayoutTests/external/wpt/webvtt/webvtt-api-for-browsers/vttcue-interface/line.html
deleted file mode 100644
index 88e3602469782e6e4c04685235787b115826993f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/external/wpt/webvtt/webvtt-api-for-browsers/vttcue-interface/line.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!doctype html>
-<title>VTTCue.line</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');
- document.body.appendChild(video);
- var c1 = new VTTCue(0, 1, 'text1');
- assert_equals(c1.line, "auto");
- var track = document.createElement('track');
- var t = track.track;
- t.addCue(c1);
- assert_equals(c1.line, "auto");
- video.appendChild(track);
- assert_equals(c1.line, "auto");
- t.mode = 'showing';
- assert_equals(c1.line, "auto");
- var c2 = new VTTCue(0, 1, 'text2');
- var track2 = document.createElement('track');
- var t2 = track2.track;
- t2.addCue(c2);
- assert_equals(c2.line, "auto");
- video.appendChild(track2);
- t2.mode = 'showing';
- assert_equals(c2.line, "auto");
- assert_equals(c1.line, "auto");
- c1.line = -5;
- assert_equals(c1.line, -5);
- assert_equals(c2.line, "auto");
- c1.line = 0;
- c1.snapToLines = false;
- assert_equals(c1.line, 0);
- assert_equals(c2.line, "auto");
-}, document.title+', script-created cue');
-
-var t_parsed = async_test(document.title+', parsed cue');
-t_parsed.step(function(){
- var video = document.createElement('video');
- document.body.appendChild(video);
- var t = document.createElement('track');
- t.onload = this.step_func(function(){
- var c1 = t.track.cues[0];
- var c2 = t.track.cues[1];
- var c3 = t.track.cues[2];
- assert_equals(c1.line, "auto");
- assert_equals(c2.line, 0);
- assert_equals(c3.line, 0);
-
- this.done();
- });
- t.onerror = this.step_func(function() {
- assert_unreached('got error event');
- });
- t.src = 'data:text/vtt,'+encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:00:00.001\ntest\n\n'+
- '00:00:00.000 --> 00:00:00.001 line:0\ntest\n\n'+
- '00:00:00.000 --> 00:00:00.001 line:0%\ntest');
- t.track.mode = 'showing';
- video.appendChild(t);
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698