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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js

Issue 2869793003: Remove the interface tests for Push Messaging (Closed)
Patch Set: rebase 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/push_messaging/interfaces.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js b/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js
deleted file mode 100644
index 916b0d5a34516355d6864b012b45c8e0a4204cea..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js
+++ /dev/null
@@ -1,46 +0,0 @@
-importScripts('/resources/testharness.js');
-
-test(function() {
- assert_own_property(self, 'PushEvent');
-
- var event = new PushEvent('PushEvent');
- assert_idl_attribute(event, 'data');
- assert_equals(event.type, 'PushEvent');
-
- // PushEvent should be extending ExtendableEvent.
- assert_inherits(event, 'waitUntil');
-
-}, 'PushEvent should be exposed and have the expected interface.');
-
-test(function() {
- assert_own_property(self, 'PushManager', 'PushManager needs to be exposed as a global.');
- assert_idl_attribute(registration, 'pushManager', 'PushManager needs to be exposed on the registration.');
-
- assert_own_property(PushManager, 'supportedContentEncodings');
-
- assert_inherits(registration.pushManager, 'subscribe');
- assert_inherits(registration.pushManager, 'getSubscription');
- assert_inherits(registration.pushManager, 'permissionState');
-
-}, 'PushManager should be exposed and have the expected interface.');
-
-test(function() {
- assert_own_property(self, 'PushMessageData', 'PushMessageData needs to be exposed as a global.');
-
- var pushMessageData = new PushEvent('PushEvent', { data: 'SomeData' }).data;
- assert_inherits(pushMessageData, 'arrayBuffer');
- assert_inherits(pushMessageData, 'blob');
- assert_inherits(pushMessageData, 'json');
- assert_inherits(pushMessageData, 'text');
-
-}, 'PushMessageData should be exposed and have the expected interface.');
-
-test(function() {
- assert_own_property(self, 'PushSubscription', 'PushSubscription needs to be exposed as a global.');
-
- assert_own_property(PushSubscription.prototype, 'endpoint');
-
- assert_own_property(PushSubscription.prototype, 'getKey');
- assert_own_property(PushSubscription.prototype, 'unsubscribe');
-
-}, 'PushSubscription should be exposed and have the expected interface.');
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/push_messaging/interfaces.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698