Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/http-to-https-redirect-and-register-iframe.html

Issue 2911073002: Upstream service wrkr "HTTP to HTTPS" tests to WPT (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698