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

Side by Side Diff: LayoutTests/push_messaging/push-messaging-api-surface.html

Issue 658723003: Blink implementation of PushManager#hasPermission() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Upgrade the push-messaging-api-surface-actual layout test to include hasPermission Created 6 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('Tests the Push API surface.'); 8 description('Tests the Push API surface.');
9 9
10 shouldBeTrue('!!navigator.push'); 10 shouldBeTrue('!!navigator.push');
11 shouldBeTrue('!!navigator.push.register'); 11 shouldBeTrue('!!navigator.push.register');
12 shouldBe('navigator.push.register("senderId").constructor', 'Promise'); 12 shouldBe('navigator.push.register("senderId").constructor', 'Promise');
13 shouldBeTrue('!!navigator.push.hasPermission');
14 shouldBe('navigator.push.hasPermission().constructor', 'Promise');
15
13 </script> 16 </script>
14 </body> 17 </body>
15 </html> 18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698