Skip to content
Permalink
Browse files

Update web-platform-tests to revision 3efff9b2d66aed3d8e2061205069883…

…fd54df2be
  • Loading branch information...
servo-wpt-sync committed Apr 13, 2019
1 parent 9832fed commit f80ff24202d32bd757af7ec1ed8bcfb2715f48af
Showing with 1,026 additions and 868 deletions.
  1. +67 −278 tests/wpt/metadata/MANIFEST.json
  2. +0 −21 tests/wpt/metadata/css/css-fonts/variations/at-font-face-font-matching.html.ini
  3. +1 −1 tests/wpt/metadata/encoding/single-byte-decoder.html.ini
  4. +4 −0 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini
  5. +0 −4 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_4.html.ini
  6. +1 −0 tests/wpt/metadata/html/browsers/the-window-object/closed-attribute.window.js.ini
  7. +4 −0 tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/document-write/iframe_005.html.ini
  8. +114 −0 tests/wpt/metadata/wasm/jsapi/global/value-get-set.any.js.ini
  9. +0 −1 .../metadata/webaudio/the-audio-api/the-analysernode-interface/realtimeanalyser-fft-scaling.html.ini
  10. +2 −0 tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini
  11. +59 −13 tests/wpt/web-platform-tests/common/security-features/resources/common.js
  12. +2 −1 tests/wpt/web-platform-tests/css/css-flexbox/flex-vertical-align-effect.html
  13. +61 −0 tests/wpt/web-platform-tests/css/css-tables/border-spacing-included-in-sizes-001.tentative.html
  14. +2 −0 tests/wpt/web-platform-tests/docs/_writing-tests/testharness.md
  15. +38 −0 tests/wpt/web-platform-tests/element-timing/background-image-data-uri.html
  16. +36 −0 tests/wpt/web-platform-tests/element-timing/image-data-uri.html
  17. +13 −0 tests/wpt/web-platform-tests/element-timing/resources/element-timing-helpers.js
  18. +0 −5 tests/wpt/web-platform-tests/mixed-content/generic/mixed-content-test-case.js
  19. +15 −2 tests/wpt/web-platform-tests/portals/portals-adopt-predecessor.html
  20. +18 −7 tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor-portal.html
  21. +17 −12 tests/wpt/web-platform-tests/portals/resources/portals-adopt-predecessor.html
  22. +0 −7 tests/wpt/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.js
  23. +69 −25 tests/wpt/web-platform-tests/tools/manifest/download.py
  24. +28 −4 tests/wpt/web-platform-tests/tools/manifest/vcs.py
  25. +2 −1 tests/wpt/web-platform-tests/tools/wpt/commands.json
  26. +3 −0 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/browsers/firefox.py
  27. +1 −1 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptmanifest/backends/conditional.py
  28. +1 −1 tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptmanifest/backends/static.py
  29. +0 −6 tests/wpt/web-platform-tests/upgrade-insecure-requests/support/testharness-helper.sub.js
  30. +1 −2 tests/wpt/web-platform-tests/wasm/jsapi/constructor/compile.any.js
  31. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any.js
  32. +1 −2 tests/wpt/web-platform-tests/wasm/jsapi/constructor/instantiate.any.js
  33. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/constructor/validate.any.js
  34. +25 −0 tests/wpt/web-platform-tests/wasm/jsapi/global/value-get-set.any.js
  35. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any.js
  36. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/instance/constructor.any.js
  37. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/instance/exports.any.js
  38. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/instance/toString.any.js
  39. +1 −1 tests/wpt/web-platform-tests/wasm/jsapi/instanceTestFactory.js
  40. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/module/constructor.any.js
  41. +3 −4 tests/wpt/web-platform-tests/wasm/jsapi/module/customSections.any.js
  42. +1 −2 tests/wpt/web-platform-tests/wasm/jsapi/module/exports.any.js
  43. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/module/imports.any.js
  44. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js
  45. +0 −1 tests/wpt/web-platform-tests/wasm/jsapi/table/get-set.any.js
  46. +0 −384 tests/wpt/web-platform-tests/wasm/jsapi/wasm-constants.js
  47. +436 −69 tests/wpt/web-platform-tests/wasm/jsapi/wasm-module-builder.js
  48. +0 −1 tests/wpt/web-platform-tests/wasm/webapi/body.any.js
  49. +0 −1 tests/wpt/web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.js
  50. +0 −1 tests/wpt/web-platform-tests/wasm/webapi/instantiateStreaming.any.js
  51. +0 −1 tests/wpt/web-platform-tests/wasm/webapi/invalid-code.any.js

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -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

@@ -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

@@ -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

@@ -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

@@ -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

@@ -32,7 +32,7 @@


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

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

This file was deleted.

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

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

@@ -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)]
@@ -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

@@ -0,0 +1,2 @@
[transition_calc_implicit.html]
expected: TIMEOUT
@@ -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
@@ -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) {
@@ -11,6 +11,7 @@
<style type="text/css">
#container {
display:flex;
align-items:flex-start;
}
input{
margin:0;padding:0;vertical-align:middle;
@@ -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>
Oops, something went wrong.

0 comments on commit f80ff24

Please sign in to comment.
You can’t perform that action at this time.