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

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

Issue 367063002: Push API: set mock behavior from layout tests and exercise success. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Split tests. Created 6 years, 6 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
new file mode 100644
index 0000000000000000000000000000000000000000..8c495b05def5524716e5de5a8646c42832685b2d
--- /dev/null
+++ b/LayoutTests/push_messaging/push-messaging-api-surface.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description('Tests the Push API surface.');
+
+shouldBeTrue('!!navigator.push');
+shouldBeTrue('!!navigator.push.register');
+shouldBe('navigator.push.register("senderId").constructor', 'Promise');
+</script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/push_messaging/push-messaging.html ('k') | LayoutTests/push_messaging/push-messaging-api-surface-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698