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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-xhr.https.html

Issue 2862353002: Upstream service worker `fetch` tests to WPT (Closed)
Patch Set: Rebase and resolve conflict in 'expectations' file 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
Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-xhr.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-xhr.https.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-xhr.https.html
index 87af410999402721b1310ad1f54a75a85403600f..3f24946c8ccd76618bf0d1a76b59126a506a5a9b 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-xhr.https.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-xhr.https.html
@@ -3,7 +3,7 @@
<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?pipe=sub"></script>
+<script src="resources/test-helpers.sub.js"></script>
<script>
async_test(function(t) {
var SCOPE = 'resources/fetch-request-xhr-iframe.https.html';
@@ -15,13 +15,17 @@ async_test(function(t) {
})
.then(function() { return with_iframe(SCOPE); })
.then(function(frame) {
+ t.add_cleanup(function() { frame.remove(); });
var channel = new MessageChannel();
channel.port1.onmessage = t.step_func(function(e) {
if (e.data.results === 'finish') {
- frame.remove();
service_worker_unregister_and_done(t, SCOPE);
} else if (e.data.results == 'equals') {
assert_equals(e.data.got, e.data.expected);
+ } else if (e.data.results == 'array_equals') {
+ assert_array_equals(e.data.got, e.data.expected, e.data.msg);
+ } else if (e.data.results == 'failure') {
+ throw e.data.error;
}
});
frame.contentWindow.postMessage({},

Powered by Google App Engine
This is Rietveld 408576698