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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/lang-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 :lang(no), :lang(no) + div > span, 4 :lang(no), :lang(no) + div > span,
5 :lang(en), :lang(en) + div > span { background-color: green } 5 :lang(en), :lang(en) + div > span { background-color: green }
6 </style> 6 </style>
7 <div id="norwegian"></div> 7 <div id="norwegian"></div>
8 <div> 8 <div>
9 <div></div> 9 <div></div>
10 <div></div> 10 <div></div>
(...skipping 15 matching lines...) Expand all
26 26
27 shouldBe("getComputedStyle(norwegian).backgroundColor", "transparent"); 27 shouldBe("getComputedStyle(norwegian).backgroundColor", "transparent");
28 shouldBe("getComputedStyle(nospan).backgroundColor", "transparent"); 28 shouldBe("getComputedStyle(nospan).backgroundColor", "transparent");
29 shouldBe("getComputedStyle(english).backgroundColor", "transparent"); 29 shouldBe("getComputedStyle(english).backgroundColor", "transparent");
30 shouldBe("getComputedStyle(enspan).backgroundColor", "transparent"); 30 shouldBe("getComputedStyle(enspan).backgroundColor", "transparent");
31 31
32 document.documentElement.offsetTop; // Force recalc. 32 document.documentElement.offsetTop; // Force recalc.
33 norwegian.lang = "no"; 33 norwegian.lang = "no";
34 34
35 if (window.internals) 35 if (window.internals)
36 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 36 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2 ");
37 37
38 shouldBe("getComputedStyle(norwegian).backgroundColor", "green"); 38 shouldBe("getComputedStyle(norwegian).backgroundColor", "green");
39 shouldBe("getComputedStyle(nospan).backgroundColor", "green"); 39 shouldBe("getComputedStyle(nospan).backgroundColor", "green");
40 40
41 document.documentElement.offsetTop; // Force recalc. 41 document.documentElement.offsetTop; // Force recalc.
42 english.setAttributeNS("http://www.w3.org/XML/1998/namespace", "lang", "en"); 42 english.setAttributeNS("http://www.w3.org/XML/1998/namespace", "lang", "en");
43 43
44 if (window.internals) 44 if (window.internals)
45 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); 45 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2 ");
46 46
47 shouldBe("getComputedStyle(english).backgroundColor", "green"); 47 shouldBe("getComputedStyle(english).backgroundColor", "green");
48 shouldBe("getComputedStyle(enspan).backgroundColor", "green"); 48 shouldBe("getComputedStyle(enspan).backgroundColor", "green");
49 </script> 49 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698