mirror of
https://github.com/servo/servo.git
synced 2025-10-14 23:40:26 +01:00
Update web-platform-tests to revision b'4435c35d9085ed2be61e64d0093b8e1b0e7a877b'
This commit is contained in:
parent
901b76297d
commit
4031d79cea
383 changed files with 8858 additions and 2734 deletions
|
@ -5,17 +5,17 @@ const {ORIGIN} = get_host_info();
|
|||
|
||||
promise_test_parallel(async t => {
|
||||
const parent = document.createElement("iframe");
|
||||
parent.anonymous = true;
|
||||
parent.credentialless = true;
|
||||
document.body.appendChild(parent);
|
||||
parent.src = ORIGIN + "/common/blank.html";
|
||||
// Wait for navigation to complete.
|
||||
await new Promise(resolve => parent.onload = resolve);
|
||||
assert_true(parent.anonymous);
|
||||
assert_true(parent.credentialless);
|
||||
|
||||
const child = document.createElement("iframe");
|
||||
parent.contentDocument.body.appendChild(child);
|
||||
assert_false(child.anonymous);
|
||||
assert_true(child.contentWindow.anonymouslyFramed);
|
||||
assert_false(child.credentialless);
|
||||
assert_true(child.contentWindow.credentialless);
|
||||
}, "Initial empty document inherits from parent's document.");
|
||||
|
||||
promise_test_parallel(async t => {
|
||||
|
@ -24,11 +24,11 @@ promise_test_parallel(async t => {
|
|||
parent.src = ORIGIN + "/common/blank.html";
|
||||
// Wait for navigation to complete.
|
||||
await new Promise(resolve => parent.onload = resolve);
|
||||
assert_false(parent.anonymous);
|
||||
assert_false(parent.credentialless);
|
||||
|
||||
const child = document.createElement("iframe");
|
||||
child.anonymous = true;
|
||||
child.credentialless = true;
|
||||
parent.contentDocument.body.appendChild(child);
|
||||
assert_true(child.anonymous);
|
||||
assert_true(child.contentWindow.anonymouslyFramed);
|
||||
}, "Initial empty document inherits from its's iframe's anonymous attribute.");
|
||||
assert_true(child.credentialless);
|
||||
assert_true(child.contentWindow.credentialless);
|
||||
}, "Initial empty document inherits from its's iframe's credentialless attribute.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue