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

Unified Diff: LayoutTests/fast/notifications/notifications-cancel-request-permission.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/notifications-cancel-request-permission.html
diff --git a/LayoutTests/fast/notifications/notifications-cancel-request-permission.html b/LayoutTests/fast/notifications/notifications-cancel-request-permission.html
new file mode 100644
index 0000000000000000000000000000000000000000..1dee427e1bca322387bb9c83b23cdb637f7843eb
--- /dev/null
+++ b/LayoutTests/fast/notifications/notifications-cancel-request-permission.html
@@ -0,0 +1,44 @@
+<html>
+<head>
+ <script type="text/javascript">
+
+ // Timeout is to ensure that the iframe was removed.
+ setTimeout(isDone,500);
+
+ function log(message)
+ {
+ document.getElementById("result").innerHTML += message + "<br>";
+ }
+
+ function runTests()
+ {
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ if (!window.webkitNotifications) {
+ log("FAIL: No webkitNotifications interface!");
+ }
+
+ document.getElementById("test").innerHTML="Pass if notification is cancelled";
+ }
+
+ function isDone()
+ {
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }
+
+ </script>
+</head>
+<body onload="runTests();">
+ <p>Requesting and cancelling notification permission...</p>
+
+<div id="result"></div>
+<div id="test">
+<iframe src="resources/notifications-cancel-request-permission.html" width=800 height=800></iframe>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698