Update web-platform-tests to revision fe78f2a1ad48c1e0132634e957369d8d674e4258

This commit is contained in:
WPT Sync Bot 2019-02-04 21:07:46 -05:00
parent 871fe9306f
commit f9b7afc45e
59 changed files with 1352 additions and 82 deletions

View file

@ -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';