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

Unified Diff: LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback.html

Issue 23071004: AccessibilityController::reset() should reset all notification listener callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/accessibility/accessibility-controller-notificationlistener-leak-callback-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback.html
diff --git a/LayoutTests/accessibility/axobjectcache-leaks-node.html b/LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback.html
similarity index 54%
copy from LayoutTests/accessibility/axobjectcache-leaks-node.html
copy to LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback.html
index 9d7b581ff756578a9c638c9fd747b04ee9dd5ae3..ca2277197827db302b88d226d542ca7f2e04c94f 100644
--- a/LayoutTests/accessibility/axobjectcache-leaks-node.html
+++ b/LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback.html
@@ -1,22 +1,14 @@
<!DOCTYPE html>
<html>
<body>
- <script id='targetHTML' type='text/html'>
- <select id="menu">
- <option>abcd</option>
- <option>efgh</option>
- </select>
- </script>
<script id='targetJS' type='text/html'>
- document.getElementById('menu').focus();
- eventSender.keyDown('e');
+ accessibilityController.addNotificationListener(function() {});
</script>
<script src="../fast/js/resources/js-test-pre.js"></script>
<script src="../fast/js/resources/leak-check.js"></script>
<script>
- var target = grabScriptText('targetHTML')+
- '<script>'+grabScriptText('targetJS')+'<'+'/script>';
+ var target = '<script>'+grabScriptText('targetJS')+'<'+'/script>';
var tolerance = {'numberOfLiveDocuments': 0};
doLeakTest(htmlToUrl(target), tolerance);
« no previous file with comments | « no previous file | LayoutTests/accessibility/accessibility-controller-notificationlistener-leak-callback-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698