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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/element-animate-no-style-recalc.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 <div id="container"> 4 <div id="container">
5 <div id="target"></div> 5 <div id="target"></div>
6 </div> 6 </div>
7 <script> 7 <script>
8 test(() => { 8 test(() => {
9 internals.updateStyleAndReturnAffectedElementCount(); 9 internals.updateStyleAndLayoutAndReturnAffectedElementCount();
10 container.style.color = 'blue'; 10 container.style.color = 'blue';
11 target.animate({color: 'blue'}, {fill: 'forwards'}); 11 target.animate({color: 'blue'}, {fill: 'forwards'});
12 assert_greater_than(internals.updateStyleAndReturnAffectedElementCount(), 1); 12 assert_greater_than(internals.updateStyleAndLayoutAndReturnAffectedElementCoun t(), 1);
13 }, 'Calling element.animate() should not force a style recalc.'); 13 }, 'Calling element.animate() should not force a style recalc.');
14 </script> 14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698