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

Side by Side Diff: LayoutTests/resources/leak-check.js

Issue 1202263005: Adding Internals.numberOfLiveAXObjects to test for leaking AXObjects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // include resources/js-test.js before this file. 1 // include resources/js-test.js before this file.
2 2
3 function getCounterValues(callback) { 3 function getCounterValues(callback) {
4 testRunner.resetTestHelperControllers(); 4 testRunner.resetTestHelperControllers();
5 asyncGC(function() { 5 asyncGC(function() {
6 var ret = {'numberOfLiveDocuments': window.internals.numberOfLiveDocumen ts()}; 6 var ret = {
7 'numberOfLiveDocuments': window.internals.numberOfLiveDocuments(),
8 'numberOfLiveAXObjects': window.internals.numberOfLiveAXObjects()
9 };
7 10
8 var refCountedInstances = JSON.parse(window.internals.dumpRefCountedInst anceCounts()); 11 var refCountedInstances = JSON.parse(window.internals.dumpRefCountedInst anceCounts());
9 for (typename in refCountedInstances) 12 for (typename in refCountedInstances)
10 ret['numberOfInstances-'+typename] = refCountedInstances[typename]; 13 ret['numberOfInstances-'+typename] = refCountedInstances[typename];
11 14
12 callback(ret); 15 callback(ret);
13 }); 16 });
14 17
15 } 18 }
16 19
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 77
75 function htmlToUrl(html) { 78 function htmlToUrl(html) {
76 return 'data:text/html;charset=utf-8,' + html; 79 return 'data:text/html;charset=utf-8,' + html;
77 } 80 }
78 81
79 function grabScriptText(id) { 82 function grabScriptText(id) {
80 return document.getElementById(id).innerText; 83 return document.getElementById(id).innerText;
81 } 84 }
82 85
83 // include fast/js/resources/js-test-post.js after this file. 86 // include fast/js/resources/js-test-post.js after this file.
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/AccessibilityScrollbar-leak-expected.txt ('k') | Source/modules/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698