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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.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 <style type="text/css">
5 #node.anim {
6 animation: anim 0 ease-in-out;
7 }
8
9 @keyframes anim {
10 from {
11 width: 100px;
12 }
13 to {
14 width: 200px;
15 }
16 }
17 </style>
18 <script>
19
20 function startAnimation()
21 {
22 node.classList.add("anim");
23 }
24
25 function test()
26 {
27 InspectorTest.eventHandler["Animation.animationCreated"] = onCreated;
28 InspectorTest.eventHandler["Animation.animationStarted"] = onStarted;
29 InspectorTest.sendCommand("Animation.enable", {});
30 InspectorTest.evaluateInPage("startAnimation()", function() {});
31
32 function onCreated()
33 {
34 InspectorTest.log("Animation created");
35 }
36
37 function onStarted()
38 {
39 InspectorTest.log("Animation started");
40 InspectorTest.completeTest();
41 }
42 }
43
44 </script>
45 </head>
46 <body onload="runTest()">
47 <div id="node" style="background-color: red; width: 100px"></div>
48 </body>
49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698