Skip to content

Commit

Permalink
Update web-platform-tests to revision 3efff9b2d66aed3d8e2061205069883…
Browse files Browse the repository at this point in the history
…fd54df2be
  • Loading branch information
servo-wpt-sync committed Apr 13, 2019
1 parent 9832fed commit f80ff24
Show file tree
Hide file tree
Showing 51 changed files with 1,026 additions and 868 deletions.
345 changes: 67 additions & 278 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

Expand Up @@ -41,9 +41,6 @@
[Matching font-weight: '399' should prefer '400' over '450 460']
expected: FAIL

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

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

Expand All @@ -56,9 +53,6 @@
[Matching font-style: 'italic' should prefer 'oblique -60deg -30deg' over 'oblique -50deg -40deg']
expected: FAIL

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

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

Expand Down Expand Up @@ -158,9 +152,6 @@
[Matching font-weight: '430' should prefer '501 550' over '502 560']
expected: FAIL

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

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

Expand All @@ -179,9 +170,6 @@
[Matching font-style: 'oblique 10deg' should prefer 'oblique 10deg' over 'oblique 5deg']
expected: FAIL

[Matching font-weight: '500' should prefer '400' over '350 399']
expected: FAIL

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

Expand Down Expand Up @@ -239,24 +227,15 @@
[Matching font-style: 'oblique 10deg' should prefer 'italic' over 'oblique 0deg']
expected: FAIL

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

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

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

[Matching font-weight: '399' should prefer '500 501' over '502 510']
expected: FAIL

[Matching font-stretch: '100%' should prefer '100%' over '110% 120%']
expected: FAIL

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

[Matching font-weight: '399' should prefer '340 360' over '200 300']
expected: FAIL

Expand Down
2 changes: 1 addition & 1 deletion tests/wpt/metadata/encoding/single-byte-decoder.html.ini
Expand Up @@ -32,7 +32,7 @@


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

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

This file was deleted.

@@ -1,4 +1,5 @@
[closed-attribute.window.html]
expected: CRASH
[closed and cross-site nested browsing context]
expected: FAIL

Expand Down
@@ -0,0 +1,4 @@
[iframe_005.html]
[document.write external script into iframe write back into parent]
expected: FAIL

114 changes: 114 additions & 0 deletions tests/wpt/metadata/wasm/jsapi/global/value-get-set.any.js.ini
Expand Up @@ -101,6 +101,63 @@
[Immutable f32 (undefined)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (missing)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (undefined)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (zero)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (false)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (empty string)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (empty string)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (false)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (undefined)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (missing)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (null)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (zero)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (zero)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (undefined)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (false)]
expected: FAIL

[i64 with ToNumber side-effects]
expected: FAIL

[Immutable i32 with ToNumber side-effects (empty string)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (null)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (missing)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (null)]
expected: FAIL


[value-get-set.any.html]
[Mutable f64 (true on prototype)]
Expand Down Expand Up @@ -205,3 +262,60 @@
[Immutable f32 (undefined)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (missing)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (undefined)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (zero)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (false)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (empty string)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (empty string)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (false)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (undefined)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (missing)]
expected: FAIL

[Immutable i32 with ToNumber side-effects (null)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (zero)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (zero)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (undefined)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (false)]
expected: FAIL

[i64 with ToNumber side-effects]
expected: FAIL

[Immutable i32 with ToNumber side-effects (empty string)]
expected: FAIL

[Immutable f32 with ToNumber side-effects (null)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (missing)]
expected: FAIL

[Immutable f64 with ToNumber side-effects (null)]
expected: FAIL

@@ -1,5 +1,4 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

Expand Down
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
Expand Up @@ -192,17 +192,62 @@ function createHelperIframe(name, doBindEvents) {
doBindEvents);
}

