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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-respond-with-argument.html

Issue 2836233002: Upstream service worker `fetch` tests to WPT (Closed)
Patch Set: Extend "-expected.txt" file with reference to new sub-test Created 3 years, 8 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/fetch-event-respond-with-argument.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-respond-with-argument.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-respond-with-argument.html
deleted file mode 100644
index de61d9f073bc9560f9317e3b74701aee1af0edd7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-respond-with-argument.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<title>Service Worker: FetchEvent.respondWith() argument type test.</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="resources/test-helpers.js"></script>
-<script>
-var resolve_test_done;
-
-var test_done_promise = new Promise(function(resolve) {
- resolve_test_done = resolve;
- });
-
-// Called by the child frame.
-function notify_test_done(result) {
- resolve_test_done(result);
-}
-
-promise_test(function(t) {
- var scope = 'resources/fetch-event-respond-with-argument-iframe.html';
- var script = 'resources/fetch-event-respond-with-argument-worker.js';
- var frame;
-
- return service_worker_unregister_and_register(t, script, scope)
- .then(function(registration) {
- return wait_for_state(t, registration.installing, 'activated');
- })
- .then(function() {
- return with_iframe(scope);
- })
- .then(function(f) {
- frame = f;
- return test_done_promise;
- })
- .then(function(result) {
- frame.remove();
- assert_equals(result, 'PASS');
- return service_worker_unregister_and_done(t, scope);
- });
- }, 'respondWith() takes either a Response or a promise that resolves ' +
- 'with a Response. Other values should raise a network error.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698