Skip to content
Permalink
Browse files

Update web-platform-tests to revision e2eb25aaa6dd3c512b172588f3400f9…

…c25a410c3
  • Loading branch information...
servo-wpt-sync committed Feb 12, 2019
1 parent 3d4a416 commit 8b66216ed2558a2f9c5bca0e2045af201d00f8d3
Showing 484 changed files with 1,943 additions and 1,087 deletions.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -290,9 +290,6 @@
[Matching font-style: 'oblique 20deg' should prefer 'oblique 20deg' over 'oblique 30deg 60deg']
expected: FAIL

[Matching font-weight: '399' should prefer '500 501' over '502 510']
expected: FAIL

[Matching font-style: 'oblique -21deg' should prefer 'oblique 0deg' over 'oblique 30deg 60deg']
expected: FAIL

@@ -74,9 +74,3 @@
[opacity end]
expected: FAIL

[border-top-width end]
expected: FAIL

[border-right-width end]
expected: FAIL

@@ -6,3 +6,6 @@
[Instant scrolling while doing history navigation.]
expected: FAIL

[Smooth scrolling while doing history navigation.]
expected: FAIL

@@ -0,0 +1,5 @@
[javascript-url-abort-return-value-undefined.tentative.html]
expected: TIMEOUT
[Not aborting fetch for javascript:undefined navigation]
expected: TIMEOUT

@@ -58,6 +58,12 @@
[Interior noopener should work]
expected: NOTRUN

[noopener=1 means the same as noopener]
expected: NOTRUN

[noopener=0 means lack of noopener]
expected: NOTRUN


[window-open-noopener.html?_self]
[noopener window.open targeting _self]
@@ -0,0 +1,40 @@
[target_blank_implicit_noopener.html]
[Anchor element with target=_blank with rel=opener+noopener]
expected: FAIL

[Area element with target=_blank with rel=opener+noopener]
expected: FAIL

[Anchor element with target=_blank with rel=noopener+opener+noreferrer]
expected: FAIL

[Anchor element with target=_blank with rel=opener]
expected: FAIL

[Anchor element with target=_blank with rel=noopener+opener]
expected: FAIL

[Area element with target=_blank with rel=noopener]
expected: FAIL

[Area element with target=_blank with rel=opener]
expected: FAIL

[Anchor element with target=_blank with implicit rel=noopener]
expected: FAIL

[Anchor element with target=_blank with rel=opener+noreferrer]
expected: FAIL

[Area element with target=_blank with implicit rel=noopener]
expected: FAIL

[Anchor element with target=_blank with rel=noreferrer]
expected: FAIL

[Area element with target=_blank with rel=noopener+opener]
expected: FAIL

[Anchor element with target=_blank with rel=noopener]
expected: FAIL

@@ -0,0 +1,40 @@
[target_blank_implicit_noopener_base.html]
[Anchor element with base target=_blank with implicit rel=noopener]
expected: FAIL

[Anchor element with base target=_blank with rel=noopener+opener]
expected: FAIL

[Area element with base target=_blank with rel=noopener]
expected: FAIL

[Anchor element with base target=_blank with rel=noopener]
expected: FAIL

[Area element with base target=_blank with rel=opener]
expected: FAIL

[Anchor element with base target=_blank with rel=opener]
expected: FAIL

[Area element with base target=_blank with implicit rel=noopener]
expected: FAIL

[Anchor element with base target=_blank with rel=noopener+opener+noreferrer]
expected: FAIL

[Anchor element with base target=_blank with rel=opener+noopener]
expected: FAIL

[Anchor element with base target=_blank with rel=opener+noreferrer]
expected: FAIL

[Anchor element with base target=_blank with rel=noreferrer]
expected: FAIL

[Area element with base target=_blank with rel=noopener+opener]
expected: FAIL

[Area element with base target=_blank with rel=opener+noopener]
expected: FAIL

