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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-response-xhr.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/http/tests/serviceworker/chromium.fetch-response-xhr.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-response-xhr.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-response-xhr.html
similarity index 74%
rename from third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-response-xhr.html
rename to third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-response-xhr.html
index 76e5246c3ba6d42d6c9fd9232b0ff339bc9a3eeb..2d6df81c0bc5da4ea5711b104130110e7158883d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-response-xhr.html
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-response-xhr.html
@@ -1,4 +1,9 @@
<!DOCTYPE html>
+<!-- This test is prefixed with `chromium.` because the equivalent version
+ available in Web Platform Tests is known to cause timeout errors in the
+ Chromium automated build system. This version should be maintained only to
+ preserve test coverage until the corresponding version in Web Platform Tests
+ can be made to pass consistently. See https://crbug.com/658997 -->
<title>Service Worker: the response of FetchEvent using XMLHttpRequest</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
@@ -15,11 +20,14 @@ async_test(function(t) {
})
.then(function() { return with_iframe(SCOPE); })
.then(function(frame) {
+ t.add_cleanup(function() {
+ frame.remove();
+ service_worker_unregister_and_done(t, SCOPE);
+ });
var channel = new MessageChannel();
channel.port1.onmessage = t.step_func(function(e) {
assert_equals(e.data.results, 'finish');
- frame.remove();
- service_worker_unregister_and_done(t, SCOPE);
+ t.done();
});
frame.contentWindow.postMessage({},
host_info['HTTP_ORIGIN'],

Powered by Google App Engine
This is Rietveld 408576698