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

Side by Side 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, 8 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 unified diff | Download patch
« no previous file with comments | « content/test/notifications/service_worker.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <title>Web Notification test-page</title>
6 </head>
7 <body>
8 <p>This page is used to power the NotificationBrowserTest suite.</p>
9 <script src="notification_test_utils.js"></script>
10 <script>
11 function DisplayPersistentNotification(title, options) {
12 options = options || { body: 'Hello, world!',
13 icon: 'icon.png' };
14
15 GetActivatedServiceWorker('service_worker.js',
16 location.pathname)
17 .then(function (registration) {
18 return registration.showNotification(title, options);
19 }).then(function () {
20 domAutomationController.send('ok');
21 }).catch(function (error) {
22 domAutomationController.send('' + error);
23 });
24 }
25 </script>
26 </body>
27 </html>
OLDNEW
« 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