OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <style> | |
4 #node { | |
5 transition: left 100s; | |
6 left: 0px; | |
7 } | |
8 </style> | |
9 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
10 <script src="../../http/tests/inspector/elements-test.js"></script> | |
11 <script> | |
12 function startCSSTransition() { | |
13 node.style.left = '100px'; | |
samli
2017/03/07 17:54:25
Nit: double quotes "100px"
| |
14 } | |
15 | |
16 var initialize_Animations = function() { | |
17 InspectorTest.preloadModule("animation"); | |
18 } | |
19 | |
20 function test() { | |
21 UI.viewManager.showView("animations"); | |
22 var timeline = self.runtime.sharedInstance(Animation.AnimationTimeline); | |
23 InspectorTest.evaluateInPage("startCSSTransition()"); | |
24 InspectorTest.waitForAnimationAdded(animationAdded); | |
25 function animationAdded(group) { | |
26 group.animations()[0].setTiming(1, 0); | |
27 InspectorTest.completeTest(); | |
28 } | |
29 } | |
30 | |
31 </script> | |
32 </head> | |
33 | |
34 <body onload="runTest()"> | |
35 <p> | |
36 This test passes if it does not crash. | |
37 </p> | |
38 | |
39 <div id="node"></div> | |
40 | |
41 </body> | |
42 </html> | |
OLD | NEW |