Skip to content

Commit

Permalink
Update web-platform-tests to revision f7e2ea2c50c4d23549d07cd24c7a96f…
Browse files Browse the repository at this point in the history
…c3f203d96
  • Loading branch information
servo-wpt-sync committed Mar 12, 2020
1 parent 4b1bb89 commit 33357a8
Show file tree
Hide file tree
Showing 175 changed files with 1,822 additions and 5,090 deletions.
1,164 changes: 288 additions & 876 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

This file was deleted.

@@ -0,0 +1,4 @@
[hit-test-floats-004.html]
[Miss float below something else]
expected: FAIL

@@ -0,0 +1,4 @@
[hit-test-floats-005.html]
[Miss clipped float]
expected: FAIL

This file was deleted.

This file was deleted.

@@ -0,0 +1,5 @@
[viewport-units-after-font-load.html]
expected: TIMEOUT
[Viewport units are correctly updated after resize even if a font load has happened before]
expected: TIMEOUT

@@ -0,0 +1,15 @@
[cors-preflight-response-validation.any.html]
[Preflight response with a bad Access-Control-Allow-Methods]
expected: FAIL

[Preflight response with a bad Access-Control-Allow-Headers]
expected: FAIL


[cors-preflight-response-validation.any.worker.html]
[Preflight response with a bad Access-Control-Allow-Methods]
expected: FAIL

[Preflight response with a bad Access-Control-Allow-Headers]
expected: FAIL

