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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/extendable-message-event.html

Issue 2751113005: Upstream service worker message event tests to WPT (Closed)
Patch Set: Incorporate review feedback Created 3 years, 9 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/extendable-message-event.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/extendable-message-event.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/extendable-message-event.html
deleted file mode 100644
index 600b0d6de66c752c6a77b0892e77c4e0dc54f927..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/extendable-message-event.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<title>ServiceWorkerGlobalScope: ExtendableMessageEvent</title>
-<script src='../../resources/testharness.js'></script>
-<script src='../../resources/testharnessreport.js'></script>
-<script src='../resources/test-helpers.js'></script>
-<script>
-
-// This test should be in chromium/ because the spec does not define behavior in
-// the case where postMessage() is called from a detached client.
falken 2017/03/21 14:42:56 I'm wondering why this file can be deleted given t
mike3 2017/03/21 17:15:29 It most certainly can *not* be deleted. This was m
-promise_test(function(t) {
- var script = 'resources/empty-worker.js';
- var scope = 'resources/scope/extendable-message-event-from-detached';
-
- return service_worker_unregister_and_register(t, script, scope)
- .then(function(registration) {
- add_completion_callback(function() { registration.unregister(); });
- return wait_for_state(t, registration.installing, 'activated');
- })
- .then(function() { return with_iframe(scope); })
- .then(function(frame) {
- var worker = frame.contentWindow.navigator.serviceWorker.controller;
- frame.remove();
- assert_throws(
- { name: 'InvalidStateError' },
- function() { worker.postMessage(''); },
- 'postMessage on a detached client should throw an exception.');
- });
- }, 'Post an extendable message from a detached client');
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698