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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-paused-css-animation.js

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 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startHTML(`
3 <style type='text/css'>
4 #node.anim {
5 animation: anim 300ms ease-in-out paused;
6 }
7
8 @keyframes anim {
9 from {
10 width: 100px;
11 }
12 to {
13 width: 200px;
14 }
15 }
16 </style>
17 <div id='node' style='background-color: red; width: 100px'></div>
18 `, '');
19
20
21 dp.Animation.enable();
22 session.evaluate('node.classList.add("anim");');
23 await dp.Animation.onceAnimationCreated();
24 testRunner.log('Animation created');
25 await dp.Animation.onceAnimationCanceled();
26 testRunner.log('Animation canceled');
27 testRunner.completeTest();
28 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698