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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/opera/track/webvtt/parsing/001.html

Issue 2683633006: [WebVTT] Rename Middle to Center (Closed)
Patch Set: rebased 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <title>WebVTT parser tests</title> 2 <title>WebVTT parser tests</title>
3 <script src="../../../../../../resources/testharness.js"></script> 3 <script src="../../../../../../resources/testharness.js"></script>
4 <script src="../../../../../../resources/testharnessreport.js"></script> 4 <script src="../../../../../../resources/testharnessreport.js"></script>
5 <div id=log></div> 5 <div id=log></div>
6 <script> 6 <script>
7 setup({explicit_done: true}); 7 setup({explicit_done: true});
8 var files = []; 8 var files = [];
9 var path = 'support/'; 9 var path = 'support/';
10 var cueDefaults = { 10 var cueDefaults = {
11 "id":"", 11 "id":"",
12 "startTime":0, 12 "startTime":0,
13 "endTime":1, 13 "endTime":1,
14 "pauseOnExit":false, 14 "pauseOnExit":false,
15 //"vertical":"", (not supported) 15 //"vertical":"", (not supported)
16 "snapToLines":true, 16 "snapToLines":true,
17 "line":"auto", 17 "line":"auto",
18 "position":"auto", 18 "position":"auto",
19 "size":100, 19 "size":100,
20 "align":"middle" 20 "align":"center"
fs 2017/02/15 09:38:50 You need to update the source data (support/align.
maksims (do not use this acc) 2017/02/16 06:41:09 Yep
21 } 21 }
22 var cueCounts; 22 var cueCounts;
23 (function(){ 23 (function(){
24 var xhr = new XMLHttpRequest(); 24 var xhr = new XMLHttpRequest();
25 xhr.open('GET', path+'cue-counts.json', true); 25 xhr.open('GET', path+'cue-counts.json', true);
26 xhr.onreadystatechange = function() { 26 xhr.onreadystatechange = function() {
27 if (xhr.readyState == 4) { 27 if (xhr.readyState == 4) {
28 cueCounts = JSON.parse(xhr.responseText); 28 cueCounts = JSON.parse(xhr.responseText);
29 for (var file in cueCounts) { 29 for (var file in cueCounts) {
30 files.push(file); 30 files.push(file);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 var file = track.src.substr(track.src.lastIndexOf('/') + 1); 87 var file = track.src.substr(track.src.lastIndexOf('/') + 1);
88 assert_equals('error', cueCounts[file], 'got unexpected error event'); 88 assert_equals('error', cueCounts[file], 'got unexpected error event');
89 this.done(); 89 this.done();
90 } 90 }
91 91
92 function removeElm(elm) { 92 function removeElm(elm) {
93 document.body.removeChild(elm); 93 document.body.removeChild(elm);
94 } 94 }
95 95
96 </script> 96 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698