Skip to content

Commit

Permalink
Update web-platform-tests to revision c2e5b9fbaa17424f05ca2bb04609790…
Browse files Browse the repository at this point in the history
…a3b61d5c2
  • Loading branch information
servo-wpt-sync authored and jdm committed Mar 20, 2019
1 parent db7bb2a commit f2c1b70
Show file tree
Hide file tree
Showing 138 changed files with 2,798 additions and 850 deletions.
635 changes: 471 additions & 164 deletions tests/wpt/metadata/MANIFEST.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions tests/wpt/metadata/css/CSS2/css1/c5510-padn-000.xht.ini

This file was deleted.

2 changes: 0 additions & 2 deletions tests/wpt/metadata/css/CSS2/text/white-space-003.xht.ini

This file was deleted.

This file was deleted.

@@ -1,4 +1,3 @@
[white-space-processing-040.xht]
expected:
if os == "linux": FAIL
if not debug and (os == "mac") and (version == "OS X 10.11.6") and (processor == "x86_64") and (bits == 64): FAIL
Expand Up @@ -44,15 +44,9 @@
[Matching font-weight: '501' should prefer '503 520' over '500']
expected: FAIL

[Matching font-weight: '501' should prefer '500' over '450 460']
expected: FAIL

[Matching font-weight: '501' should prefer '450 460' over '390 410']
expected: FAIL

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

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

Expand Down Expand Up @@ -305,9 +299,6 @@
[Matching font-style: 'oblique 21deg' should prefer 'oblique 40deg 50deg' over 'oblique 20deg']
expected: FAIL

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

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

Expand Down
@@ -1,7 +1,4 @@
[font-weight-matching.html]
[Test @font-face matching for weight 400]
expected: FAIL

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

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

[height end]
expected: FAIL

[border-top-width end]
expected: FAIL

[border-left-width end]
expected: FAIL

[border-bottom-width end]
expected: FAIL

