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

Side by Side Diff: LayoutTests/fast/notifications/notifications-event-stop-propagation.html-disabled

Issue 184733002: Remove support for legacy WebKit Notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove tests which no longer apply Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript">
5 function log(message)
6 {
7 document.getElementById("result").innerHTML += message + "<br>";
8 }
9
10 function runTests()
11 {
12 if (window.testRunner) {
13 testRunner.grantWebNotificationPermission("file://");
14 testRunner.dumpAsText();
15 }
16
17 if (!window.webkitNotifications) {
18 log("FAIL: No webkitNotifications interface!");
19 }
20
21 var N = window.webkitNotifications.createNotification("http://localh ost/my_icon.png", "New E-mail", "Meet me tonight at 8!");
22 N.addEventListener("display", function(e) { log("PASS: addEventListe ner(display) non-capture callback invoked"); });
23 N.ondisplay = function(e) { log("PASS: ondisplay att ribute event callback invoked."); }
24 N.addEventListener("display", function(e) { log("PASS: addEventListe ner(display) capture callback invoked"); e.stopPropagation(); }, true );
25 N.show();
26 N.cancel();
27 }
28 </script>
29 </head>
30 <body>
31 <p>Sending notifications with permission...</p>
32 <div id="result"></div>
33
34 <script type="text/javascript">
35 runTests();
36 </script>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698