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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/cue-style-invalidation.html

Issue 1079323002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from fs Created 4 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 <script src="../media-file.js"></script> 2 <script src="../media-file.js"></script>
3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
4 (Please avoid writing new tests using video-test.js) --> 4 (Please avoid writing new tests using video-test.js) -->
5 <script src="../video-test.js"></script> 5 <script src="../video-test.js"></script>
6 <script src="../media-controls.js"></script> 6 <script src="../media-controls.js"></script>
7 <style> 7 <style>
8 video::cue, 8 video::cue,
9 video::cue(c), 9 video::cue(c),
10 video::cue(i:past), 10 video::cue(i:past),
(...skipping 15 matching lines...) Expand all
26 26
27 cueNode = textTrackDisplayElement(video, "cue"); 27 cueNode = textTrackDisplayElement(video, "cue");
28 iNode = cueNode.firstElementChild; 28 iNode = cueNode.firstElementChild;
29 cNode = iNode.nextSibling.nextSibling; 29 cNode = iNode.nextSibling.nextSibling;
30 bNode = cNode.nextSibling.nextSibling; 30 bNode = cNode.nextSibling.nextSibling;
31 31
32 testExpected("getComputedStyle(cueNode).backgroundColor", red); 32 testExpected("getComputedStyle(cueNode).backgroundColor", red);
33 ascendant.offsetTop; 33 ascendant.offsetTop;
34 ascendant.classList.add("cue"); 34 ascendant.classList.add("cue");
35 if (window.internals) 35 if (window.internals)
36 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 8); 36 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 9);
37 testExpected("getComputedStyle(cueNode).backgroundColor", green); 37 testExpected("getComputedStyle(cueNode).backgroundColor", green);
38 38
39 testExpected("getComputedStyle(cNode).backgroundColor", red); 39 testExpected("getComputedStyle(cNode).backgroundColor", red);
40 ascendant.offsetTop; 40 ascendant.offsetTop;
41 ascendant.classList.add("cuefunc"); 41 ascendant.classList.add("cuefunc");
42 if (window.internals) 42 if (window.internals)
43 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 1); 43 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 1);
44 testExpected("getComputedStyle(cNode).backgroundColor", green); 44 testExpected("getComputedStyle(cNode).backgroundColor", green);
45 45
46 testExpected("getComputedStyle(iNode).backgroundColor", red); 46 testExpected("getComputedStyle(iNode).backgroundColor", red);
(...skipping 24 matching lines...) Expand all
71 <div id="ascendant"> 71 <div id="ascendant">
72 <video> 72 <video>
73 <track src="captions-webvtt/invalidation.vtt" kind="captions" default> 73 <track src="captions-webvtt/invalidation.vtt" kind="captions" default>
74 </video> 74 </video>
75 <div></div> 75 <div></div>
76 <div></div> 76 <div></div>
77 </div> 77 </div>
78 <div> 78 <div>
79 <div></div> 79 <div></div>
80 </div> 80 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698