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

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: unified 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() {
2 let {page, session, Protocol} = await InspectorTest.startHTML(`
3 <div id='node' style='background-color: red; width: 100px'></div>
4 `, '');
5
6 Protocol.Animation.onAnimationCreated(() => InspectorTest.log('Animation creat ed'));
7 Protocol.Animation.onAnimationCanceled(() => InspectorTest.log('Animation canc eled'));
8 Protocol.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 InspectorTest.completeTest();
19 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698