Skip to content

Commit

Permalink
Update web-platform-tests to revision e45156b5e558c062a609356905c83a0…
Browse files Browse the repository at this point in the history
…258c516e3
  • Loading branch information
servo-wpt-sync committed May 3, 2019
1 parent 9f6005b commit 5fcf52d
Show file tree
Hide file tree
Showing 199 changed files with 4,430 additions and 530 deletions.
1,224 changes: 1,044 additions & 180 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

Expand Up @@ -20,9 +20,6 @@
[Matching font-weight: '430' should prefer '400 425' over '350 399']
expected: FAIL

[Matching font-weight: '430' should prefer '340 398' over '501 550']
expected: FAIL

[Matching font-weight: '500' should prefer '351 398' over '501 550']
expected: FAIL

Expand Down Expand Up @@ -95,9 +92,6 @@
[Matching font-style: 'oblique -21deg' should prefer 'oblique -21deg' over 'oblique -60deg -40deg']
expected: FAIL

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

[Matching font-style: 'oblique 20deg' should prefer 'oblique 30deg 60deg' over 'oblique 40deg 50deg']
expected: FAIL

Expand Down Expand Up @@ -134,9 +128,6 @@
[Descriptor matching priority: Style has higher priority than weight]
expected: FAIL

[Matching font-weight: '430' should prefer '501 550' over '502 560']
expected: FAIL

[Matching font-style: 'oblique -20deg' should prefer 'oblique -60deg -40deg' over 'oblique -10deg']
expected: FAIL

Expand Down
Expand Up @@ -14,15 +14,6 @@
[Test @font-face matching for weight 1000]
expected: FAIL

[Test @font-face matching for weight 99]
expected: FAIL

[Test @font-face matching for weight 100]
expected: FAIL

[Test @font-face matching for weight 249]
expected: FAIL

[Test @font-face matching for weight 250]
expected: FAIL

Expand Down
@@ -0,0 +1,2 @@
[hyphens-shaping-001.html]
expected: FAIL
@@ -0,0 +1,2 @@
[hyphens-shaping-002.html]
expected: FAIL
@@ -0,0 +1,2 @@
[hyphens-span-001.html]
expected: FAIL
@@ -0,0 +1,2 @@
[shy-styling-001.html]
expected: FAIL
@@ -0,0 +1,2 @@
[line-break-shaping-001.html]
expected: FAIL
@@ -0,0 +1,2 @@
[overflow-wrap-shaping-001.html]
expected: FAIL
@@ -0,0 +1,2 @@
[overflow-wrap-shaping-002.html]
expected: FAIL

This file was deleted.

Expand Up @@ -74,3 +74,6 @@
[opacity end]
expected: FAIL

[padding-bottom intermediate]
expected: FAIL

This file was deleted.

@@ -0,0 +1,2 @@
[getComputedStyle-insets-sticky-container-for-abspos.html]
expected: TIMEOUT
@@ -0,0 +1,4 @@
[getComputedStyle-sticky-pos-percent.html]
[Sticky element's top property percentage value should be resolved against the div with overflow: hidden]
expected: FAIL
21 changes: 0 additions & 21 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -312,24 +312,3 @@
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;x=" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
expected: FAIL

Expand Up @@ -11,6 +11,3 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%20%2Cnosniff]
expected: FAIL

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

This file was deleted.

Expand Up @@ -18,9 +18,6 @@
[Set data URL frame location.protocol to http+x]
expected: FAIL

[Set HTTP URL frame location.protocol to x]
expected: FAIL

[Set HTTP URL frame location.protocol to gopher]
expected: FAIL

Expand Down
@@ -0,0 +1,10 @@
[non-active-document.html]
[DOMParser]
expected: FAIL

[createHTMLDocument]
expected: FAIL

[<template>]
expected: FAIL

This file was deleted.

@@ -1,5 +1,5 @@
[ignore-opens-during-unload.window.html]
expected: TIMEOUT
expected: CRASH
[ignore-opens-during-unload]
expected: FAIL

