mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision fe78f2a1ad48c1e0132634e957369d8d674e4258
This commit is contained in:
parent
871fe9306f
commit
f9b7afc45e
59 changed files with 1352 additions and 82 deletions
|
@ -9,12 +9,20 @@
|
|||
<script>
|
||||
'use strict';
|
||||
|
||||
// All transition events should be received on the next animation frame. If
|
||||
// two animation frames pass before receiving the expected events then we
|
||||
// can immediately fail the current test.
|
||||
const transitionEventsTimeout = () => {
|
||||
return waitForAnimationFrames(2);
|
||||
};
|
||||
|
||||
const setupTransition = (t, transitionStyle) => {
|
||||
const div = addDiv(t, { style: 'transition: ' + transitionStyle });
|
||||
const watcher = new EventWatcher(t, div, [ 'transitionrun',
|
||||
'transitionstart',
|
||||
'transitionend',
|
||||
'transitioncancel' ]);
|
||||
'transitioncancel' ],
|
||||
transitionEventsTimeout);
|
||||
getComputedStyle(div).marginLeft;
|
||||
|
||||
div.style.marginLeft = '100px';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue