Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2236)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/animation/animation-timeline.html

Issue 2205123003: DevTools: introduce view locations, allow opening views by id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 var timeline;
64 InspectorTest.addSniffer(WebInspector.TabbedPane.prototype, "changeTabView", onChangeTabView, true); 64 InspectorTest.addSniffer(WebInspector.TabbedPane.prototype, "changeTabView", onChangeTabView, true);
65 WebInspector.inspectorView.showViewInDrawer("animations", true); 65 WebInspector.viewManager.showView("animations");
66 66
67 function onChangeTabView(id, view) 67 function onChangeTabView(id, view)
68 { 68 {
69 if (!timeline && id === "animations") { 69 if (!timeline && id === "animations") {
70 timeline = view; 70 timeline = view;
71 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT imeline); 71 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT imeline);
72 InspectorTest.waitForAnimationAdded(step2); 72 InspectorTest.waitForAnimationAdded(step2);
73 InspectorTest.evaluateInPage("startAnimationWithDelay()"); 73 InspectorTest.evaluateInPage("startAnimationWithDelay()");
74 } 74 }
75 } 75 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 <body onload="runTest()"> 133 <body onload="runTest()">
134 <p> 134 <p>
135 Tests the display of animations on the animation timeline. 135 Tests the display of animations on the animation timeline.
136 </p> 136 </p>
137 137
138 <div id="node" style="background-color: red; height: 100px"></div> 138 <div id="node" style="background-color: red; height: 100px"></div>
139 139
140 </body> 140 </body>
141 </html> 141 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698