Expand Down
@@ -0,0 +1,5 @@
[resource_timing_buffer_full_eventually.html]
expected: TIMEOUT
[Finite resource timing entries buffer size]
expected: TIMEOUT

Expand Up @@ -11,3 +11,21 @@
[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[30\]\t9.4836157560348511e-1\t9.5236867666244507e-1\t4.0071010589599609e-3\t4.2075103446311962e-3\t3.8985999999999999e-3\n\t[31\]\t9.2646563053131104e-1\t9.3139332532882690e-1\t4.9276947975158691e-3\t5.2906700783754857e-3\t3.8985999999999999e-3\n\t[32\]\t9.0087991952896118e-1\t9.0675884485244751e-1\t5.8789253234863281e-3\t6.4834496590358351e-3\t3.8985999999999999e-3\n\t[33\]\t8.7170630693435669e-1\t8.7856203317642212e-1\t6.8557262420654297e-3\t7.8033490899654511e-3\t3.8985999999999999e-3\n\t[34\]\t8.3906102180480957e-1\t8.4691369533538818e-1\t7.8526735305786133e-3\t9.2721059699818163e-3\t3.8985999999999999e-3\n\t...and 31035 more errors.\n\tMax AbsError of 8.5881388187408447e-1 at index of 1570.\n\t[1570\]\t0.0000000000000000e+0\t-8.5881388187408447e-1\t8.5881388187408447e-1\t1.0000000000000000e+0\t3.8985999999999999e-3\n\tMax RelError of 3.3137802965303198e+0 at index of 1253.\n\t[1253\]\t-4.3022233992815018e-2\t-9.9732093513011932e-3\t3.3049024641513824e-2\t3.3137802965303198e+0\t3.8985999999999999e-3\n]
expected: FAIL

[# AUDIT TASK RUNNER FINISHED: 2 out of 2 tasks were failed.]
expected: FAIL

[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t6.3076853752136230e-2\t0.0000000000000000e+0\t6.3076853752136230e-2\tInfinity\t3.8985999999999999e-3\n\t[2\]\t1.2590248882770538e-1\t0.0000000000000000e+0\t1.2590248882770538e-1\tInfinity\t3.8985999999999999e-3\n\t[3\]\t1.8822671473026276e-1\t0.0000000000000000e+0\t1.8822671473026276e-1\tInfinity\t3.8985999999999999e-3\n\t[4\]\t2.4980127811431885e-1\t0.0000000000000000e+0\t2.4980127811431885e-1\tInfinity\t3.8985999999999999e-3\n\t[5\]\t3.1038099527359009e-1\t0.0000000000000000e+0\t3.1038099527359009e-1\tInfinity\t3.8985999999999999e-3\n\t...and 43675 more errors.\n\tMax AbsError of 9.9999898672103882e-1 at index of 225.\n\t[225\]\t9.9999898672103882e-1\t0.0000000000000000e+0\t9.9999898672103882e-1\tInfinity\t3.8985999999999999e-3\n\tMax RelError of Infinity at index of 1.\n]
expected: FAIL

[X SNR (-Infinity dB) is not greater than or equal to 85.58. Got -Infinity.]
expected: FAIL

[X SNR (-Infinity dB) is not greater than or equal to 65.737. Got -Infinity.]
expected: FAIL

[< [buffer-stitching-1\] 2 out of 3 assertions were failed.]
expected: FAIL

[X Stitched sine-wave buffers at sample rate 44100 does not equal [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0...\] with an element-wise tolerance of {"absoluteThreshold":0.000090957,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t6.2648326158523560e-2\t0.0000000000000000e+0\t6.2648326158523560e-2\tInfinity\t9.0957000000000003e-5\n\t[2\]\t1.2505052983760834e-1\t0.0000000000000000e+0\t1.2505052983760834e-1\tInfinity\t9.0957000000000003e-5\n\t[3\]\t1.8696144223213196e-1\t0.0000000000000000e+0\t1.8696144223213196e-1\tInfinity\t9.0957000000000003e-5\n\t[4\]\t2.4813784658908844e-1\t0.0000000000000000e+0\t2.4813784658908844e-1\tInfinity\t9.0957000000000003e-5\n\t[5\]\t3.0833941698074341e-1\t0.0000000000000000e+0\t3.0833941698074341e-1\tInfinity\t9.0957000000000003e-5\n\t...and 44075 more errors.\n\tMax AbsError of 9.9999976158142090e-1 at index of 877.\n\t[877\]\t-9.9999976158142090e-1\t0.0000000000000000e+0\t9.9999976158142090e-1\tInfinity\t9.0957000000000003e-5\n\tMax RelError of Infinity at index of 1.\n]
expected: FAIL

@@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

@@ -1,6 +1,5 @@
[003.html]
type: testharness
expected: ERROR
[shared]
expected: FAIL

Expand Up @@ -43,6 +43,31 @@
});
</script>

