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

Side by Side Diff: LayoutTests/fast/notifications/notification-after-close.html

Issue 187323005: Revert of Remove support for legacy WebKit Notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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.dumpAsText();
14 testRunner.waitUntilDone();
15 testRunner.setCanOpenWindows();
16 }
17
18 win = window.open('about:blank');
19 if (win.webkitNotifications === undefined) {
20 log("PASS");
21 } else {
22 notificationCenter=win.webkitNotifications;
23 win.close();
24 try {
25 n=notificationCenter.createNotification('');
26 } catch (e) {}
27 // Just make sure we don't crash.
28 log("PASS");
29 }
30
31 if (window.testRunner)
32 testRunner.notifyDone();
33 }
34 </script>
35 </head>
36 <body>
37 <div id="result"></div>
38
39 <script type="text/javascript">
40 runTests();
41 </script>
42
43 </body>
44 </html>
OLDNEW
« no previous file with comments | « LayoutTests/StaleTestExpectations ('k') | LayoutTests/fast/notifications/notification-after-close-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698