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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-start.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script>
5
6 function startAnimation()
7 {
8 node.animate([{ width: "100px" }, { width: "200px" }], 2000);
9 }
10
11 function test()
12 {
13 InspectorTest.eventHandler["Animation.animationCreated"] = onCreated;
14 InspectorTest.eventHandler["Animation.animationStarted"] = onStarted;
15 InspectorTest.sendCommand("Animation.enable", {});
16 InspectorTest.evaluateInPage("startAnimation()", function() {});
17
18 function onCreated()
19 {
20 InspectorTest.log("Animation created");
21 }
22
23 function onStarted()
24 {
25 InspectorTest.log("Animation started");
26 InspectorTest.completeTest();
27 }
28 }
29
30 </script>
31 </head>
32 <body onload="runTest()">
33 <div id="node" style="background-color: red; height: 100px"></div>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698