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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/regions-webvtt/text-track-cue-region-attribute.html

Issue 2682333002: Implement VTTCue.region and sync the VTTRegion interface (Closed)
Patch Set: Add DCHECK 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
(Empty)
1 <!DOCTYPE html>
2 <title>Tests the regionId attribute of a cue.</title>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <script>
6 async_test(function(t) {
7 var cue = new VTTCue(0, 1, 'sample');
8
9 assert_equals(cue.regionId, '');
10 cue.regionId = 'someId';
11 assert_equals(cue.regionId, 'someId');
12
13 var video = document.createElement('video');
14 var track = document.createElement('track');
15 track.onload = t.step_func_done(function() {
16 cue = track.track.cues[0];
17 assert_equals(cue.regionId, 'someregionattributeid');
18
19 for (i = 1; i < 4; ++i) {
20 cue = track.track.cues[i];
21 assert_equals(cue.regionId, '');
22 }
23 });
24 track.src = '../captions-webvtt/header-regions.vtt';
25 track.kind = 'captions';
26 track.default = true;
27 video.appendChild(track);
28 });
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698