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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/input-search-incremental.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 + div { color: pink } 4 input + div { color: pink }
5 </style> 5 </style>
6 <input id="searchInput" type="search"></input> 6 <input id="searchInput" type="search"></input>
7 <div> 7 <div>
8 <div></div> 8 <div></div>
9 <div></div> 9 <div></div>
10 <div></div> 10 <div></div>
11 <div></div> 11 <div></div>
12 </div> 12 </div>
13 <script> 13 <script>
14 description("Setting the incremental attribute on an input type=search") 14 description("Setting the incremental attribute on an input type=search")
15 15
16 shouldBeDefined(window.internals); 16 shouldBeDefined(window.internals);
17 17
18 searchInput.offsetTop; 18 searchInput.offsetTop;
19 getComputedStyle(searchInput); // Force recalc. 19 getComputedStyle(searchInput); // Force recalc.
20 searchInput.setAttribute("incremental", ""); 20 searchInput.setAttribute("incremental", "");
21 21
22 // Ideally, the expected value below should be "0", but the search control 22 // Ideally, the expected value below should be "0", but the search control
23 // button has its opacity changed unconditionally through inline style on 23 // button has its opacity changed unconditionally through inline style on
24 // every attribute change on the input element. 24 // every attribute change on the input element.
25 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); 25 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1");
26 26
27 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698