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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/multicol/explicit-columns-auto.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 .explicitlyNoColumns { -webkit-columns:auto; } 4 .explicitlyNoColumns { -webkit-columns:auto; }
5 </style> 5 </style>
6 6
7 <div id="elm"></div> 7 <div id="elm"></div>
8 8
9 <script> 9 <script>
10 description("Test that setting columns to auto is the same as not setting it at all."); 10 description("Test that setting columns to auto is the same as not setting it at all.");
11 document.body.offsetTop; 11 document.body.offsetTop;
12 document.getElementById('elm').className = "explicitlyNoColumns"; 12 document.getElementById('elm').className = "explicitlyNoColumns";
13 if (window.internals) { 13 if (window.internals) {
14 // Need to call updateStyleAndReturnAffectedElementCount() first, to get style recalculated, 14 // Need to call updateStyleAndLayoutAndReturnAffectedElementCount() firs t, to get style recalculated,
15 // so that the necessary objects get marked for layout (which, if the te st passes, should be 0). 15 // so that the necessary objects get marked for layout (which, if the te st passes, should be 0).
16 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); 16 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()" , "1");
17 shouldBe("internals.needsLayoutCount()", "0"); 17 shouldBe("internals.needsLayoutCount()", "0");
18 } else { 18 } else {
19 testFailed("There's no web exposed API usable for this test. The bug doe sn't affect layout in a reliable way. Please rerun inside the layout test framew ork."); 19 testFailed("There's no web exposed API usable for this test. The bug doe sn't affect layout in a reliable way. Please rerun inside the layout test framew ork.");
20 } 20 }
21 </script> 21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698