Index: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..32af3781bf9716744c2b297119c010a6710814c5 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js |
@@ -0,0 +1,27 @@ |
+(async function() { |
+ let {page, session, Protocol} = await InspectorTest.startHTML(` |
+ <style type='text/css'> |
+ #node.anim { |
+ animation: anim 0 ease-in-out; |
+ } |
+ |
+ @keyframes anim { |
+ from { |
+ width: 100px; |
+ } |
+ to { |
+ width: 200px; |
+ } |
+ } |
+ </style> |
+ <div id='node' style='background-color: red; width: 100px'></div> |
+ `, ''); |
+ |
+ Protocol.Animation.enable(); |
+ session.evaluate('node.classList.add("anim")'); |
+ await Protocol.Animation.onceAnimationCreated(); |
+ InspectorTest.log('Animation created'); |
+ await Protocol.Animation.onceAnimationStarted(); |
+ InspectorTest.log('Animation started'); |
+ InspectorTest.completeTest(); |
+})(); |