Skip to content

Commit

Permalink
Update web-platform-tests to revision dc60bfc45b49e3a5e653320e65b0fd4…
Browse files Browse the repository at this point in the history
…47676b836
  • Loading branch information
servo-wpt-sync committed Jun 5, 2018
1 parent 652a177 commit 0bc549b
Show file tree
Hide file tree
Showing 690 changed files with 6,586 additions and 1,562 deletions.
1,605 changes: 921 additions & 684 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

@@ -0,0 +1,4 @@
[CSSAnimation-animationName.tentative.html]
[CSSAnimation.animationName]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-canceling.tentative.html]
[Canceling a CSS animation]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-effect.tentative.html]
[CSSAnimation.effect]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-finished.tentative.html]
[CSSAnimation.finished]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-getComputedTiming.tentative.html]
[CSSAnimation.getComputedTiming()]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-getCurrentTime.tentative.html]
[CSSAnimation.currentTime]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-id.tentative.html]
[CSSAnimation.id]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-pausing.tentative.html]
[Pausing a CSSAnimation]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-playState.tentative.html]
[CSSAnimation.playState]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-ready.tentative.html]
[CSSAnimation.ready]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSAnimation-startTime.tentative.html]
[CSSAnimation.startTime]
expected: FAIL

@@ -0,0 +1,4 @@
[CSSPseudoElement-getAnimations.tentative.html]
[CSSPseudoElement.getAnimations() for CSS animations]
expected: FAIL

@@ -0,0 +1,4 @@
[Document-getAnimations.tentative.html]
[Document.getAnimations() for CSS animations]
expected: FAIL

@@ -0,0 +1,4 @@
[Element-getAnimations-dynamic-changes.tentative.html]
[\nElement.getAnimations() - Dynamic changes to the list of CSS animations\n]
expected: FAIL

@@ -0,0 +1,4 @@
[Element-getAnimations.tentative.html]
[Element.getAnimations() for CSS animations]
expected: FAIL

@@ -0,0 +1,4 @@
[KeyframeEffect-getKeyframes.tentative.html]
[KeyframeEffect.getKeyframes() for CSS animations]
expected: FAIL

@@ -0,0 +1,4 @@
[KeyframeEffect-target.tentative.html]
[CSSAnimation.effect.target]
expected: FAIL

@@ -0,0 +1,4 @@
[event-dispatch.tentative.html]
[Tests for CSS animation event dispatch]
expected: FAIL

@@ -0,0 +1,4 @@
[event-order.tentative.html]
[Tests for CSS animation event order]
expected: FAIL

@@ -1,4 +1,4 @@
[registered-properties-in-custom-paint.https.html]
type: reftest
expected: TIMEOUT
expected: FAIL
bug: https://github.com/servo/servo/issues/17677

This file was deleted.

@@ -1,6 +1,5 @@
[005.html]
type: testharness
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: TIMEOUT
expected: FAIL

This file was deleted.

58 changes: 15 additions & 43 deletions tests/wpt/web-platform-tests/FileAPI/FileReaderSync.worker.js
@@ -1,56 +1,28 @@
importScripts("/resources/testharness.js");

