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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/scrollbar-pseudo.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 .scroller::-webkit-scrollbar { 4 .scroller::-webkit-scrollbar {
5 height: 5px; 5 height: 5px;
6 } 6 }
7 7
8 .scroller { 8 .scroller {
9 width: 200px; 9 width: 200px;
10 height: 10px; 10 height: 10px;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 function testScrollbarPseudo(pseudoElm, scroller, classElement, testClass, expec tedCount) { 73 function testScrollbarPseudo(pseudoElm, scroller, classElement, testClass, expec tedCount) {
74 74
75 var computedString = "getComputedStyle(" + scroller + ", '" + pseudoElm + "' ).backgroundColor"; 75 var computedString = "getComputedStyle(" + scroller + ", '" + pseudoElm + "' ).backgroundColor";
76 76
77 shouldBe(computedString, "transparent"); 77 shouldBe(computedString, "transparent");
78 78
79 document.body.offsetTop; // force recalc 79 document.body.offsetTop; // force recalc
80 classElement.className = testClass; 80 classElement.className = testClass;
81 81
82 if (window.internals) 82 if (window.internals)
83 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "" + ex pectedCount); 83 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()" , "" + expectedCount);
84 84
85 shouldBe(computedString, "green"); 85 shouldBe(computedString, "green");
86 classElement.className = ""; 86 classElement.className = "";
87 } 87 }
88 88
89 // The expected affected element counts below need an explanation: 89 // The expected affected element counts below need an explanation:
90 // 90 //
91 // The descendant selector tests invalidate 2 normal dom elements: 91 // The descendant selector tests invalidate 2 normal dom elements:
92 // #scrollerParent, #scroller1 92 // #scrollerParent, #scroller1
93 // 93 //
(...skipping 19 matching lines...) Expand all
113 testScrollbarPseudo("::-webkit-scrollbar-corner", "scroller2", scrollerSibling, "t6", 3); 113 testScrollbarPseudo("::-webkit-scrollbar-corner", "scroller2", scrollerSibling, "t6", 3);
114 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller1", scrollerParent, "t 7", 3); 114 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller1", scrollerParent, "t 7", 3);
115 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller2", scrollerSibling, " t8", 3); 115 testScrollbarPseudo("::-webkit-scrollbar-thumb", "scroller2", scrollerSibling, " t8", 3);
116 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller1", scrollerParent, "t 9", 3); 116 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller1", scrollerParent, "t 9", 3);
117 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller2", scrollerSibling, " t10", 3); 117 testScrollbarPseudo("::-webkit-scrollbar-track", "scroller2", scrollerSibling, " t10", 3);
118 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller1", scrollerPare nt, "t11", 4); 118 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller1", scrollerPare nt, "t11", 4);
119 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller2", scrollerSibl ing, "t12", 4); 119 testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller2", scrollerSibl ing, "t12", 4);
120 testScrollbarPseudo("::-webkit-resizer", "scroller1", scrollerParent, "t13", 3); 120 testScrollbarPseudo("::-webkit-resizer", "scroller1", scrollerParent, "t13", 3);
121 testScrollbarPseudo("::-webkit-resizer", "scroller2", scrollerSibling, "t14", 3) ; 121 testScrollbarPseudo("::-webkit-resizer", "scroller2", scrollerSibling, "t14", 3) ;
122 </script> 122 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698