[border-right-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

Expand Up @@ -3,6 +3,3 @@
[Navigating from the initial about:blank must not replace window.customElements]
expected: FAIL

[document.open() must replace window.customElements]
expected: FAIL

Expand Up @@ -6,9 +6,3 @@
[HTML parser must use the registry of window.document in a document created by document.implementation.createHTMLDocument()]
expected: FAIL

[document.write() must not instantiate a custom element without a defined insertion point]
expected: FAIL

[document.writeln() must not instantiate a custom element without a defined insertion point]
expected: FAIL

3 changes: 3 additions & 0 deletions tests/wpt/metadata/domparsing/interfaces.any.js.ini
Expand Up @@ -38,6 +38,9 @@
[XMLSerializer interface: new XMLSerializer() must inherit property "serializeToString(Node)" with the proper type]
expected: FAIL

[ShadowRoot interface: attribute innerHTML]
expected: FAIL


[interfaces.any.worker.html]
[interfaces]
Expand Down
@@ -0,0 +1,5 @@
[javascript-url-abort-return-value-undefined.tentative.html]
expected: TIMEOUT
[Not aborting fetch for javascript:undefined navigation]
expected: TIMEOUT

@@ -0,0 +1,4 @@
[navigation-unload-same-origin-fragment.html]
[Tests that a fragment navigation in the unload handler will not block the initial navigation]
expected: FAIL

@@ -1,4 +1,4 @@
[traverse_the_history_5.html]
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

This file was deleted.

Expand Up @@ -3,6 +3,3 @@
[Navigating from the initial about:blank must not replace window.location]
expected: FAIL

[document.open() must replace window.location]
expected: FAIL

This file was deleted.

@@ -0,0 +1,7 @@
[BarProp.window.html]
[BarProp objects of an auxiliary Window]
expected: FAIL

[BarBrop objects of a nested Window]
expected: FAIL

@@ -0,0 +1,2 @@
[table-border-3q.html]
expected: FAIL
@@ -0,0 +1,2 @@
[table-border-3s.html]
expected: FAIL
@@ -0,0 +1,10 @@
[non-active-document.html]
[DOMParser]
expected: FAIL

[createHTMLDocument]
expected: FAIL

[<template>]
expected: FAIL

@@ -0,0 +1,7 @@
[toggleEvent.html]
[Calling open twice on 'details' fires only one toggle event]
expected: FAIL

[Setting open=true to opened 'details' element should not fire a toggle event at the 'details' element]
expected: FAIL

This file was deleted.

@@ -0,0 +1,4 @@
[load-event-after-location-set-during-write.window.html]
[Setting location from document.write() call should not trigger load event until that load completes]
expected: FAIL

@@ -0,0 +1,5 @@
[child-document-raf-order.html]
expected: TIMEOUT
[Ordering of steps in "Update the Rendering" - child document requestAnimationFrame order]
expected: TIMEOUT

@@ -0,0 +1,5 @@
[TAO-case-insensitive-null-opaque-origin.sub.html]
expected: TIMEOUT
[Test case-insensitive null TAO value with opaque origins]
expected: NOTRUN

@@ -0,0 +1,5 @@
[TAO-null-opaque-origin.sub.html]
expected: TIMEOUT
[Test null TAO value with opaque origins]
expected: NOTRUN

Expand Up @@ -23,6 +23,9 @@
[No imports]
expected: FAIL

[Synchronous options handling]
expected: FAIL


[instantiateStreaming.any.serviceworker.html]
[instantiateStreaming]
Expand Down Expand Up @@ -59,3 +62,6 @@
[No imports]
expected: FAIL

[Synchronous options handling]
expected: FAIL

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

Expand Down
@@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

4 changes: 2 additions & 2 deletions tests/wpt/web-platform-tests/.azure-pipelines.yml
Expand Up @@ -183,7 +183,7 @@ jobs:
- template: tools/ci/azure/install_certs.yml
- template: tools/ci/azure/update_hosts.yml
- template: tools/ci/azure/update_manifest.yml
- script: python ./wpt run --no-manifest-update --no-fail-on-unexpected --install-fonts --test-types reftest testharness --this-chunk $(System.JobPositionInPhase) --total-chunks $(System.TotalJobsInPhase) --chunk-type hash --log-tbpl - --log-tbpl-level info --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json --log-wptscreenshot $(Build.ArtifactStagingDirectory)/wpt_screenshot_$(System.JobPositionInPhase).txt edge_webdriver
- script: python ./wpt run --no-manifest-update --no-fail-on-unexpected --install-fonts --test-types reftest testharness --this-chunk $(System.JobPositionInPhase) --total-chunks $(System.TotalJobsInPhase) --chunk-type hash --log-tbpl - --log-tbpl-level info --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json edge_webdriver
displayName: 'Run tests'
- task: PublishBuildArtifacts@1
displayName: 'Publish results'
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
- template: tools/ci/azure/install_safari.yml
- template: tools/ci/azure/update_hosts.yml
- template: tools/ci/azure/update_manifest.yml
- script: no_proxy='*' ./wpt run --no-manifest-update --no-restart-on-unexpected --no-fail-on-unexpected --this-chunk=$(System.JobPositionInPhase) --total-chunks=$(System.TotalJobsInPhase) --chunk-type hash --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json --log-wptscreenshot $(Build.ArtifactStagingDirectory)/wpt_screenshot_$(System.JobPositionInPhase).txt --channel preview safari
- script: no_proxy='*' ./wpt run --no-manifest-update --no-restart-on-unexpected --no-fail-on-unexpected --this-chunk=$(System.JobPositionInPhase) --total-chunks=$(System.TotalJobsInPhase) --chunk-type hash --log-wptreport $(Build.ArtifactStagingDirectory)/wpt_report_$(System.JobPositionInPhase).json --channel preview safari
displayName: 'Run tests'
- task: PublishBuildArtifacts@1
displayName: 'Publish results'
Expand Down
Expand Up @@ -9,14 +9,28 @@
<script>
const crossOriginImageUrl = "http://{{domains[www1]}}:{{ports[http][0]}}/images/red.png";

function assert_origin_unclean(bitmap) {
function assert_origin_unclean_getImageData(bitmap) {
const context = document.createElement("canvas").getContext("2d");
context.drawImage(bitmap, 0, 0);
assert_throws("SecurityError", () => {
context.getImageData(0, 0, 1, 1);
});
}

function assert_origin_unclean_drawImage(bitmap) {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
ctx.drawImage(bitmap, 0, 0);
assert_throws('SecurityError', () => canvas.toDataURL());
}

function assert_origin_unclean_transferFromImageBitmap(bitmap) {
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('bitmaprenderer');
ctx.transferFromImageBitmap(bitmap);
assert_throws('SecurityError', () => canvas.toDataURL());
}

function makeImage() {
return new Promise((resolve, reject) => {
const image = new Image();
Expand Down Expand Up @@ -104,7 +118,13 @@

for (let { name, factory } of arguments) {
promise_test(function() {
return factory().then(createImageBitmap).then(assert_origin_unclean);
}, name);
return factory().then(createImageBitmap).then(assert_origin_unclean_getImageData);
}, `${name}: origin unclear getImageData`);
promise_test(function() {
return factory().then(createImageBitmap).then(assert_origin_unclean_drawImage);
}, `${name}: origin unclear 2dContext.drawImage`);
promise_test(function() {
return factory().then(createImageBitmap).then(assert_origin_unclean_transferFromImageBitmap);
}, `${name}: origin unclear bitmaprenderer.transferFromImageBitmap`);
}
</script>
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>Reference for WorkletAnimation name should accept non-ASCII characters</title>
<style>
.box {
width: 100px;
height: 100px;
background-color: green;
}
</style>

<div style="transform: translateX(50px);" class="box"></div>
<div style="transform: translateX(150px);" class="box"></div>
@@ -0,0 +1,59 @@
<html class="reftest-wait">
<title>WorkletAnimation name should accept non-ASCII characters</title>
<link rel="help" href="https://drafts.css-houdini.org/css-animationworklet/">
<meta name="assert" content="Worklet Animation name should accept non-ASCII characters">
<link rel="match" href="worklet-animation-with-non-ascii-name-ref.html">

<script src="/web-animations/testcommon.js"></script>
<script src="/common/reftest-wait.js"></script>
<script src="common.js"></script>

<style>
.box {
width: 100px;
height: 100px;
background-color: green;
}
</style>

<div id="t0" class="box"></div>
<div id="t1" class="box"></div>
<script id="visual_update" type="text/worklet">
registerAnimator('bob', class {
animate(currentTime, effect) {
effect.localTime = 250;
}
});
registerAnimator('東京', class {
animate(currentTime, effect) {
effect.localTime = 750;
}
});
</script>
<script>
runInAnimationWorklet(
document.getElementById('visual_update').textContent
).then(() => {
const keyframes = [
{transform: 'translateX(0)' },
{transform: 'translateX(200px)' }
];
const options = {
duration: 1000
};
const $t0 = document.getElementById('t0');
const $t0_effect = new KeyframeEffect($t0, keyframes, options);
const $t0_animation = new WorkletAnimation('bob', $t0_effect);

const $t1 = document.getElementById('t1');
const $t1_effect = new KeyframeEffect($t1, keyframes, options);
const $t1_animation = new WorkletAnimation('東京', $t1_effect);

$t0_animation.play();
$t1_animation.play();

waitForAsyncAnimationFrames(1).then(_ => {
takeScreenshot();
});
});
</script>
6 changes: 2 additions & 4 deletions tests/wpt/web-platform-tests/common/object-association.js
Expand Up @@ -41,9 +41,7 @@ window.testIsPerWindow = propertyName => {
iframe.src = "/common/blank.html";
}, `Navigating from the initial about:blank must not replace window.${propertyName}`);

// Note: document.open()'s spec doesn't match most browsers; see https://github.com/whatwg/html/issues/1698.
// However, as explained in https://github.com/whatwg/html/issues/1698#issuecomment-298748641, even an updated spec
// will probably still reset Window-associated properties.
// Per spec, document.open() should not change any of the Window state.
async_test(t => {
const iframe = document.createElement("iframe");

Expand All @@ -55,7 +53,7 @@ window.testIsPerWindow = propertyName => {
frame.document.open();

const after = frame[propertyName];
assert_not_equals(after, before);
assert_equals(after, before);

frame.document.close();
});
Expand Down
Expand Up @@ -1625,7 +1625,7 @@
"html/elements/picture/object-srcset-novalid.html": "Attribute \u201csrcset\u201d not allowed on element \u201cobject\u201d at this point.",
"html/elements/picture/parent-dl-novalid.html": "Element \u201cpicture\u201d not allowed as child of element \u201cdl\u201d in this context. (Suppressing further errors from this subtree.)",
"html/elements/picture/parent-hgroup-novalid.html": "Element \u201cpicture\u201d not allowed as child of element \u201chgroup\u201d in this context. (Suppressing further errors from this subtree.)",
"html/elements/picture/parent-noscript-in-head-novalid.html": "Bad start tag in \u201cpicture\u201d in \u201chead\u201d.",
"html/elements/picture/parent-noscript-in-head-novalid.html": "Bad start tag in \u201cpicture\u201d in \u201cnoscript\u201d in \u201chead\u201d.",
"html/elements/picture/parent-ul-novalid.html": "Element \u201cpicture\u201d not allowed as child of element \u201cul\u201d in this context. (Suppressing further errors from this subtree.)",
"html/elements/picture/picture-align-novalid.html": "Attribute \u201calign\u201d not allowed on element \u201cpicture\u201d at this point.",
"html/elements/picture/picture-alt-novalid.html": "Attribute \u201calt\u201d not allowed on element \u201cpicture\u201d at this point.",
Expand Down

0 comments on commit f2c1b70

Please sign in to comment.