Update web-platform-tests to revision 4accec3d14ccdc7b170017c0df299b954019f06f

This commit is contained in:
WPT Sync Bot 2019-04-26 23:48:44 -04:00
parent 630cf2745b
commit b30b1992ac
50 changed files with 1015 additions and 760 deletions

View file

@ -44,7 +44,7 @@ function setup_refresh_test() {
}
function setup_back_navigation(pushed_url) {
function verify_document_navigate_not_observable() {
function verify_document_navigate_not_observable(navigated_back) {
let entries = performance.getEntriesByType("resource");
let found_first_document = false;
for (entry of entries) {
@ -57,16 +57,18 @@ function setup_back_navigation(pushed_url) {
}
}
if (!found_first_document) {
opener.postMessage("FAIL - first document not exposed", "*");
opener.postMessage("FAIL - first document not exposed. navigated_back is " + navigated_back, "*");
return;
}
opener.postMessage("PASS", "*");
if (navigated_back) {
opener.postMessage("PASS", "*");
}
}
window.addEventListener("message", e=>{
if (e.data == "navigated") {
verify_document_navigate_not_observable(sessionStorage.navigated);
if (sessionStorage.navigated) {
delete sessionStorage.navigated;
verify_document_navigate_not_observable();
} else {
sessionStorage.navigated = true;
setTimeout(() => {