| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style type="text/css"> | 3 <style type="text/css"> |
| 4 #node { | 4 #node { |
| 5 transition: background-color 150ms cubic-bezier(0, 0.5, 0.5, 1); | 5 transition: background-color 150ms cubic-bezier(0, 0.5, 0.5, 1); |
| 6 } | 6 } |
| 7 | 7 |
| 8 #node.css-anim { | 8 #node.css-anim { |
| 9 animation: anim 300ms ease-in-out; | 9 animation: anim 300ms ease-in-out; |
| 10 } | 10 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 InspectorTest.preloadModule("animation"); | 53 InspectorTest.preloadModule("animation"); |
| 54 } | 54 } |
| 55 | 55 |
| 56 function test() | 56 function test() |
| 57 { | 57 { |
| 58 // Override timeline width for testing | 58 // Override timeline width for testing |
| 59 WebInspector.AnimationTimeline.prototype.width = function() { return 1000; } | 59 WebInspector.AnimationTimeline.prototype.width = function() { return 1000; } |
| 60 // Override animation color for testing | 60 // Override animation color for testing |
| 61 // FIXME: Set animation name of Web Animation instead; not supported yet | 61 // FIXME: Set animation name of Web Animation instead; not supported yet |
| 62 WebInspector.AnimationUI.Color = function() { return "black"; } | 62 WebInspector.AnimationUI.Color = function() { return "black"; } |
| 63 var timeline; | 63 |
| 64 InspectorTest.addSniffer(WebInspector.TabbedPane.prototype, "changeTabView",
onChangeTabView, true); | |
| 65 WebInspector.viewManager.showView("animations"); | 64 WebInspector.viewManager.showView("animations"); |
| 66 | 65 var timeline = self.runtime.sharedInstance(WebInspector.AnimationTimeline); |
| 67 function onChangeTabView(id, view) | 66 InspectorTest.evaluateInPage("startAnimationWithDelay()"); |
| 68 { | 67 InspectorTest.waitForAnimationAdded(step2); |
| 69 if (!timeline && id === "animations") { | |
| 70 timeline = view; | |
| 71 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT
imeline); | |
| 72 InspectorTest.waitForAnimationAdded(step2); | |
| 73 InspectorTest.evaluateInPage("startAnimationWithDelay()"); | |
| 74 } | |
| 75 } | |
| 76 | 68 |
| 77 function step2(group) | 69 function step2(group) |
| 78 { | 70 { |
| 79 timeline._selectAnimationGroup(group); | 71 timeline._selectAnimationGroup(group); |
| 80 timeline._render(); | 72 timeline._render(); |
| 81 InspectorTest.addResult(">>>> Animation with start delay only"); | 73 InspectorTest.addResult(">>>> Animation with start delay only"); |
| 82 InspectorTest.dumpAnimationTimeline(timeline); | 74 InspectorTest.dumpAnimationTimeline(timeline); |
| 83 timeline._reset(); | 75 timeline._reset(); |
| 84 InspectorTest.waitForAnimationAdded(step3); | 76 InspectorTest.waitForAnimationAdded(step3); |
| 85 InspectorTest.evaluateInPage("startAnimationWithEndDelay()"); | 77 InspectorTest.evaluateInPage("startAnimationWithEndDelay()"); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 124 |
| 133 <body onload="runTest()"> | 125 <body onload="runTest()"> |
| 134 <p> | 126 <p> |
| 135 Tests the display of animations on the animation timeline. | 127 Tests the display of animations on the animation timeline. |
| 136 </p> | 128 </p> |
| 137 | 129 |
| 138 <div id="node" style="background-color: red; height: 100px"></div> | 130 <div id="node" style="background-color: red; height: 100px"></div> |
| 139 | 131 |
| 140 </body> | 132 </body> |
| 141 </html> | 133 </html> |
| OLD | NEW |