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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-empty-transition-cancel.html

Issue 1433623002: Devtools Animations: Don't wait for empty transitions to start (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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 triggerEmptyTransition()
7 {
8 node.offsetTop;
9 node.style.transition = "1s";
10 node.offsetTop;
11 node.style.width = "200px";
12 node.offsetTop;
13 node.style.transition = "";
14 node.offsetTop;
15 }
16
17 function test()
18 {
19 InspectorTest.eventHandler["Animation.animationCreated"] = onCreated;
20 InspectorTest.eventHandler["Animation.animationCanceled"] = onCanceled;
21 InspectorTest.sendCommand("Animation.enable", {});
22 InspectorTest.evaluateInPage("triggerEmptyTransition()", function() {});
23
24 function onCreated()
25 {
26 InspectorTest.log("Animation created");
27 }
28
29 function onCanceled()
30 {
31 InspectorTest.log("Animation canceled");
32 InspectorTest.completeTest();
33 }
34 }
35
36 </script>
37 </head>
38 <body onload="runTest()">
39 <div id="node" style="background-color: red; width: 100px"></div>
40 </body>
41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698