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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-mixed-content-iframe.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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/imported/wpt/service-workers/service-worker/resources/fetch-mixed-content-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-mixed-content-iframe.html
similarity index 86%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-mixed-content-iframe.html
index d6c600fc7d830cdb1e5522706216010965ac36f8..961fd2ab6993b558d3a519a73fecc8dedfe6ded4 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-mixed-content-iframe.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
-<script src="../../resources/get-host-info.js?pipe=sub"></script>
-<script src="test-helpers.js"></script>
+<script src="../resources/get-host-info.sub.js"></script>
+<script src="test-helpers.sub.js?pipe=sub"></script>
<script>
var params = get_query_params(location.href);
var SCOPE = 'fetch-mixed-content-iframe-inscope-to-' + params['target'] + '.html';
@@ -29,7 +29,7 @@ navigator.serviceWorker.getRegistration(SCOPE)
})
.catch(function(reason) {
window.parent.postMessage({results: 'FAILURE: ' + reason.message},
- host_info['HTTP_ORIGIN']);
+ host_info['HTTPS_ORIGIN']);
});
function on_state_change(event) {
@@ -47,11 +47,11 @@ function on_message(e) {
return registration.unregister();
})
.then(function() {
- window.parent.postMessage(e.data, host_info['HTTP_ORIGIN']);
+ window.parent.postMessage(e.data, host_info['HTTPS_ORIGIN']);
})
.catch(function(reason) {
window.parent.postMessage({results: 'FAILURE: ' + reason.message},
- host_info['HTTP_ORIGIN']);
+ host_info['HTTPS_ORIGIN']);
});
}

Powered by Google App Engine
This is Rietveld 408576698