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

Side by Side Diff: LayoutTests/media/track/regions-webvtt/vtt-region-constructor.html

Issue 55653003: Rename TextTrackRegion/TextTrackRegionList to VTTRegion/VTTRegionList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test expectations 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 5
6 <script src=../../media-file.js></script> 6 <script src=../../media-file.js></script>
7 <script src=../../video-test.js></script> 7 <script src=../../video-test.js></script>
8 <script> 8 <script>
9 var region; 9 var region;
10 var invalidPercentageValues; 10 var invalidPercentageValues;
11 11
12 function startTest() 12 function startTest()
13 { 13 {
14 if (!window.TextTrackRegion) { 14 if (!window.VTTRegion) {
15 failTest(); 15 failTest();
16 return; 16 return;
17 } 17 }
18 18
19 region = new TextTrackRegion(); 19 region = new VTTRegion();
20
21 consoleWrite("** Test instanceof VTTRegion. **");
22 testExpected("region instanceof VTTRegion", true);
20 23
21 consoleWrite("** Test the default indexs of a region. **"); 24 consoleWrite("** Test the default indexs of a region. **");
22 testExpected("region.track", null); 25 testExpected("region.track", null);
23 testExpected("region.scroll", ""); 26 testExpected("region.scroll", "");
24 testExpected("region.viewportAnchorX", 0); 27 testExpected("region.viewportAnchorX", 0);
25 testExpected("region.viewportAnchorY", 100); 28 testExpected("region.viewportAnchorY", 100);
26 testExpected("region.regionAnchorX", 0); 29 testExpected("region.regionAnchorX", 0);
27 testExpected("region.regionAnchorY", 100); 30 testExpected("region.regionAnchorY", 100);
28 testExpected("region.height", 3); 31 testExpected("region.height", 3);
29 testExpected("region.width", 100); 32 testExpected("region.width", 100);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 68
66 run("region.width = 42"); 69 run("region.width = 42");
67 testExpected("region.width", 42); 70 testExpected("region.width", 42);
68 71
69 endTest(); 72 endTest();
70 } 73 }
71 74
72 </script> 75 </script>
73 </head> 76 </head>
74 <body onload="startTest()"> 77 <body onload="startTest()">
75 <p>Tests the constructor and mutation of TextTrackRegion.</p> 78 <p>Tests the constructor and mutation of VTTRegion.</p>
76 </body> 79 </body>
77 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698