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> |