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

Unified Diff: chrome/test/data/notifications/android_test.html

Issue 960923004: Add two instrumentation tests for Web Notifications on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chrome/test/data/notifications/android_test.html
diff --git a/chrome/test/data/notifications/android_test.html b/chrome/test/data/notifications/android_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..08e707fcc057ee4713238c15bb19564370c318f2
--- /dev/null
+++ b/chrome/test/data/notifications/android_test.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Android Web Notifications Instrumentation test-page</title>
+ </head>
+ <body>
+ <!-- This page is used by the NotificationUIManagerTest instrumentation test
+ suite on Android. -->
+ <script src="notification_test_utils.js"></script>
+ <script>
+ function showNotification(title, options) {
+ GetActivatedServiceWorker('android_test_worker.js', location.pathname)
+ .then(function(registration) {
+ registration.showNotification(title, options);
+ });
+ }
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698