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

Side by Side Diff: LayoutTests/inspector-protocol/animation/animation-multiple-frames.html

Issue 1042143005: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Naming changes Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
5 <script>
6 function appendIframe()
7 {
8 var frame = document.createElement("iframe");
9 frame.src = "../resources/test-page-trigger-animation.html";
10 document.body.appendChild(frame);
11 }
12
13 function test()
14 {
15 InspectorTest.eventHandler["Animation.animationPlayerCreated"] = onCreated;
16 InspectorTest.sendCommand("Animation.enable", {});
17 InspectorTest.evaluateInPage("appendIframe()", frameAttached);
18 var numberAnimationsCaptured = 0;
19 var lastStartTime = undefined;
20
21 function frameAttached()
22 {
23 InspectorTest.log("Frame appended");
24 }
25
26 function onCreated(data)
27 {
28 var player = data.params.player;
29
30 if (!lastStartTime || player.startTime > lastStartTime)
31 InspectorTest.log("Animation created: start time is valid");
32 lastStartTime = player.startTime;
33 numberAnimationsCaptured++;
34
35 if (numberAnimationsCaptured < 10)
36 InspectorTest.evaluateInPage("appendIframe()", frameAttached);
37 else
38 InspectorTest.completeTest();
39 }
40 }
41 </script>
42 </head>
43 <body onload="runTest()">
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698