OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
4 <script src="../../http/tests/inspector/elements-test.js"></script> | |
5 <script> | |
6 function startAnimationWithKeyframeEffect() | |
7 { | |
8 var effect = new KeyframeEffect(node, { opacity : [ 0, 0.9 ] }, 1000); | |
9 var anim = node.animate(null); | |
10 anim.effect = effect; | |
11 } | |
12 | |
13 function startAnimationWithKeyframeEffectReadOnly() | |
14 { | |
15 var effect = new KeyframeEffectReadOnly(nodeRO, { opacity : [ 0, 0.9 ] }, 10 00); | |
16 var anim = nodeRO.animate(null); | |
17 anim.effect = effect; | |
18 } | |
19 | |
20 var initialize_Animations = function() { | |
21 | |
22 InspectorTest.preloadModule("animation"); | |
23 } | |
24 | |
25 function test() | |
26 { | |
27 WebInspector.viewManager.showView("animations"); | |
28 var timeline = self.runtime.sharedInstance(WebInspector.AnimationTimeline); | |
29 InspectorTest.evaluateInPage("startAnimationWithKeyframeEffect()"); | |
30 InspectorTest.waitForAnimationAdded(step2); | |
31 | |
32 function step2(group) | |
33 { | |
34 InspectorTest.waitForAnimationAdded(step3); | |
35 InspectorTest.evaluateInPage("startAnimationWithKeyframeEffectReadOnly() "); | |
36 } | |
37 | |
38 function step3(group) | |
39 { | |
40 InspectorTest.completeTest(); | |
41 } | |
42 } | |
43 | |
44 </script> | |
45 </head> | |
46 | |
47 <body onload="runTest()"> | |
48 <p> | |
49 Tests that animations can be created with KeyframeEffect and | |
50 KeyframeEffectReadOnly. | |
alancutter (OOO until 2018)
2016/10/28 03:38:32
This description should be more clear that we're o
| |
51 </p> | |
52 | |
53 <div id="node" style="background-color: red; height: 100px"></div> | |
54 <div id="nodeRO" style="background-color: red; height: 100px"></div> | |
55 | |
56 </body> | |
57 </html> | |
OLD | NEW |