blob: 8509b92199d1b159273390d2295c47e280de2b4f [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
const wait_for_message = () => {
return new Promise((resolve, reject) => {
window.addEventListener('message', e => {
resolve(e);
}, { once: true });
});
};
promise_test(async function(t) {
let url_from = "resources/navigate-skip-disk-cache.html";
var w = window.open(url_from);
let message = await wait_for_message();
assert_equals(message.data, 'prefetch');
w.close();
}, 'Verify that navigating to a main resource can skip disk cache.');
</script>