Skip to content

Commit

Permalink
Update web-platform-tests to revision 91b1effe848fac6e73a203037fc333b…
Browse files Browse the repository at this point in the history
…0fff3174d
  • Loading branch information
servo-wpt-sync committed Feb 21, 2019
1 parent 6bb98ad commit 7680aab
Show file tree
Hide file tree
Showing 60 changed files with 1,584 additions and 116 deletions.
456 changes: 435 additions & 21 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

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

[border-bottom-width end]
expected: FAIL

Expand Up @@ -6,6 +6,3 @@
[Instant scrolling while doing history navigation.]
expected: FAIL

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

27 changes: 9 additions & 18 deletions tests/wpt/metadata/encoding/single-byte-decoder.html.ini
Expand Up @@ -32,7 +32,7 @@


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

Expand Down Expand Up @@ -60,12 +60,6 @@
[windows-1254: iso_8859-9:1989 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1258: cp1258 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1256: cp1256 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso_8859-9 (XMLHttpRequest)]
expected: TIMEOUT

Expand All @@ -90,34 +84,31 @@
[windows-1256: x-cp1256 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1257: x-cp1257 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1255: cp1255 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1256: windows-1256 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1257: windows-1257 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso88599 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso-8859-9 (XMLHttpRequest)]
[windows-1254: iso8859-9 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso8859-9 (XMLHttpRequest)]
[windows-1255: windows-1255 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: iso-ir-148 (XMLHttpRequest)]
[windows-1258: x-cp1258 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1254: csisolatin5 (XMLHttpRequest)]
[windows-1255: x-cp1255 (XMLHttpRequest)]
expected: TIMEOUT

[windows-1255: windows-1255 (XMLHttpRequest)]
[windows-1258: windows-1258 (XMLHttpRequest)]
expected: TIMEOUT

[x-mac-cyrillic: x-mac-cyrillic (XMLHttpRequest)]
expected: TIMEOUT


Expand Down
9 changes: 0 additions & 9 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -312,18 +312,9 @@
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

