Update web-platform-tests to revision ead8f8b00d0b68237109f3c93d0ccae076a34f98

This commit is contained in:
WPT Sync Bot 2019-02-07 20:33:07 -05:00
parent d029b1a0ff
commit 2178678b0f
75 changed files with 2476 additions and 391 deletions

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>Reference for Animation Worklet local time set after duration</title>
<style>
#box {
width: 100px;
height: 100px;
background-color: green;
will-change: transform;
}
</style>
<div id="box"></div>

View file

@ -0,0 +1,41 @@
<html class="reftest-wait">
<title>Animation Worklet local time set after duration</title>
<link rel="help" href="https://drafts.css-houdini.org/css-animationworklet/">
<meta name="assert" content="If an effect doesn't have fill-mode specified, setting its local time beyond its duration makes the animation inactive.">
<link rel="match" href="worklet-animation-local-time-after-duration-ref.html">
<script src="/web-animations/testcommon.js"></script>
<script src="/common/reftest-wait.js"></script>
<script src="common.js"></script>
<style>
#box {
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div id="box"></div>
<script>
registerConstantLocalTimeAnimator(2000).then(() => {
const box = document.getElementById('box');
const effect = new KeyframeEffect(box,
[
{ transform: 'translateY(100px)' },
{ transform: 'translateY(200px)' }
], {
duration: 1000,
delay: 1000
}
);
const animation = new WorkletAnimation('constant_time', effect);
animation.play();
waitForAsyncAnimationFrames(1).then(_ => {
takeScreenshot();
});
});
</script>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>Reference for Animation Worklet local time set before start</title>
<style>
#box {
width: 100px;
height: 100px;
background-color: green;
will-change: transform;
transform: translateY(200px);
}
</style>
<div id="box"></div>

View file

@ -0,0 +1,41 @@
<html class="reftest-wait">
<title>Animation Worklet local time set before start</title>
<link rel="help" href="https://drafts.css-houdini.org/css-animationworklet/">
<meta name="assert" content="The local time should be trimmed by the duration, e.g. this is equivalent to effect.localTime = 0">
<link rel="match" href="worklet-animation-local-time-before-start-ref.html">
<script src="/web-animations/testcommon.js"></script>
<script src="/common/reftest-wait.js"></script>
<script src="common.js"></script>
<style>
#box {
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div id="box"></div>
<script>
registerConstantLocalTimeAnimator(-500).then(() => {
const box = document.getElementById('box');
const effect = new KeyframeEffect(box,
[
{ transform: 'translateY(200px)' },
{ transform: 'translateY(0px)' }
], {
duration: 1000,
fill: 'backwards'
}
);
const animation = new WorkletAnimation('constant_time', effect);
animation.play();
waitForAsyncAnimationFrames(1).then(_ => {
takeScreenshot();
});
});
</script>