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

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: update testexp 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
« no previous file with comments | « no previous file | LayoutTests/fast/notifications/notifications-leak-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fc144dd4e236508450a0ead273a6ae7aefe39646..d524a7f1ba950eb9685a93555805e5d6bd627edf 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="../js/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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698