Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html |
| diff --git a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..55750ca1617a063bdd506a43d8358b72eac606f4 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/unregister-controlling-worker-iframe.html |
| @@ -0,0 +1,16 @@ |
| +<!DOCTYPE html> |
| +<script> |
| +function fetch_url(url) { |
|
falken
2015/02/05 12:07:57
Hopefully we can remove this.
nhiroki
2015/02/06 03:49:29
Removed this file, yay!
|
| + return new Promise(function(resolve, reject) { |
| + var request = new XMLHttpRequest(); |
| + request.addEventListener('load', function(event) { |
| + if (request.status == 200) |
| + resolve(request.response); |
| + else |
| + reject(Error(request.statusText)); |
| + }); |
| + request.open('GET', url); |
| + request.send(); |
| + }); |
| +} |
| +</script> |