Update web-platform-tests to revision 4dbc8a0d7b1b1c032aaddc2579ec7239ad565127

This commit is contained in:
WPT Sync Bot 2018-12-30 20:35:43 -05:00 committed by Josh Matthews
parent 40f1e188d0
commit d1e28c482e
329 changed files with 5366 additions and 1699 deletions

View file

@ -0,0 +1,3 @@
<script>
setTimeout(parent.timerTest, 10);
</script>

View file

@ -0,0 +1,18 @@
async_test(t => {
const frame = document.body.appendChild(document.createElement("iframe"));
t.add_cleanup(() => frame.remove());
const frameURL = new URL("resources/url-entry-document-timer-frame.html", document.URL).href;
window.timerTest = t.step_func_done(() => {
assert_equals(frame.contentDocument.URL, frameURL);
assert_equals(frame.contentWindow.location.href, frameURL);
// In this case, the entry settings object was set when this function is
// executed in the timer task through Web IDL's "invoke a callback
// function" algorithm, to be the relevant settings object of this
// function. Therefore the URL of this document would be inherited.
assert_equals(frame.contentDocument.open(), frame.contentDocument);
assert_equals(frame.contentDocument.URL, document.URL);
assert_equals(frame.contentWindow.location.href, document.URL);
});
frame.src = frameURL;
}, "document.open() changes document's URL to the entry settings object's responsible document's (through timeouts)");