Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/http-to-https-redirect-and-register-iframe.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/http-to-https-redirect-and-register-iframe.html |
similarity index 52% |
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register.html |
copy to third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/http-to-https-redirect-and-register-iframe.html |
index e8713dd702cba62e48996581cd5734a83f7e9c71..8c48a18cee457469d1878c08a116f61367edb533 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/http-to-https-redirect-and-register-iframe.html |
@@ -1,20 +1,21 @@ |
<!doctype html> |
-<title>register</title> |
-<script src="test-helpers.js"></script> |
+<title>register, unregister, and report result to opener</title> |
<body> |
<script> |
+'use strict'; |
+ |
navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'}) |
.then( |
registration => { |
registration.unregister().then(() => { |
- window.parent.postMessage('OK', '*'); |
+ window.opener.postMessage('OK', '*'); |
}); |
}, |
error => { |
- window.parent.postMessage('FAIL: ' + error.name, '*'); |
+ window.opener.postMessage('FAIL: ' + error.name, '*'); |
}) |
.catch(error => { |
- window.parent.postMessage('ERROR: ' + error.name, '*'); |
+ window.opener.postMessage('ERROR: ' + error.name, '*'); |
}); |
</script> |
</body> |