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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/animation/animation-empty-web-animations.html

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 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);
19 WebInspector.viewManager.showView("animations"); 18 WebInspector.viewManager.showView("animations");
20 var timeline; 19 var timeline = self.runtime.sharedInstance(WebInspector.AnimationTimeline);
21 20 InspectorTest.evaluateInPage("startAnimation()");
22 function onChangeTabView(id, view) 21 InspectorTest.addSniffer(WebInspector.AnimationModel.prototype, "animationSt arted", animationStarted);
23 {
24 if (!timeline && id === "animations") {
25 timeline = view;
26 InspectorTest.assertTrue(timeline instanceof WebInspector.AnimationT imeline);
27 InspectorTest.evaluateInPage("startAnimation()");
28 InspectorTest.addSniffer(WebInspector.AnimationModel.prototype, "ani mationStarted", animationStarted);
29 }
30 }
31 22
32 function animationStarted() 23 function animationStarted()
33 { 24 {
34 InspectorTest.addResult(timeline._previewMap.size); 25 InspectorTest.addResult(timeline._previewMap.size);
35 InspectorTest.completeTest(); 26 InspectorTest.completeTest();
36 } 27 }
37 } 28 }
38 29
39 </script> 30 </script>
40 </head> 31 </head>
41 32
42 <body onload="runTest()"> 33 <body onload="runTest()">
43 <p> 34 <p>
44 Tests the empty web animations do not show up in animation timeline. 35 Tests the empty web animations do not show up in animation timeline.
45 </p> 36 </p>
46 37
47 <div id="node" style="background-color: red; height: 100px"></div> 38 <div id="node" style="background-color: red; height: 100px"></div>
48 39
49 </body> 40 </body>
50 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698