Skip to content

Commit

Permalink
Update web-platform-tests to revision abd18b3e018d25ed668d179c905b786…
Browse files Browse the repository at this point in the history
…9dca5e239
  • Loading branch information
servo-wpt-sync committed Jul 20, 2018
1 parent 908a642 commit 158f7ee
Show file tree
Hide file tree
Showing 117 changed files with 2,997 additions and 434 deletions.
535 changes: 468 additions & 67 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

@@ -0,0 +1,2 @@
[floats-in-table-caption-001.html]
expected: FAIL
2 changes: 0 additions & 2 deletions tests/wpt/metadata/css/CSS2/visudet/line-height-204.html.ini

This file was deleted.

Expand Up @@ -38,6 +38,3 @@
[Test @font-face matching for weight 249]
expected: FAIL

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

@@ -0,0 +1,2 @@
[css3-text-line-break-opclns-050.html]
expected: FAIL
@@ -0,0 +1,2 @@
[css3-text-line-break-opclns-054.html]
expected: FAIL
@@ -0,0 +1,2 @@
[css3-text-line-break-opclns-059.html]
expected: FAIL
@@ -0,0 +1,2 @@
[css3-text-line-break-opclns-164.html]
expected: FAIL
@@ -0,0 +1,2 @@
[css3-text-line-break-opclns-165.html]
expected: FAIL
Expand Up @@ -11,6 +11,3 @@
[FE19 PRESENTATION FORM FOR VERTICAL HORIZONTAL ELLIPSIS may NOT appear at line start if zh and strict]
expected: FAIL

[22EF MIDLINE HORIZONTAL ELLIPSIS may NOT appear at line start if zh and strict]
expected: FAIL

This file was deleted.

This file was deleted.

Expand Up @@ -3,3 +3,6 @@
[CSSStyleDeclaration.setPropertyValue queues a mutation record, even if not mutated]
expected: NOTRUN

[CSSStyleDeclaration.setPropertyValue queues a mutation record when serialization is changed]
expected: NOTRUN

@@ -0,0 +1,13 @@
[cssstyledeclaration-setter-declarations.html]
[setProperty with longhand should update only the declaration being set]
expected: FAIL

[property setter should update only the declaration being set]
expected: FAIL

[setProperty with shorthand should update only the declarations being set]
expected: FAIL

[longhand property setter should update only the decoarations being set]
expected: FAIL

@@ -0,0 +1,4 @@
[cssstyledeclaration-setter-logical.html]
[newly set declaration should be after all declarations in the same logical property group but have different logical kind]
expected: FAIL

This file was deleted.

3 changes: 2 additions & 1 deletion tests/wpt/metadata/encoding/single-byte-decoder.html.ini
Expand Up @@ -3,9 +3,10 @@
disabled: iframe thread issue 5247

[single-byte-decoder.html?document]
expected: TIMEOUT
expected: CRASH

[single-byte-decoder.html?XMLHttpRequest]
expected: CRASH
[ISO-8859-2: iso_8859-2:1987 (XMLHttpRequest)]
expected: FAIL

Expand Down

This file was deleted.

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

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

Expand Up @@ -172,33 +172,63 @@
[XHTML img usemap="http://example.org/#garbage-before-hash-id"]
expected: FAIL

[HTML (standards) IMG usemap="no-hash-name"]
[HTML (quirks) IMG usemap="no-hash-name"]
expected: FAIL

[HTML (standards) IMG usemap="no-hash-id"]
[HTML (quirks) IMG usemap="no-hash-id"]
expected: FAIL

[HTML (standards) IMG usemap="hash-last#"]
[HTML (quirks) IMG usemap="hash-last#"]
expected: FAIL

[HTML (standards) IMG usemap=""]
[HTML (quirks) IMG usemap=""]
expected: FAIL

[HTML (standards) IMG usemap="#"]
[HTML (quirks) IMG usemap="#"]
expected: FAIL

[HTML (standards) IMG usemap="#percent-escape-name-%41"]
[HTML (quirks) IMG usemap="#percent-escape-name-%41"]
expected: FAIL

[HTML (standards) IMG usemap="#percent-escape-id-%41"]
[HTML (quirks) IMG usemap="#percent-escape-id-%41"]
expected: FAIL

[HTML (standards) IMG usemap="#no-such-map"]
[HTML (quirks) IMG usemap="#no-such-map"]
expected: FAIL

[HTML (standards) IMG usemap="#different-CASE-name"]
[HTML (quirks) IMG usemap="#different-CASE-name"]
expected: FAIL

[HTML (standards) IMG usemap="#different-CASE-id"]
[HTML (quirks) IMG usemap="#different-CASE-id"]
expected: FAIL

[XHTML img usemap="no-hash-name"]
expected: FAIL

[XHTML img usemap="no-hash-id"]
expected: FAIL

[XHTML img usemap="hash-last#"]
expected: FAIL

[XHTML img usemap=""]
expected: FAIL

[XHTML img usemap="#"]
expected: FAIL

[XHTML img usemap="#percent-escape-name-%41"]
expected: FAIL

[XHTML img usemap="#percent-escape-id-%41"]
expected: FAIL

