| OLD | NEW |
| 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 Loading... |
| 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. |
| OLD | NEW |