[<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 */*;charset=gbk]
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'NosniFF']
expected: FAIL

This file was deleted.

@@ -1,4 +1,5 @@
[track-cue-rendering-empty-cue.html]
expected: TIMEOUT
[Empty cues]
expected: FAIL

This file was deleted.

Expand Up @@ -12,6 +12,3 @@
[Verifies the resolution of entry.startTime is at least 5 microseconds.]
expected: TIMEOUT

[Verifies the resolution of performance.now() is at least 5 microseconds.]
expected: FAIL

2 changes: 2 additions & 0 deletions tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini
@@ -0,0 +1,2 @@
[transition_calc_implicit.html]
expected: TIMEOUT
4 changes: 0 additions & 4 deletions tests/wpt/mozilla/meta/mozilla/paint_timing.html.ini

This file was deleted.

13 changes: 0 additions & 13 deletions tests/wpt/web-platform-tests/.azure-pipelines.yml
Expand Up @@ -211,16 +211,3 @@ jobs:
displayName: 'Publish results'
inputs:
artifactName: 'safari-preview-results'

# The InvokeRESTAPI task can only run in a server job.
- job: results_post
displayName: 'all tests (wpt.fyi hook)'
dependsOn: results_safari_preview
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: curl -s -S https://wpt.fyi/api/checks/azure/$(Build.BuildId)
displayName: 'Invoke wpt.fyi hook'
- script: curl -s -S https://staging.wpt.fyi/api/checks/azure/$(Build.BuildId)
displayName: 'Invoke staging.wpt.fyi hook'
condition: succeededOrFailed()
11 changes: 11 additions & 0 deletions tests/wpt/web-platform-tests/client-hints/resources/sec-ch-ua.py
@@ -0,0 +1,11 @@
def main(request, response):
ua = request.headers.get('sec-ch-ua', '')
response.headers.set("Content-Type", "text/html")
response.headers.set("Accept-CH", "UA")
response.headers.set("Accept-CH-Lifetime", "10")
response.content = '''
<script>
window.opener.postMessage({ header: "%s" }, "*");
</script>
Sec-CH-UA: %s
''' % (ua, ua)
16 changes: 16 additions & 0 deletions tests/wpt/web-platform-tests/client-hints/sec-ch-ua.http.html
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
promise_test(t => {
return new Promise((resolve, reject) => {
var w;
window.onmessage = e => {
assert_equals(e.data.header, "", "The `Sec-CH-UA` header is not delivered.");
w.close();
resolve();
};
w = window.open("./resources/sec-ch-ua.py");
});
}, "Open HTTP window: no `Sec-CH-UA` header.")
</script>
41 changes: 41 additions & 0 deletions tests/wpt/web-platform-tests/client-hints/sec-ch-ua.https.html
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<head>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
var minor = "";
promise_test(t => {
return new Promise((resolve, reject) => {
var w;
window.onmessage = e => {
try {
assert_not_equals(e.data.header, "", "The `Sec-CH-UA` header is delivered.");
minor = e.data.header;
} catch (ex) {
reject(ex);
}
w.close();
resolve();
};
w = window.open("./resources/sec-ch-ua.py");
});
}, "Open HTTPS window prior to opt-in: `Sec-CH-UA` header with minor version.")

promise_test(t => {
return new Promise((resolve, reject) => {
var w;
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.");
} catch (ex) {
reject(ex);
}
w.close();
resolve();
};
w = window.open("./resources/sec-ch-ua.py");
});
}, "Open HTTPS window post-opt-in: `Sec-CH-UA` header with minor version.")
</script>
</head>
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#collapsing-borders">
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#border-conflict-resolution-algorithm">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/606">
<link rel="match" href="subpixel-collapsed-borders-ref.html">
<meta name="flags" content="" />
<meta name="assert" content="When collapsed border tables have border widths larger than cells', the table border wins." />

<style>
table {
border: 5px solid green;
border-collapse: collapse;
}

td {
width: 50px;
height: 50px;
border: 4.95px solid red;
}
</style>

<p>There should be a square with a green border, not a red border.
</p>

<table>
<tr>
<td></td>
</tr>
</table>
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#collapsing-borders">
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#border-conflict-resolution-algorithm">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/606">
<link rel="match" href="subpixel-collapsed-borders-ref.html">
<meta name="flags" content="" />
<meta name="assert" content="When collapsed border tables have border widths larger than cells', the table border wins even when the cell border is merely 0.01 pixels narrower" />

<style>
table {
border: 5px solid green;
border-collapse: collapse;
}

td {
width: 50px;
height: 50px;
border: 4.99px solid red;
}
</style>

<p>There should be a square with a green border, not a red border.
</p>

<table>
<tr>
<td></td>
</tr>
</table>
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<style>
table {
border: 5.95px solid green;
border-collapse: collapse;
}

td {
width: 50px;
height: 50px;
border: 1px solid red;
}
</style>

<p>There should be a square with a green border, not a red border.
</p>

<table>
<tr>
<td></td>
</tr>
</table>
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#collapsing-borders">
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#border-conflict-resolution-algorithm">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/606">
<link rel="match" href="subpixel-collapsed-borders-003-ref.html">
<meta name="flags" content="" />
<meta name="assert" content="When collapsed border tables have border widths larger than cells', the table border wins even when the floored table border is the same size as the cell's." />

<style>
table {
border: 5.95px solid green;
border-collapse: collapse;
}

td {
width: 50px;
height: 50px;
border: 5px solid red;
}
</style>

<p>There should be a square with a green border, not a red border.
</p>

<table>
<tr>
<td></td>
</tr>
</table>
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<style>
table {
border: 5px solid green;
border-collapse: collapse;
}

td {
width: 50px;
height: 50px;
border: 1px solid red;
}
</style>

<p>There should be a square with a green border, not a red border.
</p>

<table>
<tr>
<td></td>
</tr>
</table>

0 comments on commit 7680aab

Please sign in to comment.