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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/attribute-change-affect-siblings.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/testharness.js"></script> 2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 [style] + span { color: green; } 5 [style] + span { color: green; }
6 </style> 6 </style>
7 <div id="styledDiv"></div> 7 <div id="styledDiv"></div>
8 <span id="target"></span> 8 <span id="target"></span>
9 <script> 9 <script>
10 test(function() { 10 test(function() {
11 document.body.offsetTop; 11 document.body.offsetTop;
12 styledDiv.style.color = "red"; 12 styledDiv.style.color = "red";
13 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2); 13 assert_equals(internals.updateStyleAndLayoutAndReturnAffectedElementCount(), 2);
14 assert_equals(getComputedStyle(target).color, "rgb(0, 128, 0)"); 14 assert_equals(getComputedStyle(target).color, "rgb(0, 128, 0)");
15 }, "Test that we schedule invalidation sets for changes made to style attribut es."); 15 }, "Test that we schedule invalidation sets for changes made to style attribut es.");
16 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698