var blob, empty_blob, readerSync;
setup(() => {
readerSync = new FileReaderSync();
blob = new Blob(["test"]);
empty_blob = new Blob();
var blob, readerSync;
setup(function() {
readerSync = new FileReaderSync();
blob = new Blob(["test"]);
});

test(() => {
assert_true(readerSync instanceof FileReaderSync);
test(function() {
assert_true(readerSync instanceof FileReaderSync);
}, "Interface");

test(() => {
var text = readerSync.readAsText(blob);
assert_equals(text, "test");
test(function() {
var text = readerSync.readAsText(blob);
assert_equals(text, "test");
}, "readAsText");

test(() => {
var text = readerSync.readAsText(empty_blob);
assert_equals(text, "");
}, "readAsText with empty blob");

test(() => {
var data = readerSync.readAsDataURL(blob);
assert_equals(data.indexOf("data:"), 0);
test(function() {
var data = readerSync.readAsDataURL(blob);
assert_equals(data.indexOf("data:"), 0);
}, "readAsDataURL");

test(() => {
var data = readerSync.readAsDataURL(empty_blob);
assert_equals(data.indexOf("data:"), 0);
}, "readAsDataURL with empty blob");

test(() => {
var data = readerSync.readAsBinaryString(blob);
assert_equals(data, "test");
}, "readAsBinaryString");

test(() => {
var data = readerSync.readAsBinaryString(empty_blob);
assert_equals(data, "");
}, "readAsBinaryString with empty blob");

test(() => {
var data = readerSync.readAsArrayBuffer(blob);
assert_true(data instanceof ArrayBuffer);
assert_equals(data.byteLength, "test".length);
test(function() {
var data = readerSync.readAsArrayBuffer(blob);
assert_true(data instanceof ArrayBuffer);
}, "readAsArrayBuffer");

test(() => {
var data = readerSync.readAsArrayBuffer(empty_blob);
assert_true(data instanceof ArrayBuffer);
assert_equals(data.byteLength, 0);
}, "readAsArrayBuffer with empty blob");

done();
Expand Up @@ -1962,9 +1962,9 @@
"html/elements/style/type-novalid.html": " The only allowed value for the \u201ctype\u201d attribute for the \u201cstyle\u201d element is \u201ctext/css\u201d (with no parameters). (But the attribute is not needed and should be omitted altogether.)",
"html/elements/sub/model-novalid.html": "End tag \u201cp\u201d implied, but there were open elements.",
"html/elements/sup/model-novalid.html": "End tag \u201cp\u201d implied, but there were open elements.",
"html/elements/table/integrity/Alexis_of_Russia-novalid.html": "Bad value \u201ccopyright\u201d for attribute \u201crel\u201d on element \u201clink\u201d: Bad list of link-type keywords: The keyword \u201ccopyright\u201d for the \u201crel\u201d attribute should not be used. Consider using \u201clicense\u201d instead.",
"html/elements/table/integrity/Feodor_I_of_Russia-novalid.html": "Bad value \u201ccopyright\u201d for attribute \u201crel\u201d on element \u201clink\u201d: Bad list of link-type keywords: The keyword \u201ccopyright\u201d for the \u201crel\u201d attribute should not be used. Consider using \u201clicense\u201d instead.",
"html/elements/table/integrity/Naser_al-Din_Shah_Qajar-novalid.html": "Bad value \u201ccopyright\u201d for attribute \u201crel\u201d on element \u201clink\u201d: Bad list of link-type keywords: The keyword \u201ccopyright\u201d for the \u201crel\u201d attribute should not be used. Consider using \u201clicense\u201d instead.",
"html/elements/table/integrity/Alexis_of_Russia-novalid.html": "The \u201calign\u201d attribute on the \u201ctable\u201d element is obsolete. Use CSS instead.",
"html/elements/table/integrity/Feodor_I_of_Russia-novalid.html": "The \u201calign\u201d attribute on the \u201ctable\u201d element is obsolete. Use CSS instead.",
"html/elements/table/integrity/Naser_al-Din_Shah_Qajar-novalid.html": "An \u201cimg\u201d element must have an \u201calt\u201d attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.",
"html/elements/table/integrity/vertical-novalid.html": "Table cell is overlapped by later table cell.",
"html/elements/table/model-input-child-hidden-novalid.html": "Start tag \u201cinput\u201d seen in \u201ctable\u201d.",
"html/elements/table/model-input-child-novalid.html": "Start tag \u201cinput\u201d seen in \u201ctable\u201d.",
Expand Down
Expand Up @@ -22,18 +22,20 @@
});

x = document.getElementById('x');
x.location = "";
x.onload = function() {
x.location = "";

// While document.write is deprecated I did not find another way to reproduce
// the original exploit.
x.contentDocument.write(
'<script>window.addEventListener("securitypolicyviolation", function(e) {' +
' window.top.postMessage(e.violatedDirective, "*");' +
'});</scr' + 'ipt>' +
'<iframe src="../support/fail.html"></iframe>'
);
x.contentDocument.close();
// While document.write is deprecated I did not find another way to reproduce
// the original exploit.
x.contentDocument.write(
'<script>window.addEventListener("securitypolicyviolation", function(e) {' +
' window.top.postMessage(e.violatedDirective, "*");' +
'});</scr' + 'ipt>' +
'<iframe src="../support/fail.html"></iframe>'
);
x.contentDocument.close();
}
</script>
<script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=frame-src%20%27none%27''></script>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions tests/wpt/web-platform-tests/cookies/path/match.html
Expand Up @@ -28,7 +28,7 @@
if (testCase.match === false) {
assert_equals(cookieSet, null);
} else {
assert_not_equals(cookieSet, null);
assert_not_equals(cookieSet, null, "Cookie path from DOM should not be `null`");
}

iframe.contentWindow.expireCookie('dom-' + testCase.name, testCase.path);
Expand All @@ -45,7 +45,7 @@
if (testCase.match === false) {
assert_equals(cookieSet, null);
} else {
assert_not_equals(cookieSet, null);
assert_not_equals(cookieSet, null, "Cookie path from header should not be `null`");
}

test.done();
Expand Down
95 changes: 95 additions & 0 deletions tests/wpt/web-platform-tests/core-aam/blockquote-manual.html
@@ -0,0 +1,95 @@
<!doctype html>
<html>
<head>
<title>blockquote</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" href="/wai-aria/scripts/manual.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/wai-aria/scripts/ATTAcomm.js"></script>
<script>
setup({explicit_timeout: true, explicit_done: true });

var theTest = new ATTAcomm(
{
"steps" : [
{
"element" : "test",
"test" : {
"ATK" : [
[
"property",
"role",
"is",
"ROLE_BLOCK_QUOTE"
]
],
"AXAPI" : [
[
"property",
"AXRole",
"is",
"AXGroup"
],
[
"property",
"AXSubrole",
"is",
"<nil>"
],
[
"property",
"AXRoleDescription",
"is",
"group"
]
],
"IAccessible2" : [
[
"property",
"role",
"is",
"IA2_ROLE_SECTION"
]
],
"MSAA" : [
[
"property",
"role",
"is",
"ROLE_SYSTEM_GROUPING"
]
],
"UIA" : [
[
"property",
"ControlType",
"is",
"Group"
],
[
"property",
"LocalizedControlType",
"is",
"blockquote"
]
]
},
"title" : "step 1",
"type" : "test"
}
],
"title" : "blockquote"
}

) ;
</script>
</head>
<body>
<p>This test examines the ARIA properties for blockquote.</p>
<div role="blockquote" id="test">content</div>
<div id="manualMode"></div>
<div id="log"></div>
<div id="ATTAmessages"></div>
</body>
</html>

0 comments on commit 0bc549b

Please sign in to comment.