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

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

Issue 14556022: Simplify animation testing API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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 | Annotate | Revision Log
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 return null; 45 return null;
46 } 46 }
47 47
48 function change() 48 function change()
49 { 49 {
50 // change keyframes name 50 // change keyframes name
51 var keyframes = findKeyframesRule("foo"); 51 var keyframes = findKeyframesRule("foo");
52 keyframes.name = "anim"; 52 keyframes.name = "anim";
53 document.getElementById('box').style.webkitAnimationName = "anim"; 53 document.getElementById('box').style.webkitAnimationName = "anim";
54 54
55 runAnimationTest(expectedValues); 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 var box = document.getElementById('box');
64 if (internals.pauseAnimationAtTimeOnElement("bar", 0.5, box))
65 document.getElementById("pre-result").innerHTML = "FAIL: animation is running";
66 else
67 document.getElementById("pre-result").innerHTML = "PASS: animation is not running";
68 } 63 }
69
70 setTimeout(change, 200); 64 setTimeout(change, 200);
71 } 65 }
72 66
73 </script> 67 </script>
74 </head> 68 </head>
75 <body onload="setup()"> 69 <body onload="setup()">
76 This test starts by making sure the animation is not running, because the animat ion-name and the 70 This test changes the name of the @keyframes rule so that it matches
77 name of they @keyframes rule do not match. Then it changes the name of the @keyf rames rule so they 71 and makes sure the animation starts running.
78 match and makes sure the animation is now running.
79 <div id="box"> 72 <div id="box">
80 </div> 73 </div>
81 <div id="pre-result"> 74 <div id="pre-result">
82 </div> 75 </div>
83 <div id="result"> 76 <div id="result">
84 </div> 77 </div>
85 </body> 78 </body>
86 </html> 79 </html>
OLDNEW
« no previous file with comments | « LayoutTests/animations/change-keyframes.html ('k') | LayoutTests/animations/change-keyframes-name-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698