| 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>
|
|
|