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

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

Issue 23180002: Revert 156078 "Fix XMLHttpRequest leak document when send() is c..." (Closed) Base URL: svn://svn.chromium.org/blink/
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698