
<div id="log"></div>

<script>
test(
    function(t) {
        assert_true("serviceWorker" in navigator,
                    "navigator.serviceWorker exists");
    },
    "Browser supports ServiceWorker");

promise_test(
    function() {
        // Since the service worker registration could be in an indeterminate
        // state (due to, for example, a previous test run failing), we start by
        // unregstering our service worker and then registering it again.
        var scope = "service-worker-scop