<script id="stateless_animator_preserves_effect_local_time" type="text/worklet">
registerAnimator("stateless_animator_preserves_effect_local_time", class {
animate(currentTime, effect) {
// The local time will be carried over to the new global scope.
effect.localTime = effect.localTime ? effect.localTime + 1 : 1;
}
});
</script>

<script id="stateless_animator_does_not_copy_effect_object" type="text/worklet">
registerAnimator("stateless_animator_does_not_copy_effect_object", class {
animate(currentTime, effect) {
effect.localTime = effect.localTime ? effect.localTime + 1 : 1;
effect.foo = effect.foo ? effect.foo + 1 : 1;
// This condition becomes true once we switch global scope and only preserve local time
// otherwise these values keep increasing in lock step.
if (effect.localTime > effect.foo) {
// This works as long as we switch global scope before 10000 frames.
// which is a safe assumption.
effect.localTime = 10000;
}
}
});
</script>

<script id="state_function_returns_empty" type="text/worklet">
registerAnimator("state_function_returns_empty", class {
constructor(options, state = { test_local_time: 0 }) {
Expand Down Expand Up @@ -70,6 +95,7 @@
</script>

<script>
const EXPECTED_FRAMES_TO_A_SCOPE_SWITCH = 15;
async function localTimeDoesNotUpdate(animation) {
// The local time stops increasing after the animator instance being dropped.
// e.g. 0, 1, 2, .., n, n, n, n, .. where n is the frame that the global
Expand Down Expand Up @@ -109,7 +135,6 @@

// effect.localTime should be correctly increased upon global scope
// switches for stateful animators.
const EXPECTED_FRAMES_TO_A_SCOPE_SWITCH = 15;
await waitForAnimationFrameWithCondition(_ => {
return animation.effect.getComputedTiming().localTime ==
EXPECTED_FRAMES_TO_A_SCOPE_SWITCH;
Expand All @@ -132,6 +157,34 @@
animation.cancel();
}, "Stateless animator gets reecreated with 'undefined' state.");

promise_test(async t => {
await runInAnimationWorklet(document.getElementById('stateless_animator_preserves_effect_local_time').textContent);
const target = document.getElementById('target');
const effect = new KeyframeEffect(target, [{ opacity: 0 }], { duration: 1000 });
const animation = new WorkletAnimation('stateless_animator_preserves_effect_local_time', effect);
animation.play();

await waitForAnimationFrameWithCondition(_ => {
return animation.effect.getComputedTiming().localTime == EXPECTED_FRAMES_TO_A_SCOPE_SWITCH;
});

animation.cancel();
}, "Stateless animator should preserve the local time of its effect.");

promise_test(async t => {
await runInAnimationWorklet(document.getElementById('stateless_animator_does_not_copy_effect_object').textContent);
const target = document.getElementById('target');
const effect = new KeyframeEffect(target, [{ opacity: 0 }], { duration: 1000 });
const animation = new WorkletAnimation('stateless_animator_does_not_copy_effect_object', effect);
animation.play();

await waitForAnimationFrameWithCondition(_ => {
return animation.effect.getComputedTiming().localTime == 10000;
});

animation.cancel();
}, "Stateless animator should not copy the effect object.");

promise_test(async t => {
await runInAnimationWorklet(document.getElementById('state_function_returns_empty').textContent);
const target = document.getElementById('target');
Expand Down
8 changes: 4 additions & 4 deletions tests/wpt/web-platform-tests/conformance-checkers/Makefile
Expand Up @@ -28,16 +28,16 @@ README.md: index.html
| $(EXPAND) $(EXPANDFLAGS) > $@

messages.json: .FORCE
$(CURL) $(CURLFLAGS) -O \
https://sideshowbarker.net/nightlies/jar/vnu.jar
$(CURL) $(CURLFLAGS) -O -L \
https://github.com/validator/validator/releases/download/jar/vnu.jar
$(JAVA) $(JAVAFLAGS) -cp vnu.jar nu.validator.client.TestRunner \
--ignore=html-its --write-messages $@
$(PYTHON) $(PYTHONFLAGS) -mjson.tool $@ > $@.tmp
mv $@.tmp $@

test: .FORCE
$(CURL) $(CURLFLAGS) -O \
https://sideshowbarker.net/nightlies/jar/vnu.jar
$(CURL) $(CURLFLAGS) -O -L \
https://github.com/validator/validator/releases/download/jar/vnu.jar
$(JAVA) $(JAVAFLAGS) -cp vnu.jar nu.validator.client.TestRunner \
--ignore=html-its messages.json

Expand Down
1 change: 1 addition & 0 deletions tests/wpt/web-platform-tests/cookies/samesite/fetch.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8"/>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
Expand Down
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8"/>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
Expand Down
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8"/>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
Expand Down
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8"/>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
Expand Down
1 change: 1 addition & 0 deletions tests/wpt/web-platform-tests/cookies/samesite/iframe.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8"/>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
Expand Down
1 change: 1 addition & 0 deletions tests/wpt/web-platform-tests/cookies/samesite/img.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8"/>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/cookies/resources/cookie-helper.sub.js"></script>
Expand Down
15 changes: 15 additions & 0 deletions tests/wpt/web-platform-tests/css/css-flexbox/align-items-007.html
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<link rel="author" title="Google LLC" href="http://www.google.com" />
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#cross-sizing" />
<title>css-flexbox: Tests that we size items in a wrapping column flexbox as fit-content</title>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="The image should fit wholly within the flexbox." />

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>

<!-- This makes sure that we only see green if the flex items are sized correctly -->
<div style="position: absolute; width: 100px; height: 100px; background: green;"></div>

<div style="display: flex; flex-direction: column; width: 100px; height: 100px; line-height: 20px; align-items: center; background: green;">
<img src="../support/red-rect.svg">
</div>
Expand Up @@ -18,8 +18,8 @@
<span>7</span><!-- "7" -->
<span>0</span><!-- "0" -->
<span>7</span><!-- "7" -->
<span>8</span><!-- "8" -->
<span>2</span><!-- "2" -->
<span>6</span><!-- "6" -->
<span>0</span><!-- "0" -->
<x>
<span>2</span><!-- "2" -->
</x>
Expand Down
Expand Up @@ -21,8 +21,8 @@
<span style="counter-set: n 7"></span><!-- "7" -->
<span style="counter-set: n"></span><!-- "0" -->
<span style="counter-set: n 8 n 7"></span><!-- "7" -->
<span style="counter-set: n 6; counter-increment: n 2"></span><!-- "8" -->
<span style="counter-set: n; counter-increment: n 2"></span><!-- "2" -->
<span style="counter-set: n 6; counter-increment: n 2"></span><!-- "6" -->
<span style="counter-set: n; counter-increment: n 2"></span><!-- "0" -->
<x style="counter-reset: n 9">
<span style="counter-set: n 2"></span><!-- "2" -->
</x>
Expand Down

0 comments on commit 5fcf52d

Please sign in to comment.