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

Unified Diff: LayoutTests/fast/notifications/notifications-multi-events.html-disabled

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/notifications-multi-events.html-disabled
diff --git a/LayoutTests/fast/notifications/notifications-multi-events.html-disabled b/LayoutTests/fast/notifications/notifications-multi-events.html-disabled
new file mode 100644
index 0000000000000000000000000000000000000000..7244828ffcff71a9e1c0e63d51d9b9e31d003ebb
--- /dev/null
+++ b/LayoutTests/fast/notifications/notifications-multi-events.html-disabled
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script type="text/javascript">
+ function log(message)
+ {
+ document.getElementById("result").innerHTML += message + "<br>";
+ }
+
+ function runTests()
+ {
+ if (window.testRunner) {
+ testRunner.grantWebNotificationPermission("file://");
+ testRunner.dumpAsText();
+ }
+
+ if (!window.webkitNotifications) {
+ log("FAIL: No webkitNotifications interface!");
+ }
+
+ var N = window.webkitNotifications.createNotification("http://localhost/my_icon.png", "New E-mail", "Meet me tonight at 8!");
+ N.addEventListener("close", function() { log("PASS: addEventListener(close) callback #1 invoked"); });
+ N.onclose = function() { log("PASS: onclose attribute event callback invoked."); }
+ N.addEventListener("close", function() { log("PASS: addEventListener(close) capture callback #1 invoked"); }, true );
+ N.addEventListener("close", function() { log("PASS: addEventListener(close) capture callback #2 invoked"); }, true );
+ N.addEventListener("close", function() { log("PASS: addEventListener(close) callback #3 invoked"); });
+ N.show();
+ N.cancel();
+ }
+ </script>
+</head>
+<body>
+<p>Sending notifications with permission...</p>
+<div id="result"></div>
+
+<script type="text/javascript">
+runTests();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698