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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/animation/animation-empty-web-animations.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 <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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698