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

Side by Side Diff: LayoutTests/fast/css/invalidation/fullscreen.html

Issue 788073004: Replace RenderFullscreen with top layer - Take II (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 #full, #ancestor, #doc { 4 #full, #ancestor, #doc {
5 background-color: red; 5 background-color: red;
6 } 6 }
7 7
8 .t1 #full:-webkit-full-screen, 8 .t1 #full:-webkit-full-screen,
9 .t2 #ancestor:-webkit-full-screen-ancestor, 9 .t2 #ancestor:-webkit-full-screen-ancestor,
10 .t3 #doc:-webkit-full-screen-document { 10 .t3 #doc:-webkit-full-screen-document {
(...skipping 20 matching lines...) Expand all
31 31
32 var red = "rgb(255, 0, 0)"; 32 var red = "rgb(255, 0, 0)";
33 var green = "rgb(0, 128, 0)"; 33 var green = "rgb(0, 128, 0)";
34 34
35 function runTests() { 35 function runTests() {
36 36
37 shouldBe("getComputedStyle(full).backgroundColor", "red"); 37 shouldBe("getComputedStyle(full).backgroundColor", "red");
38 testRoot.offsetTop; // force recalc 38 testRoot.offsetTop; // force recalc
39 testRoot.className = "t1"; 39 testRoot.className = "t1";
40 if (window.internals) 40 if (window.internals)
41 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 41 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3");
42 shouldBe("getComputedStyle(full).backgroundColor", "green"); 42 shouldBe("getComputedStyle(full).backgroundColor", "green");
43 43
44 shouldBe("getComputedStyle(ancestor).backgroundColor", "red"); 44 shouldBe("getComputedStyle(ancestor).backgroundColor", "red");
45 testRoot.offsetTop; // force recalc 45 testRoot.offsetTop; // force recalc
46 testRoot.className += " t2"; 46 testRoot.className += " t2";
47 if (window.internals) 47 if (window.internals)
48 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 48 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
49 shouldBe("getComputedStyle(ancestor).backgroundColor", "green"); 49 shouldBe("getComputedStyle(ancestor).backgroundColor", "green");
50 50
51 shouldBe("getComputedStyle(doc).backgroundColor", "red"); 51 shouldBe("getComputedStyle(doc).backgroundColor", "red");
(...skipping 13 matching lines...) Expand all
65 document.getElementById("full").webkitRequestFullScreen(); 65 document.getElementById("full").webkitRequestFullScreen();
66 }); 66 });
67 67
68 document.addEventListener("webkitfullscreenchange", function(){ 68 document.addEventListener("webkitfullscreenchange", function(){
69 runTests(); 69 runTests();
70 }); 70 });
71 71
72 if (window.eventSender) 72 if (window.eventSender)
73 eventSender.keyDown(" "); 73 eventSender.keyDown(" ");
74 </script> 74 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698