14 changes: 7 additions & 7 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -312,24 +312,24 @@
[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN

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

[<iframe>: combined 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 */*]
expected: FAIL

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

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

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

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

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

2 changes: 1 addition & 1 deletion tests/wpt/metadata/fetch/content-type/script.window.js.ini
Expand Up @@ -56,6 +56,6 @@
[separate text/javascript x/x]
expected: FAIL

[separate text/javascript;charset=windows-1252 error text/javascript]
[separate text/javascript error]
expected: FAIL

Expand Up @@ -11,6 +11,3 @@
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
expected: FAIL

[X-Content-Type-Options%3A%20%40%23%24%23%25%25%26%5E%26%5E*()()11!%2Cnosniff]
expected: FAIL

@@ -0,0 +1,4 @@
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -0,0 +1,4 @@
[traverse_the_history_5.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

Expand Up @@ -18,6 +18,3 @@
[Set HTTP URL frame location.protocol to ftp]
expected: FAIL

[Set data URL frame location.protocol to file]
expected: FAIL

@@ -0,0 +1,4 @@
[img-aspect-ratio-lazy.tentative.html]
[Image width and height attributes are used to infer aspect-ratio for lazy-loaded images]
expected: FAIL

@@ -1,6 +1,6 @@
[iframe_sandbox_popups_escaping-3.html]
type: testharness
expected: CRASH
expected: TIMEOUT
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
expected: TIMEOUT

Expand Up @@ -53,3 +53,6 @@
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 40534 more errors.\n\tMax AbsError of 1.9986916780471802e+0 at index of 29020.\n\t[29020\]\t9.9994289875030518e-1\t-9.9874877929687500e-1\t1.9986916780471802e+0\t2.0011956154322119e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 12348.\n\t[12348\]\t9.5105654001235962e-1\t0.0000000000000000e+0\t9.5105654001235962e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL

[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 44049 more errors.\n\tMax AbsError of 1.9985756278038025e+0 at index of 16692.\n\t[16692\]\t9.9997943639755249e-1\t-9.9859619140625000e-1\t1.9985756278038025e+0\t2.0013851895322721e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 10584.\n\t[10584\]\t-5.8778524398803711e-1\t0.0000000000000000e+0\t5.8778524398803711e-1\tInfinity\t3.0517578125000000e-5\n]
expected: FAIL

Expand Up @@ -206,3 +206,9 @@
[X Stitched sine-wave buffers at sample rate 44100 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.000090957,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[31080\]\t7.7856257262238438e-27\t5.6332010030746460e-1\t5.6332010030746460e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\t[31081\]\t4.5762203949455551e-41\t6.1397600173950195e-1\t6.1397600173950195e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\tMax AbsError of 6.1397600173950195e-1 at index of 31081.\n\tMax RelError of 1.0000000000000000e+0 at index of 31080.\n]
expected: FAIL

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

[X Stitched sine-wave buffers at sample rate 44100 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.000090957,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[31080\]\t2.1915524950344434e-12\t5.6332010030746460e-1\t5.6332010030527302e-1\t9.9999999999610956e-1\t9.0957000000000003e-5\n\t[31081\]\t4.5863097438886938e-41\t6.1397600173950195e-1\t6.1397600173950195e-1\t1.0000000000000000e+0\t9.0957000000000003e-5\n\tMax AbsError of 6.1397600173950195e-1 at index of 31081.\n\tMax RelError of 1.0000000000000000e+0 at index of 31081.\n]
expected: FAIL

@@ -1,7 +1,8 @@
[shared-worker-in-data-url-context.window.html]
expected: TIMEOUT
[Create a shared worker in a data url frame]
expected: FAIL
expected: TIMEOUT

[Create a data url shared worker in a data url frame]
expected: FAIL
expected: NOTRUN

Expand Up @@ -13,6 +13,7 @@ def main(request, response):
"sec-ch-ua-arch",
"sec-ch-ua-platform",
"sec-ch-ua-model",
"sec-ch-ua-full-version",
]

request_client_hints = {i: request.headers.get(i) for i in client_hint_headers}
Expand Down
44 changes: 38 additions & 6 deletions tests/wpt/web-platform-tests/client-hints/sec-ch-quotes.https.html
Expand Up @@ -5,21 +5,53 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script>
const verify_headers = (header_list, response, verification_func) => {
header_list.forEach(header => {
const value = response.headers.get(header+"-recieved");
if(value) {
verification_func(value);
}
});
};

promise_test(async (test) => {
var request_token = token();
var client_hint_headers = [
const request_token = token();
const string_list_client_hint_headers = [
"sec-ch-ua",
];
const string_client_hint_headers = [
"sec-ch-ua-arch",
"sec-ch-ua-platform",
"sec-ch-ua-model",
"sec-ch-ua-full-version",
];
const boolean_client_hint_headers = [
"sec-ch-mobile",
];

const response = await fetch("resources/echo-ua-client-hints-received.py");
client_hint_headers.forEach(header => {
if(response.headers.get(header+"-recieved")) {
verify_headers(string_client_hint_headers, response, value => {
if(value) {
// Check that the hints have quotes
assert_equals(response.headers.get(header+"-recieved").slice(0,1), "\"");
assert_equals(response.headers.get(header+"-recieved").slice(-1), "\"");
// TODO(yoav): this doesn't account for parameters. Need an SH parser, that verifies no parameters are present.
assert_equals(value.slice(0,1), "\"");
assert_equals(value.slice(-1), "\"");
}
});
verify_headers(string_list_client_hint_headers, response, value => {
// Check that the hints have quotes
// TODO(yoav): this doesn't account for list parsing or parameters. Need an SH parser, that verifies this is a list of strings with a "v" parameter present in at least one value.
assert_false((typeof value) == "undefined");
assert_equals(value.slice(0,1), "\"");
assert_equals(value.slice(-1), "\"");
});
verify_headers(boolean_client_hint_headers, response, value => {
if(value) {
// Check that the value is a valid boolean
assert_false((typeof value) == "undefined");
assert_equals(value.slice(0,1), "?");
const num = value.slice(-1);
assert_true(num == "0" || num == "1");
}
});
}, 'User agent client hint header values are surrounded by quotes');
Expand Down
Expand Up @@ -27,7 +27,7 @@
window.onmessage = e => {
try {
assert_not_equals(e.data.header, "", "The `Sec-CH-UA` header is delivered.");
assert_not_equals(e.data.header, minor, "The `Sec-CH-UA` header is different after the opt-in than before.");
assert_equals(e.data.header, minor, "The `Sec-CH-UA` header did not change after the opt-in.");
} catch (ex) {
reject(ex);
}
Expand Down
Expand Up @@ -42,9 +42,9 @@
const animA = div.animate({margin: ["100px","100px"]}, 100000);
assert_equals(getComputedStyle(div).marginLeft, '100px');
div.style.animation = 'margin50 100s';
assert_equals(getComputedStyle(div).marginLeft, '50px');
// Wait for animation starts
await waitForAnimationFrames(2);
await animA.ready;
await waitForAnimationFrames(1);
assert_equals(getComputedStyle(div).marginLeft, '100px',
"A higher-priority animation is not overriden by a more recent"
+ "one.");
Expand Down
38 changes: 0 additions & 38 deletions tests/wpt/web-platform-tests/css/css-flexbox/flex-wrap-001.htm

This file was deleted.

24 changes: 0 additions & 24 deletions tests/wpt/web-platform-tests/css/css-flexbox/flex-wrap_nowrap.html

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions tests/wpt/web-platform-tests/css/css-flexbox/flex-wrap_wrap.html

This file was deleted.

This file was deleted.

0 comments on commit 33357a8

Please sign in to comment.