Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync WPT with upstream (15-03-2019) #23046

Closed
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Large diffs are not rendered by default.

This file was deleted.

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
@@ -6,6 +6,3 @@
[Instant scrolling while doing history navigation.]
expected: FAIL

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

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

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

@@ -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]
@@ -312,3 +312,9 @@
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

@@ -0,0 +1,4 @@
[javascript-url-abort-return-value-string.tentative.html]
[Aborting fetch for javascript:string navigation]
expected: FAIL

@@ -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 @@
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

This file was deleted.

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

@@ -1,5 +1,5 @@
[name-attribute.window.html]
expected: CRASH
expected: TIMEOUT
[cross-origin <frame name=>]
expected: TIMEOUT

@@ -0,0 +1,2 @@
[table-border-3q.html]
expected: FAIL
@@ -0,0 +1,2 @@
[table-border-3s.html]
expected: FAIL
@@ -1,6 +1,6 @@
[iframe_sandbox_popups_nonescaping-1.html]
type: testharness
expected: TIMEOUT
expected: CRASH
[Check that popups from a sandboxed iframe do not escape the sandbox]
expected: NOTRUN

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

@@ -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,4 @@
[iframe_005.html]
[document.write external script into iframe write back into parent]
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

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

[Synchronous options handling]
expected: FAIL


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

[Synchronous options handling]
expected: FAIL

@@ -1,5 +1,6 @@
[003.html]
type: testharness
expected: ERROR
[shared]
expected: FAIL

@@ -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'
@@ -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'
@@ -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();
@@ -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>
@@ -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");

@@ -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();
});
@@ -4,9 +4,11 @@
<title>CSS Reftest Reference</title>
<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"/>
<style type="text/css">
body {
color: navy;
}
div {
width: 138px;
color: orange;
font-size: 10px;
line-height: 1;
}
@@ -43,7 +43,7 @@
</style>
</head>
<body>
<p>Test passes if there are two black squares on the page.</p>
<p>Test passes if there are 2 filled black squares.</p>
<div id="test">XX XX</div>
<div id="reference"><div id="div1"></div><div id="div2"></div><div id="div3"></div></div>
</body>
@@ -9,6 +9,7 @@
{
font-family: monospace;
font-size: 10pt;
margin: 0;
}
div
{
@@ -12,6 +12,7 @@
{
font-family: monospace;
font-size: 10pt;
margin: 0;
}
div
{
@@ -16,12 +16,12 @@
#div1
{
white-space: pre-wrap;
margin-left: -1em;
}
#div2
{
background: black;
height: 1em;
margin-left: 1em;
width: 1em;
}
</style>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.