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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-empty-transition-cancel.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 <div id='node' style='background-color: red; width: 100px'></div>
4 `, '');
5
6 dp.Animation.onAnimationCreated(() => testRunner.log('Animation created'));
7 dp.Animation.onAnimationCanceled(() => testRunner.log('Animation canceled'));
8 dp.Animation.enable();
9 await session.evaluate(`
10 node.offsetTop;
11 node.style.transition = "1s";
12 node.offsetTop;
13 node.style.width = "200px";
14 node.offsetTop;
15 node.style.transition = "";
16 node.offsetTop;
17 `);
18 testRunner.completeTest();
19 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698