/**
* requestVia*() functions return promises that are resolved on successful
* requests with objects of the same "type", i.e. objects that contains
* the same sets of keys that are fixed within one category of tests (e.g.
* within wpt/referrer-policy tests).
* wrapResult() (that should be defined outside this file) is used to convert
* the response bodies of subresources into the expected result objects in some
* cases, and in other cases the result objects are constructed more directly.
* TODO(https://crbug.com/906850): Clean up the semantics around this, e.g.
* use (or not use) wrapResult() consistently, unify the arguments, etc.
*/
function wrapResult(server_data) {
if (typeof(server_data) === "string") {
throw server_data;
}
return {
referrer: server_data.headers.referer,
headers: server_data.headers
}
}

// `requestVia*()` functions return promises that are resolved on successful
// requests with objects with the following keys:
// - `headers`: HTTP request headers sent to server.
// - `referrer`: Referrer.
// - `location`: The URL of the subresource.
//
// Category 1:
// `headers`: set.
// `referrer`: set via `document.referrer`.
// `location`: set via `document.location`.
// See `template/document.html.template`.
// Category 2:
// `headers`: set.
// `referrer`: set to `headers.referer` by `wrapResult()`.
// `location`: not set.
// Category 3:
// All the keys listed above are NOT set.
//
// -------------------------------- -------- --------------------------
// Function name Category Used in
// -------- ------- ---------
// referrer mixed- upgrade-
// policy content insecure-
// policy content request
// -------------------------------- -------- -------- ------- ---------
// requestViaAnchor 1 Y Y -
// requestViaArea 1 Y Y -
// requestViaAudio 3 - Y -
// requestViaDedicatedWorker 2 Y Y Y
// requestViaFetch 2 Y Y -
// requestViaForm 3 - Y -
// requestViaIframe 1 Y Y -
// requestViaImage 3 - Y -
// requestViaImageForReferrerPolicy 2 Y - -
// requestViaLinkPrefetch 3 - Y -
// requestViaLinkStylesheet 3 - Y -
// requestViaObject 3 - Y -
// requestViaPicture 3 - Y -
// requestViaScript 2 Y Y -
// requestViaSendBeacon 3 - Y -
// requestViaSharedWorker 2 Y - -
// requestViaVideo 3 - Y -
// requestViaWebSocket 3 - Y -
// requestViaWorklet 3 - Y Y
// requestViaXhr 2 Y Y -
// -------------------------------- -------- -------- ------- ---------

/**
* Creates a new iframe, binds load and error events, sets the src attribute and
Expand Down Expand Up @@ -383,8 +428,9 @@ function requestViaFetch(url) {
function dedicatedWorkerUrlThatFetches(url) {
return `data:text/javascript,
fetch('${url}')
.then(() => postMessage(''),
() => postMessage(''));`;
.then(r => r.json())
.then(j => postMessage(j))
.catch((e) => postMessage(e.message));`;
}

function workerUrlThatImports(url) {
Expand Down
Expand Up @@ -11,6 +11,7 @@
<style type="text/css">
#container {
display:flex;
align-items:flex-start;
}
input{
margin:0;padding:0;vertical-align:middle;
Expand All @@ -25,4 +26,4 @@

</div>
</body>
</html>
</html>
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/resources/check-layout-th.js'></script>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetheight">
<meta name="flags" content="" />
<meta name="assert" content="border-spacing occurring outside rows and sections is not included in their height and width" />

<style>
#theTable td {
width: 100px;
height: 100px;
background-color: green;
padding: 0px;
}

#theTable {
border-spacing: 10px;
}

.outline {
outline: 2px solid black;
}
</style>

<table id=theTable>
<tbody class="outline" data-expected-height=100>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
<tbody class="outline" data-expected-height=150>
<tr></tr>
<tr></tr>
<tr></tr>
<tr>
<td></td>
<td></td>
</tr>
<tr></tr>
<tr></tr>
</tbody>
<tbody class="outline" data-expected-height=100>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
<tfoot>
<tr style="outline: 2px dashed black" data-expected-width=210 data-expected-height=100>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
<script>
checkLayout('tbody');
checkLayout('tfoot tr');
</script>

0 comments on commit f80ff24

Please sign in to comment.