| OLD | NEW |
| 1 // include fast/js/resources/js-test-pre.js before this file. | 1 // include fast/js/resources/js-test-pre.js before this file. |
| 2 | 2 |
| 3 function doLeakTest(src, tolerance) { | 3 function doLeakTest(src, tolerance) { |
| 4 function getCounterValues() { | 4 function getCounterValues() { |
| 5 testRunner.resetTestHelperControllers(); | 5 testRunner.resetTestHelperControllers(); |
| 6 gc(); | 6 gc(); |
| 7 return {'numberOfLiveDocuments': window.internals.numberOfLiveDocuments(
)}; | 7 return {'numberOfLiveDocuments': window.internals.numberOfLiveDocuments(
)}; |
| 8 } | 8 } |
| 9 | 9 |
| 10 var frame = document.createElement('iframe'); | 10 var frame = document.createElement('iframe'); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 function htmlToUrl(html) { | 61 function htmlToUrl(html) { |
| 62 return 'data:text/html;charset=utf-8,' + html; | 62 return 'data:text/html;charset=utf-8,' + html; |
| 63 } | 63 } |
| 64 | 64 |
| 65 function grabScriptText(id) { | 65 function grabScriptText(id) { |
| 66 return document.getElementById(id).innerText; | 66 return document.getElementById(id).innerText; |
| 67 } | 67 } |
| 68 | 68 |
| 69 // include fast/js/resources/js-test-post.js after this file. | 69 // include fast/js/resources/js-test-post.js after this file. |
| OLD | NEW |