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

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

Issue 22909013: Notification should not leak document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test expectation Created 7 years, 4 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-document.html
diff --git a/LayoutTests/fast/events/event-sender-context-click-leak-document.html b/LayoutTests/fast/notifications/notifications-leak-document.html
similarity index 56%
copy from LayoutTests/fast/events/event-sender-context-click-leak-document.html
copy to LayoutTests/fast/notifications/notifications-leak-document.html
index dc7eba37a01e2204de96ab23a74828706e5bd4fd..6b8c0126fb81f7110fa11b350859a6a923ff36f9 100644
--- a/LayoutTests/fast/events/event-sender-context-click-leak-document.html
+++ b/LayoutTests/fast/notifications/notifications-leak-document.html
@@ -1,16 +1,13 @@
+<!DOCTYPE html>
<html>
<body>
- <script id='targetJS' type='text/html'>
- eventSender.contextClick();
- </script>
-
<script src="../js/resources/js-test-pre.js"></script>
<script src="../dom/resources/leak-check.js"></script>
<script>
- var target = '<script>'+grabScriptText('targetJS')+'<'+'/script>';
+ testRunner.grantWebNotificationPermission("file://");
var tolerance = {'numberOfLiveDocuments': 0};
- doLeakTest(htmlToUrl(target), tolerance);
+ doLeakTest('./resources/notification-show.html', tolerance);
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/notifications/notifications-leak-document-expected.txt » ('j') | Source/web/WebNotification.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698