blob: 3277cf0fa5e35b0bfc36981a90b87cdfb4c9a03b [file] [log] [blame]
<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>