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

Unified Diff: content/test/notifications/test.html

Issue 1050623003: Move the Notification browser tests down to //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Patch Set: Created 5 years, 9 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
« no previous file with comments | « content/test/notifications/service_worker.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/notifications/test.html
diff --git a/content/test/notifications/test.html b/content/test/notifications/test.html
new file mode 100644
index 0000000000000000000000000000000000000000..ed03b739f9623ae7168d845e157b59ea4774c868
--- /dev/null
+++ b/content/test/notifications/test.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Web Notification test-page</title>
+ </head>
+ <body>
+ <p>This page is used to power the NotificationBrowserTest suite.</p>
+ <script src="notification_test_utils.js"></script>
+ <script>
+ function DisplayPersistentNotification(title, options) {
+ options = options || { body: 'Hello, world!',
+ icon: 'icon.png' };
+
+ GetActivatedServiceWorker('service_worker.js',
+ location.pathname)
+ .then(function (registration) {
+ return registration.showNotification(title, options);
+ }).then(function () {
+ domAutomationController.send('ok');
+ }).catch(function (error) {
+ domAutomationController.send('' + error);
+ });
+ }
+ </script>
+ </body>
+</html>
« no previous file with comments | « content/test/notifications/service_worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698