Unreviewed, rolling out r221461.
[WebKit-https.git] / LayoutTests / http / tests / workers / service / resources / basic-register.js
1 function done()
2 {
3     finishSWTest();
4 }
5
6 navigator.serviceWorker.register("resources/empty-worker.js", { })
7 .then(function(r) {
8         console.log("Registered!");
9         done();
10 }, function(e) {
11         console.log("Registration failed with error: " + e);
12         done();
13 })
14 .catch(function(e) {
15         console.log("Exception registering: " + e);
16         done();
17 });