<html> | |
<head> | |
<script src="resources/sw-test-pre.js"></script> | |
</head> | |
<body> | |
<script> | |
navigator.serviceWorker.register("resources/basic-install-event-waitUntil-reject-worker.js", { }).then(function(registration) { | |
waitForState(registration.installing, "redundant").then(function() { | |
log("PASS: installing worker has become redundant"); | |
finishSWTest(); | |
}); | |
}, function() { | |
log("FAIL: Failed to register the service worker"); | |
finishSWTest(); | |
}); | |
</script> | |
</body> | |
</html> |