| 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 node.animate([{ width: "100px" }, { width: "200px" }], { duration: 200, dela
y: 100 }); | 8 node.animate([{ width: "100px" }, { width: "200px" }], { duration: 200, dela
y: 100 }); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 function test() | 22 function test() |
| 23 { | 23 { |
| 24 // Override timeline width for testing | 24 // Override timeline width for testing |
| 25 WebInspector.AnimationTimeline.prototype.width = function() { return 50; } | 25 WebInspector.AnimationTimeline.prototype.width = function() { return 50; } |
| 26 // Override animation color for testing | 26 // Override animation color for testing |
| 27 // FIXME: Set animation name of Web Animation instead; not supported yet | 27 // FIXME: Set animation name of Web Animation instead; not supported yet |
| 28 WebInspector.AnimationUI.Color = function() { return "black"; } | 28 WebInspector.AnimationUI.Color = function() { return "black"; } |
| 29 var timeline; | 29 var timeline; |
| 30 InspectorTest.addSniffer(WebInspector.TabbedPane.prototype, "changeTabView",
onChangeTabView, true); | 30 InspectorTest.addSniffer(WebInspector.TabbedPane.prototype, "changeTabView",
onChangeTabView, true); |
| 31 WebInspector.inspectorView.showViewInDrawer("animations", true); | 31 WebInspector.viewManager.showView("animations"); |
| 32 | 32 |
| 33 function onChangeTabView(id, view) | 33 function onChangeTabView(id, view) |
| 34 { | 34 { |
| 35 if (!timeline && id === "animations") { | 35 if (!timeline && id === "animations") { |
| 36 timeline = view; | 36 timeline = view; |
| 37 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT
imeline); | 37 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT
imeline); |
| 38 InspectorTest.waitForAnimationAdded(step2); | 38 InspectorTest.waitForAnimationAdded(step2); |
| 39 InspectorTest.evaluateInPage("startAnimation()"); | 39 InspectorTest.evaluateInPage("startAnimation()"); |
| 40 } | 40 } |
| 41 } | 41 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 59 | 59 |
| 60 <body onload="runTest()"> | 60 <body onload="runTest()"> |
| 61 <p> | 61 <p> |
| 62 Tests that animation with negative start delay gets added. | 62 Tests that animation with negative start delay gets added. |
| 63 </p> | 63 </p> |
| 64 | 64 |
| 65 <div id="node" style="background-color: red; height: 100px"></div> | 65 <div id="node" style="background-color: red; height: 100px"></div> |
| 66 | 66 |
| 67 </body> | 67 </body> |
| 68 </html> | 68 </html> |
| OLD | NEW |