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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/invalid-header.https.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/invalid-header.https.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/invalid-header.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/invalid-header.https.html
similarity index 73%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/invalid-header.html
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/invalid-header.https.html
index 28f0db3e7298b09260beebc6d7e714d510abd142..794695264936291671e41d79096c0f0c4b1820f8 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/invalid-header.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/invalid-header.https.html
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<title>Service Worker: respondWith with header value containing a null byte</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="../resources/get-host-info.js?pipe=sub"></script>
-<script src="resources/test-helpers.js"></script>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/get-host-info.sub.js"></script>
+<script src="resources/test-helpers.sub.js?pipe=sub"></script>
<script>
async_test(function(t) {
- var SCOPE = 'resources/invalid-header-iframe.html';
+ var SCOPE = 'resources/invalid-header-iframe.https.html';
var SCRIPT = 'resources/invalid-header-worker.js';
var host_info = get_host_info();
service_worker_unregister_and_register(t, SCRIPT, SCOPE)
@@ -22,7 +22,7 @@ async_test(function(t) {
service_worker_unregister_and_done(t, SCOPE);
});
frame.contentWindow.postMessage({},
- host_info['HTTP_ORIGIN'],
+ host_info['HTTPS_ORIGIN'],
[channel.port2]);
})
.catch(unreached_rejection(t));

Powered by Google App Engine
This is Rietveld 408576698