Skip to content
Permalink
Browse files

Update web-platform-tests to revision 5852f617c1ad109939bdb6b70f362dc…

…d84a5cb73
  • Loading branch information...
servo-wpt-sync committed Feb 13, 2019
1 parent c80c3f3 commit 4375e3f248b2bfea964284119acd19b733c2ea43
Showing with 1,104 additions and 115 deletions.
  1. +185 −18 tests/wpt/metadata/MANIFEST.json
  2. +3 −0 tests/wpt/metadata/css/css-fonts/variations/at-font-face-font-matching.html.ini
  3. +82 −0 tests/wpt/metadata/css/css-values/calc-angle-values.html.ini
  4. +0 −6 tests/wpt/metadata/css/cssom-view/scroll-behavior-smooth.html.ini
  5. +6 −0 tests/wpt/metadata/domparsing/XMLSerializer-serializeToString.html.ini
  6. +4 −0 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini
  7. +4 −0 tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/document-write/iframe_005.html.ini
  8. +0 −1 .../metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini
  9. +9 −0 tests/wpt/web-platform-tests/.mailmap
  10. +65 −0 ...-tests/animation-worklet/animate-multiple-effects-on-different-targets-via-main-thread.https.html
  11. +48 −32 tests/wpt/web-platform-tests/animation-worklet/current-time.https.html
  12. +65 −0 ...ests/animation-worklet/multiple-effects-on-same-target-driven-by-individual-local-time.https.html
  13. +12 −0 tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-001.html
  14. +14 −0 tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-002.html
  15. +17 −0 tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-003.html
  16. +17 −0 tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-004.html
  17. +15 −0 tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-005.html
  18. +17 −0 tests/wpt/web-platform-tests/css/css-sizing/intrinsic-percent-replaced-006.html
  19. +29 −0 tests/wpt/web-platform-tests/css/css-syntax/unclosed-url-at-eof.html
  20. +295 −0 tests/wpt/web-platform-tests/css/css-values/calc-angle-values.html
  21. +104 −0 tests/wpt/web-platform-tests/css/css-values/calc-time-values.html
  22. +16 −0 tests/wpt/web-platform-tests/domparsing/XMLSerializer-serializeToString.html
  23. +1 −1 tests/wpt/web-platform-tests/fetch/stale-while-revalidate/stale-css.tentative.html
  24. +1 −1 tests/wpt/web-platform-tests/fetch/stale-while-revalidate/stale-image.tentative.html
  25. +0 −3 tests/wpt/web-platform-tests/html/semantics/text-level-semantics/historical.html
  26. +1 −0 tests/wpt/web-platform-tests/interfaces/web-bluetooth.idl
  27. +4 −5 tests/wpt/web-platform-tests/interfaces/webxr.idl
  28. +23 −0 tests/wpt/web-platform-tests/screen-orientation/event-before-promise.html
  29. +6 −6 tests/wpt/web-platform-tests/svg/geometry/parsing/ry-invalid.svg
  30. +8 −8 tests/wpt/web-platform-tests/svg/geometry/parsing/ry-valid.svg
  31. 0 tests/wpt/web-platform-tests/tools/ci/before_install.sh
  32. +1 −0 tests/wpt/web-platform-tests/tools/ci/ci_built_diff.sh
  33. +1 −0 tests/wpt/web-platform-tests/tools/ci/ci_lint.sh
  34. +1 −0 tests/wpt/web-platform-tests/tools/ci/ci_manifest.sh
  35. +0 −2 tests/wpt/web-platform-tests/tools/ci/lib.sh
  36. +2 −1 tests/wpt/web-platform-tests/tools/docker/start.sh
  37. 0 tests/wpt/web-platform-tests/tools/manifest/update.py
  38. +0 −2 tests/wpt/web-platform-tests/tools/pywebsocket/mod_pywebsocket/memorizingfile.py
  39. +46 −27 tests/wpt/web-platform-tests/tools/wpt/browser.py
  40. +1 −1 tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt
  41. 0 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/browsers/sauce_setup/edge-prerun.bat
  42. 0 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/browsers/sauce_setup/safari-prerun.sh
  43. 0 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/formatters.py
  44. +1 −1 ...tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -332,3 +332,6 @@
[Matching font-style: 'oblique 0deg' should prefer 'oblique 5deg' over 'oblique 15deg 20deg']
expected: FAIL

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

@@ -0,0 +1,82 @@
[calc-angle-values.html]
[substraction of angle unit: grad minus grad]
expected: FAIL

[multiplication of angle unit: deg multiplied by int]
expected: FAIL

[addition of 2 angle units: deg plus deg]
expected: FAIL

