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

Unified Diff: LayoutTests/fast/notifications/notifications-leak-documents.html

Issue 186713002: Add new layout tests for the Web Notification API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update existing tests 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-leak-documents.html
diff --git a/LayoutTests/fast/notifications/notifications-leak-documents.html b/LayoutTests/fast/notifications/notifications-leak-documents.html
new file mode 100644
index 0000000000000000000000000000000000000000..3faffedd3507183ec81afd3e6f91fc6d9989ce10
--- /dev/null
+++ b/LayoutTests/fast/notifications/notifications-leak-documents.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script src="../../resources/js-test.js"></script>
+ <script src="../../resources/leak-check.js"></script>
+ </head>
+ <body>
+ <p>
+ Tests that creating and then closing a notification will not keep a document
+ alive. This test cannot be ran manually.
+ </p>
+ <div id="console"></div>
+ <script>
+ if (!window.testRunner) {
+ testFailed("This test depends on the test runner to run a leak test.");
+ } else {
+ testRunner.grantWebNotificationPermission("file://", true);
+ var tolerance = {
+ "numberOfLiveDocuments": 0
+ };
+
+ doLeakTest("resources/show-notification.html", tolerance);
+ }
+ </script>
+ </body>
+</body>

Powered by Google App Engine
This is Rietveld 408576698