@@ -0,0 +1,140 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>The playback rate of a worklet animation</title>
<link rel="help" href="https://drafts.css-houdini.org/css-animationworklet/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';
// Presence of playback rate adds FP operations to calculating start_time
// and current_time of animations. That's why it's needed to increase FP error
// for comparing times in these tests.
window.assert_times_equal = (actual, expected, description) => {
assert_approx_equals(actual, expected, 0.002, description);
};
</script>
<script src="/web-animations/testcommon.js"></script>
<script src="common.js"></script>
<body>
<div id="log"></div>
<script>
'use strict';
function InstantiateWorkletAnimation(test) {
const DURATION = 10000; // ms
const KEYFRAMES = { height : ['100px', '50px'] };
return new WorkletAnimation('passthrough', new KeyframeEffect(createDiv(test),
KEYFRAMES, DURATION), document.timeline);
}
promise_test(async t => {
await registerPassthroughAnimator();
const animation = InstantiateWorkletAnimation(t);
animation.playbackRate = 0.5;
animation.play();
assert_equals(animation.currentTime, 0,
'Zero current time is not affected by playbackRate.');
}, 'Zero current time is not affected by playbackRate set while the animation is in idle state.');
promise_test(async t => {
await registerPassthroughAnimator();
const animation = InstantiateWorkletAnimation(t);
animation.play();
animation.playbackRate = 0.5;
assert_equals(animation.currentTime, 0,
'Zero current time is not affected by playbackRate.');
}, 'Zero current time is not affected by playbackRate set while the animation is in play-pending state.');
promise_test(async t => {
await registerPassthroughAnimator();
const animation = InstantiateWorkletAnimation(t);
const playbackRate = 2;
animation.play();
await waitForNextFrame();
// Set playback rate while the animation is playing.
const prevCurrentTime = animation.currentTime;
animation.playbackRate = playbackRate;
assert_times_equal(animation.currentTime, prevCurrentTime,
'The current time should stay unaffected by setting playback rate.');
}, 'Non zero current time is not affected by playbackRate set while the animation is in play state.');
promise_test(async t => {
await registerPassthroughAnimator();
const animation = InstantiateWorkletAnimation(t);
const playbackRate = 2;
animation.play();
await waitForNextFrame();
// Set playback rate while the animation is playing
const prevCurrentTime = animation.currentTime;
const prevTimelineTime = document.timeline.currentTime;
animation.playbackRate = playbackRate;
// Play the animation some more.
await waitForNextFrame();
const currentTime = animation.currentTime;
const currentTimelineTime = document.timeline.currentTime;
assert_times_equal(currentTime - prevCurrentTime, (currentTimelineTime - prevTimelineTime) * playbackRate,
'The current time should increase two times faster than timeline.');
}, 'The playback rate affects the rate of progress of the current time.');
promise_test(async t => {
await registerPassthroughAnimator();
const animation = InstantiateWorkletAnimation(t);;
const playbackRate = 2;
// Set playback rate while the animation is in 'idle' state.
animation.playbackRate = playbackRate;
animation.play();
const prevTimelineTime = document.timeline.currentTime;
await waitForNextFrame();
const currentTime = animation.currentTime;
const timelineTime = document.timeline.currentTime;
assert_times_equal(currentTime, (timelineTime - prevTimelineTime) * playbackRate,
'The current time should increase two times faster than timeline.');
}, 'The playback rate set before the animation started playing affects the ' +
'rate of progress of the current time');
promise_test(async t => {
await registerPassthroughAnimator();
const timing = { duration: 100,
easing: 'linear',
fill: 'none',
iterations: 1
};
const target = createDiv(t);
const keyframeEffect = new KeyframeEffect(target, { opacity: [0, 1] }, timing);
const animation = new WorkletAnimation('passthrough', keyframeEffect, document.timeline);
const playbackRate = 2;
animation.play();
animation.playbackRate = playbackRate;
await waitForNextFrame();
assert_times_equal(keyframeEffect.getComputedTiming().localTime, animation.currentTime,
'When playback rate is set on WorkletAnimation, the underlying effect\'s timing should be properly updated.');
assert_approx_equals(Number(getComputedStyle(target).opacity),
animation.currentTime / 100, 0.001,
'When playback rate is set on WorkletAnimation, the underlying effect should produce correct visual result.');
}, 'When playback rate is updated, the underlying effect is properly updated ' +
'with the current time of its WorkletAnimation and produces correct ' +
'visual result.');
</script>
</body>
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>Reference for Worklet Animation sets keyframes</title>
<style>
#box {
width: 100px;
height: 100px;
transform: translateX(100px);
background-color: green;
}
</style>

<div id="box"></div>
@@ -0,0 +1,44 @@
<html class="reftest-wait">
<title>Worklet Animation sets keyframes</title>
<link rel="help" href="https://drafts.css-houdini.org/css-animationworklet/">
<meta name="assert" content="Can update the keyframes for an effect while the animation is running">
<link rel="match" href="worklet-animation-set-keyframes-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 keyframes_before = [
{ transform: 'translateY(0)' },
{ transform: 'translateY(200px)' }
];
const keyframes_after = [
{ transform: 'translateX(0)' },
{ transform: 'translateX(200px)' }
];
const box = document.getElementById('box');
const effect = new KeyframeEffect(box, keyframes_before, {duration: 1000});
const animation = new WorkletAnimation('constant_time', effect);
animation.play();
waitForAsyncAnimationFrames(1).then(_ => {
effect.setKeyframes(keyframes_after);
waitForAsyncAnimationFrames(1).then(_ => {
takeScreenshot();
});
});
});
</script>
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>Reference for Worklet Animation sets timing</title>
<style>
#box {
width: 100px;
height: 100px;
transform: translateX(50px);
background-color: green;
}
</style>

<div id="box"></div>
@@ -0,0 +1,46 @@
<html class="reftest-wait">
<title>Worklet Animation sets timing</title>
<link rel="help" href="https://drafts.css-houdini.org/css-animationworklet/">
<meta name="assert" content="Can update the timing for an effect while the animation is running">
<link rel="match" href="worklet-animation-set-timing-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 keyframes = [
{ transform: 'translateX(0)' },
{ transform: 'translateX(200px)' }
];
const options_before = {
duration: 1000
};
const options_after = {
duration: 2000
};
const box = document.getElementById('box');
const effect = new KeyframeEffect(box, keyframes, options_before);
const animation = new WorkletAnimation('constant_time', effect);
animation.play();
waitForAsyncAnimationFrames(1).then(_ => {
effect.updateTiming(options_after);
waitForAsyncAnimationFrames(1).then(_ => {
takeScreenshot();
});
});
});
</script>
@@ -2,7 +2,6 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Filler text below is green reference</title>
<link rel="author" title="Geoffrey Sneddon" href="mailto:me@gsnedders.com"/>
<style>
.green { color: green; }
</style>
Oops, something went wrong.

0 comments on commit 8b66216

Please sign in to comment.
You can’t perform that action at this time.