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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/webvtt/api/VTTCue/region.html

Issue 2711183003: Import wpt@a7e9c2abcf65b78fcf1c246fec6681c74e1bc352 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 9 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
(Empty)
1 <!doctype html>
2 <title>VTTCue.region</title>
3 <link rel="help" href="https://w3c.github.io/webvtt/#dom-vttcue-region">
4 <script src=/resources/testharness.js></script>
5 <script src=/resources/testharnessreport.js></script>
6 <div id=log></div>
7 <script>
8 test(function(){
9 var video = document.createElement('video');
10 document.body.appendChild(video);
11
12 var cue = new VTTCue(0, 1, 'text');
13 assert_equals(cue.region, null);
14
15 var track = document.createElement('track');
16 var t = track.track;
17 t.addCue(cue);
18
19 assert_equals(cue.region, null);
20
21 video.appendChild(track);
22 assert_equals(cue.region, null);
23
24 t.mode = 'showing';
25 assert_equals(cue.region, null);
26
27 var region = new VTTRegion();
28 cue.region = region;
29 assert_equals(cue.region, region);
30
31 cue.region = 'foo';
32 assert_equals(cue.region, region);
33
34 cue.region = null;
35 assert_equals(cue.region, null);
36 }, document.title+', script-created cue');
37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698