blob: 0a7f44460e6fb578cbb67ddbb5cf58911ebe55d4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="resources/sw-test-pre.js"></script>
<script>
logWindow = window;
if (window.opener)
logWindow = window.opener;
else if (window.parent)
logWindow = window.parent;
navigator.serviceWorker.addEventListener("message", function(event) {
if (event.data === "DONE") {
finishSWTest();
return;
}
logWindow.log(event.data);
});
navigator.serviceWorker.register("resources/Client-properties-worker.js", { }).then(function(registration) {
registration.installing.postMessage("TEST");
});
</script>
</body>
</html>