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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/read-only-write-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 input { background: transparent } 4 input { background: transparent }
5 input + div { color: pink } 5 input + div { color: pink }
6 #i1:read-only { background-color: green } 6 #i1:read-only { background-color: green }
7 #i2:read-write { background-color: green } 7 #i2:read-write { background-color: green }
8 </style> 8 </style>
9 <input id="i1" type="text"></input> 9 <input id="i1" type="text"></input>
10 <div> 10 <div>
(...skipping 15 matching lines...) Expand all
26 var transparent = "rgba(0, 0, 0, 0)"; 26 var transparent = "rgba(0, 0, 0, 0)";
27 var green = "rgb(0, 128, 0)"; 27 var green = "rgb(0, 128, 0)";
28 28
29 shouldBe("getComputedStyle(i1, '').backgroundColor", "transparent"); 29 shouldBe("getComputedStyle(i1, '').backgroundColor", "transparent");
30 shouldBe("getComputedStyle(i2, '').backgroundColor", "transparent"); 30 shouldBe("getComputedStyle(i2, '').backgroundColor", "transparent");
31 31
32 i1.offsetTop; // Force recalc. 32 i1.offsetTop; // Force recalc.
33 i1.setAttribute("readonly", ""); 33 i1.setAttribute("readonly", "");
34 34
35 if (window.internals) 35 if (window.internals)
36 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); 36 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1 ");
37 37
38 shouldBe("getComputedStyle(i1, '').backgroundColor", "green"); 38 shouldBe("getComputedStyle(i1, '').backgroundColor", "green");
39 39
40 i2.offsetTop; // Force recalc. 40 i2.offsetTop; // Force recalc.
41 i2.removeAttribute("readonly"); 41 i2.removeAttribute("readonly");
42 42
43 if (window.internals) 43 if (window.internals)
44 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); 44 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1 ");
45 45
46 shouldBe("getComputedStyle(i2, '').backgroundColor", "green"); 46 shouldBe("getComputedStyle(i2, '').backgroundColor", "green");
47 </script> 47 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698