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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/change-keyframes-name.html

Issue 2411163003: CSS Animations: Reduce usage of setTimeout in Layout tests (Closed)
Patch Set: extra tests Created 4 years, 2 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd"> 2 "http://www.w3.org/TR/html4/loose.dtd">
3 3
4 <html lang="en"> 4 <html lang="en">
5 <head> 5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Test Changing Name of A Keyframes Rule Using CSSOM</title> 7 <title>Test Changing Name of A Keyframes Rule Using CSSOM</title>
8 <style type="text/css" media="screen"> 8 <style type="text/css" media="screen">
9 #box { 9 #box {
10 position: relative; 10 position: relative;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 runAnimationTest(expectedValues, null, null, 'do-not-use-pause-api'); 55 runAnimationTest(expectedValues, null, null, 'do-not-use-pause-api');
56 } 56 }
57 57
58 function setup() 58 function setup()
59 { 59 {
60 if (window.testRunner) { 60 if (window.testRunner) {
61 testRunner.dumpAsText(); 61 testRunner.dumpAsText();
62 testRunner.waitUntilDone(); 62 testRunner.waitUntilDone();
63 } 63 }
64 setTimeout(change, 200); 64 requestAnimationFrame(() => {
65 requestAnimationFrame(change);
66 });
65 } 67 }
66 68
67 </script> 69 </script>
68 </head> 70 </head>
69 <body onload="setup()"> 71 <body onload="setup()">
70 This test changes the name of the @keyframes rule so that it matches 72 This test changes the name of the @keyframes rule so that it matches
71 and makes sure the animation starts running. 73 and makes sure the animation starts running.
72 <div id="box"> 74 <div id="box">
73 </div> 75 </div>
74 <div id="pre-result"> 76 <div id="pre-result">
75 </div> 77 </div>
76 <div id="result"> 78 <div id="result">
77 </div> 79 </div>
78 </body> 80 </body>
79 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698