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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/push_messaging/pushmanager-supported-content-encodings.html

Issue 2863443002: Implement and ship PushManager.supportedContentEncodings (Closed)
Patch Set: Implement and ship PushManager.supportedContentEncodings 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
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>Push API: Verifies the supported content encodings in PushManager.</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 Content-Encoding values are indicated by the
12 // PushManager.supportedContentEncodings property.
13 test(function() {
14 assert_own_property(window, 'PushManager', 'PushManager needs to be expo sed as a global.');
15 assert_own_property(PushManager, 'supportedContentEncodings');
16
17 assert_equals(PushManager.supportedContentEncodings, PushManager.support edContentEncodings);
18 assert_true(Array.isArray(PushManager.supportedContentEncodings));
19
20 // TODO(crbug.com/679789): The `aes128gcm` Content-Encoding must be supp orted as well.
21 assert_equals(PushManager.supportedContentEncodings.length, 1);
22 assert_equals(PushManager.supportedContentEncodings[0], 'aesgcm');
23 });
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698