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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.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/navigation-redirect-other-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-other-origin.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.html
similarity index 87%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-other-origin.html
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.html
index fbff9f620cb922fb7d3d5df6b2b647e3187b781e..c1441ba685a41ad3b567ef6df3e5838cdd26bb53 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-other-origin.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-other-origin.html
@@ -1,9 +1,9 @@
<!DOCTYPE html>
-<script src="../../resources/get-host-info.js?pipe=sub"></script>
-<script src="test-helpers.js"></script>
+<script src="get-host-info.sub.js"></script>
+<script src="test-helpers.sub.js"></script>
<script>
var host_info = get_host_info();
-var SCOPE = 'navigation-redirect-scope1.php';
+var SCOPE = 'navigation-redirect-scope1.py';
var SCRIPT = 'navigation-redirect-worker.js';
var registration;
@@ -30,7 +30,7 @@ var wait_for_worker_promise = navigator.serviceWorker.getRegistration(SCOPE)
function send_result(message_id, result) {
window.parent.postMessage(
{id: message_id, result: result},
- host_info['HTTP_ORIGIN']);
+ host_info['HTTPS_ORIGIN']);
}
function get_intercepted_urls(worker) {
@@ -44,7 +44,7 @@ function get_intercepted_urls(worker) {
window.addEventListener('message', on_message, false);
function on_message(e) {
- if (e.origin != host_info['HTTP_ORIGIN']) {
+ if (e.origin != host_info['HTTPS_ORIGIN']) {
console.error('invalid origin: ' + e.origin);
return;
}

Powered by Google App Engine
This is Rietveld 408576698