blob: 12701ca085aa4a43f46b1266ed66f990b7f1d04a [file] [log] [blame]
<html>
<head>
<script src="resources/sw-test-pre.js"></script>
</head>
<body>
<script>
navigator.serviceWorker.register("resources/worker-fails-to-start-worker.js", { }).then(function(registration) {
log("FAIL: Should have rejected the promise");
finishSWTest();
}, function(e) {
log("PASS: Rejected the promise as expected with message: " + e);
finishSWTest();
});
</script>
</body>
</html>