[XHTML img usemap="#no-such-map"]
expected: FAIL

[XHTML img usemap="#different-CASE-name"]
expected: FAIL

[XHTML img usemap="#different-CASE-id"]
expected: FAIL

This file was deleted.

@@ -0,0 +1,5 @@
[context-creation-and-destruction.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

@@ -0,0 +1,5 @@
[context-creation.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

@@ -0,0 +1,2 @@
[context-eviction-with-garbage-collection.html]
expected: TIMEOUT
@@ -0,0 +1,5 @@
[log_001_to_008.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

@@ -0,0 +1,5 @@
[log2_001_to_008.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

5 changes: 5 additions & 0 deletions tests/wpt/web-platform-tests/animation-worklet/META.yml
@@ -0,0 +1,5 @@
spec: https://wicg.github.io/animation-worklet/
suggested_reviewers:
- flackr
- majido
- stephenmcgruer
16 changes: 16 additions & 0 deletions tests/wpt/web-platform-tests/animation-worklet/interfaces.any.js
@@ -0,0 +1,16 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

'use strict';

// https://wicg.github.io/animation-worklet/

promise_test(async () => {
const idl = await (await fetch('/interfaces/animation-worklet.idl')).text();
const html = await (await fetch('/interfaces/html.idl')).text();
const idlArray = new IdlArray();
idlArray.add_idls(idl);
idlArray.add_dependency_idls(html);
idlArray.test();
done();
}, 'Test driver');
14 changes: 14 additions & 0 deletions tests/wpt/web-platform-tests/console/idlharness.any.js
@@ -0,0 +1,14 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

// https://console.spec.whatwg.org/

promise_test(async () => {
const srcs = ['console'];
const [idl] = await Promise.all(
srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));

const idl_array = new IdlArray();
idl_array.add_idls(idl);
idl_array.test();
}, 'console interfaces');
Expand Up @@ -4,10 +4,10 @@
<script src="./support/testharness-helper.sub.js"></script>
<body></body>
<script>
function waitForViolation(el, t, policy, blocked_origin) {
function waitForViolation(el, t, policy, blockedURI) {
return new Promise(resolve => {
el.addEventListener('securitypolicyviolation', e => {
if (e.originalPolicy == policy && (new URL(e.blockedURI)).origin == blocked_origin)
if (e.originalPolicy == policy && e.blockedURI == blockedURI)
resolve(e);
else
t.unreached_func("Unexpected violation event for " + e.blockedURI)();
Expand All @@ -21,7 +21,7 @@
i.src = redirect.url;

// Report-only policy should trigger a violation on the redirected request.
waitForViolation(window, t, "img-src https:", (new URL(redirect.target)).origin).then(t.step_func(e => {
waitForViolation(window, t, "img-src https:", new URL(redirect.url, window.location).href).then(t.step_func(e => {
t.done();
}));

Expand Down
Expand Up @@ -40,5 +40,18 @@ async_test(t => {
.catch(t.step_func(e => assert_true(e instanceof TypeError)));
}, "SecurityPolicyViolation event fired on global.");

async_test(t => {
var url = "{{location[scheme]}}://{{host}}:{{location[port]}}/common/redirect.py?location={{location[scheme]}}://{{domains[www]}}:{{location[port]}}/content-security-policy/support/ping.js";
waitUntilCSPEventForURL(t, url)
.then(t.step_func_done(e => {
assert_equals(e.blockedURI, url);
assert_false(cspEventFiredInDocument);
}));

fetch(url)
.then(t.unreached_func("Fetch should not succeed."))
.catch(t.step_func(e => assert_true(e instanceof TypeError)));
}, "SecurityPolicyViolation event fired on global with the correct blockedURI.");

// Worker tests need an explicit `done()`.
done();
1 change: 1 addition & 0 deletions tests/wpt/web-platform-tests/core-aam/META.yml
Expand Up @@ -2,3 +2,4 @@ spec: https://w3c.github.io/core-aam/
suggested_reviewers:
- halindrome
- joanmarie
- michael-n-cooper
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<title>A block with 'overflow: hidden' should produce normal baseline</title>
<link rel="author" title="Koji Ishii" href="kojii@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-baselines">
<link rel="match" href="reference/align-items-baseline-overflow-non-visible-ref.html">
<style>
.flex {
display: flex;
align-items: baseline;
}
.overflow {
overflow: hidden;
height: 2em;
}
</style>

<body>
<!--
CSS2 states that:
The baseline of an 'inline-block' is the baseline of its last line box in
the normal flow, unless it has either no in-flow line boxes or if its
'overflow' property has a computed value other than 'visible', in which case
the baseline is the bottom margin edge.
https://drafts.csswg.org/css2/visudet.html#propdef-vertical-align
This rule should apply only to 'inline-block', and not to normal block.
-->
<div class="flex">
<span>XX</span>
<div><div class="overflow">YY</div></div>
</div>
</body>
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<style>
.flex {
display: flex;
align-items: baseline;
}
</style>

<body>
<div class="flex">
<span>XX</span>
<div><div>YY</div></div>
</div>
</body>

0 comments on commit 158f7ee

Please sign in to comment.