| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../http/tests/inspector/elements-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function startAnimation() | 6 function startAnimation() |
| 7 { | 7 { |
| 8 player = node.animate([], { duration: 200, delay: 100 }); | 8 player = node.animate([], { duration: 200, delay: 100 }); |
| 9 } | 9 } |
| 10 | 10 |
| 11 var initialize_Animations = function() { | 11 var initialize_Animations = function() { |
| 12 | 12 |
| 13 InspectorTest.preloadModule("animation"); | 13 InspectorTest.preloadModule("animation"); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function test() | 16 function test() |
| 17 { | 17 { |
| 18 InspectorTest.addSniffer(WebInspector.TabbedPane.prototype, "changeTabView",
onChangeTabView, true); | 18 InspectorTest.addSniffer(WebInspector.TabbedPane.prototype, "changeTabView",
onChangeTabView, true); |
| 19 WebInspector.inspectorView.showViewInDrawer("animations", true); | 19 WebInspector.viewManager.showView("animations"); |
| 20 var timeline; | 20 var timeline; |
| 21 | 21 |
| 22 function onChangeTabView(id, view) | 22 function onChangeTabView(id, view) |
| 23 { | 23 { |
| 24 if (!timeline && id === "animations") { | 24 if (!timeline && id === "animations") { |
| 25 timeline = view; | 25 timeline = view; |
| 26 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT
imeline); | 26 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT
imeline); |
| 27 InspectorTest.evaluateInPage("startAnimation()"); | 27 InspectorTest.evaluateInPage("startAnimation()"); |
| 28 InspectorTest.addSniffer(WebInspector.AnimationModel.prototype, "ani
mationStarted", animationStarted); | 28 InspectorTest.addSniffer(WebInspector.AnimationModel.prototype, "ani
mationStarted", animationStarted); |
| 29 } | 29 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 <body onload="runTest()"> | 42 <body onload="runTest()"> |
| 43 <p> | 43 <p> |
| 44 Tests the empty web animations do not show up in animation timeline. | 44 Tests the empty web animations do not show up in animation timeline. |
| 45 </p> | 45 </p> |
| 46 | 46 |
| 47 <div id="node" style="background-color: red; height: 100px"></div> | 47 <div id="node" style="background-color: red; height: 100px"></div> |
| 48 | 48 |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |