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

Unified 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, 10 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
Index: LayoutTests/fast/notifications/notification-after-close.html
diff --git a/LayoutTests/fast/notifications/notification-after-close.html b/LayoutTests/fast/notifications/notification-after-close.html
new file mode 100644
index 0000000000000000000000000000000000000000..367ef4a4fb7f7d1ea680ee4f476b1a26627c57eb
--- /dev/null
+++ b/LayoutTests/fast/notifications/notification-after-close.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script type="text/javascript">
+ function log(message)
+ {
+ document.getElementById("result").innerHTML += message + "<br>";
+ }
+
+ function runTests()
+ {
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ testRunner.setCanOpenWindows();
+ }
+
+ win = window.open('about:blank');
+ if (win.webkitNotifications === undefined) {
+ log("PASS");
+ } else {
+ notificationCenter=win.webkitNotifications;
+ win.close();
+ try {
+ n=notificationCenter.createNotification('');
+ } catch (e) {}
+ // Just make sure we don't crash.
+ log("PASS");
+ }
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+ </script>
+</head>
+<body>
+<div id="result"></div>
+
+<script type="text/javascript">
+runTests();
+</script>
+
+</body>
+</html>
« 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