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

Unified 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: Created 6 years, 2 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
Index: LayoutTests/push_messaging/push-messaging-api-surface.html
diff --git a/LayoutTests/push_messaging/push-messaging-api-surface.html b/LayoutTests/push_messaging/push-messaging-api-surface.html
index 8c495b05def5524716e5de5a8646c42832685b2d..b97e6bedfb3c539188cac61827ca7a9620433dac 100644
--- a/LayoutTests/push_messaging/push-messaging-api-surface.html
+++ b/LayoutTests/push_messaging/push-messaging-api-surface.html
@@ -10,6 +10,9 @@ description('Tests the Push API surface.');
shouldBeTrue('!!navigator.push');
shouldBeTrue('!!navigator.push.register');
shouldBe('navigator.push.register("senderId").constructor', 'Promise');
+shouldBeTrue('!!navigator.push.hasPermission');
+shouldBe('navigator.push.hasPermission().constructor', 'Promise');
+
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698