[division of angle unit: turn divided by int]
expected: FAIL

[addition of 2 angle units: deg plus turn]
expected: FAIL

[multiplication of angle unit: int multiplied by turn]
expected: FAIL

[substraction of angle unit: deg minus deg]
expected: FAIL

[division of angle unit: rad divided by int]
expected: FAIL

[substraction of angle unit: rad minus grad]
expected: FAIL

[multiplication of angle unit: grad multiplied by int]
expected: FAIL

[substraction of angle unit: rad minus turn]
expected: FAIL

[substraction of angle unit: grad minus turn]
expected: FAIL

[conversion of angle unit: grad into deg]
expected: FAIL

[substraction of angle unit: deg minus rad]
expected: FAIL

[addition of 2 angle units: grad plus grad]
expected: FAIL

[division of angle unit: grad divided by int]
expected: FAIL

[addition of 2 angle units: grad plus turn]
expected: FAIL

[addition of 2 angle units: rad plus turn]
expected: FAIL

[addition of 2 angle units: deg plus rad]
expected: FAIL

[addition of 2 angle units: rad plus grad]
expected: FAIL

[addition of 2 angle units: deg plus grad]
expected: FAIL

[substraction of angle unit: deg minus turn]
expected: FAIL

[division of angle unit: deg divided by int]
expected: FAIL

[multiplication of angle unit: int multiplied by rad]
expected: FAIL

[addition of 2 angle units: rad plus rad]
expected: FAIL

[substraction of angle unit: rad minus rad]
expected: FAIL

[substraction of angle unit: deg minus grad]
expected: FAIL

@@ -3,9 +3,3 @@
[scroll-behavior: smooth on DIV element]
expected: FAIL

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

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

@@ -21,3 +21,9 @@
[Check if "ns1" is generated even if the element already has xmlns:ns1.]
expected: FAIL

[Check if attribute serialization takes into account of following xmlns:* attributes]
expected: FAIL

[Check if attribute serialization takes into account of the same prefix declared in an ancestor element]
expected: FAIL

@@ -0,0 +1,4 @@
[traverse_the_history_1.html]
[Multiple history traversals from the same task]
expected: FAIL

@@ -0,0 +1,4 @@
[iframe_005.html]
[document.write external script into iframe write back into parent]
expected: FAIL

@@ -1,5 +1,4 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

@@ -0,0 +1,9 @@
# People who've changed name:

# Sam Sneddon:
Sam Sneddon <me@gsnedders.com>
Sam Sneddon <me@gsnedders.com> <geoffers@gmail.com>

# Theresa O'Connor:
Theresa O'Connor <eoconnor@apple.com>
Theresa O'Connor <hober0@gmail.com>
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<title>Animate multiple effects on different targets via main thread</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 src="/web-animations/testcommon.js"></script>
<script src="common.js"></script>

<style>
#target {
width: 100px;
height: 100px;
background-color: green;
}
#target2 {
width: 100px;
height: 100px;
background-color: blue;
box-shadow: 4px 4px 25px blue;
}
</style>

<div id="target"></div>
<div id="target2"></div>

<script id="simple_animate" type="text/worklet">
registerAnimator("test_animator", class {
animate(currentTime, effect) {
let effects = effect.getChildren();
effects[0].localTime = 1000;
effects[1].localTime = 1000;
}
});
</script>

<script>
promise_test(async t => {
await runInAnimationWorklet(document.getElementById('simple_animate').textContent);
const effect = new KeyframeEffect(
document.getElementById("target"),
[
{ background: 'green' },
{ background: 'blue' },
],
{ duration: 2000 }
);
const effect2 = new KeyframeEffect(
document.getElementById("target2"),
[
{ boxShadow: '4px 4px 25px blue' },
{ boxShadow: '4px 4px 25px green' }
],
{ duration: 2000 }
);
const animation = new WorkletAnimation('test_animator', [effect, effect2]);
animation.play();
await waitForAsyncAnimationFrames(1);
assert_equals(getComputedStyle(document.getElementById('target')).backgroundColor, "rgb(0, 64, 128)");
assert_equals(getComputedStyle(document.getElementById('target2')).boxShadow, "rgb(0, 64, 128) 4px 4px 25px 0px");
}, 'Animating multiple effects on different targets via main thread should produce new output values accordingly');
</script>
@@ -2,47 +2,63 @@
<meta charset=utf-8>
<title>The current time 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 src="/web-animations/testcommon.js"></script>
<script src="common.js"></script>
<body>
<div id="log"></div>

<div id="box"></div>

