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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/iso-latin1-header.https.html

Issue 2878683002: Upstream service worker header test 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/iso-latin1-header-iframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/iso-latin1-header.https.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/iso-latin1-header.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/iso-latin1-header.https.html
similarity index 76%
rename from third_party/WebKit/LayoutTests/http/tests/serviceworker/iso-latin1-header.html
rename to third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/iso-latin1-header.https.html
index 938fbd394cc51c5aa46e44caaec94550a5cb44e0..ad0ab59c7756e7d9d08efb0353628045651a590c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/iso-latin1-header.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/iso-latin1-header.https.html
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<title>Service Worker: respondWith with header value containing an ISO Latin 1 (ISO-8859-1 Character Set) string</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="/common/get-host-info.sub.js"></script>
+<script src="resources/test-helpers.sub.js"></script>
<script>
async_test(function(t) {
var SCOPE = 'resources/iso-latin1-header-iframe.html';
@@ -16,16 +16,17 @@ async_test(function(t) {
.then(function() { return with_iframe(SCOPE); })
.then(function(frame) {
var channel = new MessageChannel();
+ t.add_cleanup(function() {
+ frame.remove();
+ });
channel.port1.onmessage = t.step_func(function(e) {
assert_equals(e.data.results, 'finish');
- frame.remove();
service_worker_unregister_and_done(t, SCOPE);
});
frame.contentWindow.postMessage({},
- host_info['HTTP_ORIGIN'],
+ host_info['HTTPS_ORIGIN'],
[channel.port2]);
})
.catch(unreached_rejection(t));
}, 'Verify the response of FetchEvent using XMLHttpRequest');
-
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/iso-latin1-header-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698