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

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: Merge Blink repo changes and addressed comments from philipj and UX 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 <script src="../video-test.js"></script> 3 <script src="../video-test.js"></script>
4 <script src="../media-controls.js"></script> 4 <script src="../media-controls.js"></script>
5 <style> 5 <style>
6 video::cue, 6 video::cue,
7 video::cue(c), 7 video::cue(c),
8 video::cue(i:past), 8 video::cue(i:past),
9 video::cue(.b:future) { background-color: red } 9 video::cue(.b:future) { background-color: red }
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 cueNode = textTrackDisplayElement(video, "cue"); 25 cueNode = textTrackDisplayElement(video, "cue");
26 iNode = cueNode.firstElementChild; 26 iNode = cueNode.firstElementChild;
27 cNode = iNode.nextSibling.nextSibling; 27 cNode = iNode.nextSibling.nextSibling;
28 bNode = cNode.nextSibling.nextSibling; 28 bNode = cNode.nextSibling.nextSibling;
29 29
30 testExpected("getComputedStyle(cueNode).backgroundColor", red); 30 testExpected("getComputedStyle(cueNode).backgroundColor", red);
31 ascendant.offsetTop; 31 ascendant.offsetTop;
32 ascendant.classList.add("cue"); 32 ascendant.classList.add("cue");
33 if (window.internals) 33 if (window.internals)
34 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 8); 34 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 9);
35 testExpected("getComputedStyle(cueNode).backgroundColor", green); 35 testExpected("getComputedStyle(cueNode).backgroundColor", green);
36 36
37 testExpected("getComputedStyle(cNode).backgroundColor", red); 37 testExpected("getComputedStyle(cNode).backgroundColor", red);
38 ascendant.offsetTop; 38 ascendant.offsetTop;
39 ascendant.classList.add("cuefunc"); 39 ascendant.classList.add("cuefunc");
40 if (window.internals) 40 if (window.internals)
41 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 1); 41 testExpected("internals.updateStyleAndReturnAffectedElementCount()", 1);
42 testExpected("getComputedStyle(cNode).backgroundColor", green); 42 testExpected("getComputedStyle(cNode).backgroundColor", green);
43 43
44 testExpected("getComputedStyle(iNode).backgroundColor", red); 44 testExpected("getComputedStyle(iNode).backgroundColor", red);
(...skipping 24 matching lines...) Expand all
69 <div id="ascendant"> 69 <div id="ascendant">
70 <video> 70 <video>
71 <track src="captions-webvtt/invalidation.vtt" kind="captions" default> 71 <track src="captions-webvtt/invalidation.vtt" kind="captions" default>
72 </video> 72 </video>
73 <div></div> 73 <div></div>
74 <div></div> 74 <div></div>
75 </div> 75 </div>
76 <div> 76 <div>
77 <div></div> 77 <div></div>
78 </div> 78 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698