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

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: 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..e7218edf1591b6083c667f9153af04d0f86ae2cf 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
@@ -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) {
Marijn Kruisselbrink 2017/05/05 23:59:00 random thought: it seems like this test could be c
mike3 2017/05/08 18:41:40 I've been working on an extension to the "multiglo
Marijn Kruisselbrink 2017/05/08 19:05:13 Agreed, landing as is is fine. Adding a done callb
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