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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/targeted-hover-invalidation.html

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 .test { width: 50px; height: 50px; } 4 .test { width: 50px; height: 50px; }
5 #t1:hover { background-color: green } 5 #t1:hover { background-color: green }
6 #t2:hover .class { background-color: green } 6 #t2:hover .class { background-color: green }
7 #t3:hover span { background-color: green } 7 #t3:hover span { background-color: green }
8 </style> 8 </style>
9 <div id="t1" class="test"> 9 <div id="t1" class="test">
10 <div></div> 10 <div></div>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 var r2 = t2.querySelector(".class"); 49 var r2 = t2.querySelector(".class");
50 var r3 = t3.querySelectorAll("span"); 50 var r3 = t3.querySelectorAll("span");
51 51
52 shouldBe("getComputedStyle(r1, null).backgroundColor", "transparent"); 52 shouldBe("getComputedStyle(r1, null).backgroundColor", "transparent");
53 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent"); 53 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent");
54 shouldBe("r3.length", "2"); 54 shouldBe("r3.length", "2");
55 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "transparent"); 55 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "transparent");
56 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "transparent"); 56 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "transparent");
57 57
58 hoverElement(t1); 58 hoverElement(t1);
59 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); 59 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1");
60 shouldBe("getComputedStyle(r1, null).backgroundColor", "green"); 60 shouldBe("getComputedStyle(r1, null).backgroundColor", "green");
61 61
62 hoverElement(t2); 62 hoverElement(t2);
63 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 63 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2");
64 shouldBe("getComputedStyle(r2, null).backgroundColor", "green"); 64 shouldBe("getComputedStyle(r2, null).backgroundColor", "green");
65 65
66 hoverElement(t3); 66 hoverElement(t3);
67 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3"); 67 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "3");
68 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "green"); 68 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "green");
69 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "green"); 69 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "green");
70 70
71 </script> 71 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698