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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/responsive/responsive-neutral-keyframe.html

Issue 2973013002: Group all responsive animation tests together (Closed)
Patch Set: Rebase Created 3 years, 5 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 <div id="target">Test.</div> 2 <div id="target">Test.</div>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 6
7 function waitForCompositor() { 7 function waitForCompositor() {
8 return document.body.animate({opacity: [1, 1]}, 1).finished; 8 return document.body.animate({opacity: [1, 1]}, 1).finished;
9 } 9 }
10 10
11 target.animate({translate: '100px'}, 1e8); 11 target.animate({translate: '100px'}, 1e8);
12 12
13 requestAnimationFrame(() => { 13 requestAnimationFrame(() => {
14 requestAnimationFrame(() => { 14 requestAnimationFrame(() => {
15 target.style.translate = '100px'; 15 target.style.translate = '100px';
16 requestAnimationFrame(() => { 16 requestAnimationFrame(() => {
17 waitForCompositor().then(() => { 17 waitForCompositor().then(() => {
18 if (window.testRunner) 18 if (window.testRunner)
19 testRunner.notifyDone(); 19 testRunner.notifyDone();
20 }); 20 });
21 }); 21 });
22 }); 22 });
23 }); 23 });
24 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698