<script>
'use strict';
const DURATION = 10000; // ms
const KEYFRAMES = { height : ['100px', '50px'] };
promise_test(async t => {
await registerPassthroughAnimator();
const animation =
new WorkletAnimation('passthrough', new KeyframeEffect(createDiv(t),
KEYFRAMES, DURATION), document.timeline);
animation.play();
assert_equals(animation.currentTime, 0,
'Current time returns the hold time set when entering the play-pending' +
'state');
}, 'The current time returns the hold time when set');
promise_test(async t => {
await registerPassthroughAnimator();
const animation =
new WorkletAnimation('passthrough', new KeyframeEffect(createDiv(t),
KEYFRAMES, DURATION), document.timeline);
// TODO(majidvp): We should use Animation.startTime here because the
// animation may not immediately start.
const startTime = document.timeline.currentTime;
animation.play();
await waitForNextFrame();
const timelineTime = document.timeline.currentTime;
assert_times_equal(animation.currentTime, (timelineTime - startTime));
}, 'The current time is calculated from the timeline time and start time');
function CreateAnimation() {
const box = document.getElementById('box');
const effect = new KeyframeEffect(
box,
{ height: ['100px', '50px'] },
10000);
return new WorkletAnimation('passthrough', effect);
}
setup(setupAndRegisterTests, {explicit_done: true});
function setupAndRegisterTests() {
registerPassthroughAnimator().then(() => {
promise_test(async t => {
const animation = CreateAnimation();
animation.play();
assert_equals(animation.currentTime, 0,
'Current time returns the hold time set when entering the play-pending' +
'state');
animation.cancel();
}, 'The current time returns the hold time when set');
promise_test(async t => {
const animation = CreateAnimation();
animation.play();
// Allow one async animation frame to pass so that animation is running.
await waitForAsyncAnimationFrames(1);
assert_equals(animation.playState, "running");
// Allow time to advance so that we have a non-zero current time.
await waitForDocumentTimelineAdvance();
const timelineTime = document.timeline.currentTime;
assert_greater_than(animation.currentTime, 0);
assert_times_equal(animation.currentTime, (timelineTime - animation.startTime));
animation.cancel();
}, 'The current time is calculated from the timeline time and start time');
done();
});
}
// TODO(majidvp): Add tests for playbackRate and animations that are not
// associated with a timeline once these are supported in WorkletAnimation.
// http://crbug.com/833846
</script>
</body>
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<title>Multiple effects on same target driven by individual local time</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 src="/web-animations/testcommon.js"></script>
<script src="common.js"></script>

<style>
#target {
width: 100px;
height: 100px;
background-color: green;
}
#target2 {
width: 100px;
height: 100px;
background-color: blue;
box-shadow: 4px 4px 25px blue;
}
</style>

<div id="target"></div>

<script id="simple_animate" type="text/worklet">
registerAnimator("test_animator", class {
animate(currentTime, effect) {
let effects = effect.getChildren();
effects[0].localTime = 0;
effects[1].localTime = 1000;
}
});
</script>

<script>
promise_test(async t => {
await runInAnimationWorklet(document.getElementById('simple_animate').textContent);
const effect = new KeyframeEffect(
document.getElementById("target"),
[
{ background: 'green' },
{ background: 'blue' },
],
{ duration: 2000 }
);
const effect2 = new KeyframeEffect(
document.getElementById("target"),
[
{ width: '100px' },
{ width: '200px' }
],
{ duration: 2000 }
);
const animation = new WorkletAnimation('test_animator', [effect, effect2]);
animation.play();
await waitForAsyncAnimationFrames(1);
assert_equals(getComputedStyle(document.getElementById('target')).backgroundColor, "rgb(0, 128, 0)");
assert_equals(getComputedStyle(document.getElementById('target')).width, "150px");
}, `Animating multiple effects on the same target using effect specific local time should output values
relative to each effects unique local time`);
</script>
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
<meta name="assert" content="Checks that a replaced element, with an aspect ratio, converts a percent height into an intrinsic width." />
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
#float { float: left; height: 100px; background: green; }
canvas { height: 100%; }
</style>
<p>Test passes if there is a filled green square.</p>
<div id=float>
<canvas width=10 height=10></canvas>
</div>
@@ -0,0 +1,14 @@
<!-- quirks mode -->
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
<meta name="assert" content="Checks that a replaced element, with an aspect ratio, converts a percent height into an intrinsic width." />
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
#float { float: left; height: 100px; background: green; }
canvas { height: 100%; }
</style>
<p style="margin-top: 1em;">Test passes if there is a filled green square.</p>
<div id=float>
<div>
<canvas width=10 height=10></canvas>
</div>
</div>
Oops, something went wrong.

0 comments on commit 4375e3f

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