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

Side by Side Diff: LayoutTests/fast/notifications/notifications-constructor-without-permission-dedicated-worker.html

Issue 624033003: [WIP] Move Web Notifications to a WebFrame-less code path (Blink). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: current state 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/worker-tools.js"></script>
5 </head> 6 </head>
6 <body> 7 <body>
7 <p> 8 <p>
8 Tests that notifications will not be displayed when no permission 9 Tests that notifications created in the dedicated worker context wil l
9 has been granted. The text "notification.onerror fired" should be 10 not be displayed when no permission has been granted. The text
10 displayed below. 11 "notification.onerror fired" should be displayed below.
11 </p> 12 </p>
12 <div id="console"></div> 13 <div id="console"></div>
13 <script src="resources/notification-display.js"></script>
14 <script> 14 <script>
15 if (window.testRunner) { 15 if (window.testRunner) {
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 testRunner.waitUntilDone(); 17 testRunner.waitUntilDone();
18 testRunner.clearWebNotificationPermissions(); 18 testRunner.clearWebNotificationPermissions();
19 } 19 }
20 20
21 runTest(); 21 startWorkerTest('resources/notification-display.js', 'dedicated');
22 </script> 22 </script>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698