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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/push_messaging/interfaces.html

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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>Push API: Verifies that the right Push API interfaces get exposed.</t itle>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="../serviceworker/resources/test-helpers.js"></script>
8 </head>
9 <body>
10 <script>
11 // Tests that the expected Push API interfaces are being exposed on both
12 // the Service Worker and Document global scopes.
13 service_worker_test(
14 'resources/interfaces-worker.js',
15 'Exposure of interfaces in a Service Worker.');
16
17 test(function() {
18 assert_own_property(self, 'PushManager', 'PushManager needs to be expo sed as a global.');
19
20 assert_own_property(PushManager, 'supportedContentEncodings');
21
22 assert_own_property(PushManager.prototype, 'subscribe');
23 assert_own_property(PushManager.prototype, 'getSubscription');
24 assert_own_property(PushManager.prototype, 'permissionState');
25
26 }, 'PushManager should be exposed and have the expected interface in a Doc ument.');
27
28 test(function() {
29 assert_own_property(self, 'PushSubscription', 'PushSubscription needs to be exposed as a global.');
30
31 assert_own_property(PushSubscription.prototype, 'endpoint');
32
33 assert_own_property(PushSubscription.prototype, 'getKey');
34 assert_own_property(PushSubscription.prototype, 'unsubscribe');
35
36 }, 'PushSubscription should be exposed and have the expected interface in a Document.');
37 </script>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698