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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-response-xhr-iframe.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/resources/fetch-response-xhr-iframe.https.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-iframe.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-response-xhr-iframe.https.html
similarity index 73%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-iframe.html
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-response-xhr-iframe.https.html
index b0aa582a3b98f468126dbec886d494fd9fe76bdf..3391381e38af1cf3ed969fcfa4741a78fb3ab5a7 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-iframe.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-response-xhr-iframe.https.html
@@ -1,6 +1,7 @@
-<script src="../../resources/testharness.js"></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 host_info = get_host_info();
function xhr_send(method, data) {
return new Promise(function(resolve, reject) {
@@ -20,7 +21,8 @@ function xhr_send(method, data) {
function coalesce_headers_test() {
return xhr_send('POST', 'test string')
.then(function(xhr) {
- assert_equals(xhr.getResponseHeader('foo'), 'foo, bar');
+ window.parent.postMessage({results: xhr.getResponseHeader('foo')},
+ host_info['HTTPS_ORIGIN']);
});
}

Powered by Google App Engine
This is Rietveld 408576698