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

Side by Side Diff: LayoutTests/editing/selection/leak-document-with-selection-inside.html

Issue 23005006: Fix XMLHttpRequest leak document when send() is called multiple times. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: check readyState == 4 to comply with change made in r156212 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 <html> 1 <html>
2 <body> 2 <body>
3 <script id='targetHTML' type='text/html'> 3 <script id='targetHTML' type='text/html'>
4 <span id='t'></span> 4 <span id='t'></span>
5 </script> 5 </script>
6 <script id='targetJS' type='text/html'> 6 <script id='targetJS' type='text/html'>
7 var element = document.getElementById("t"); 7 var element = document.getElementById("t");
8 window.getSelection().setPosition(element, 0); 8 window.getSelection().setPosition(element, 0);
9 </script> 9 </script>
10 10
11 <script src="../../fast/js/resources/js-test-pre.js"></script> 11 <script src="../../fast/js/resources/js-test-pre.js"></script>
12 <script src="../../fast/dom/resources/leak-check.js"></script> 12 <script src="../../fast/js/resources/leak-check.js"></script>
13 <script> 13 <script>
14 description("This test asserts that document doesn't leak when a selecti on is created inside the document."); 14 description("This test asserts that document doesn't leak when a selecti on is created inside the document.");
15 15
16 var target = grabScriptText('targetHTML') + 16 var target = grabScriptText('targetHTML') +
17 '<script>'+grabScriptText('targetJS')+'<'+'/script>'; 17 '<script>'+grabScriptText('targetJS')+'<'+'/script>';
18 var tolerance = {'numberOfLiveDocuments': 0}; 18 var tolerance = {'numberOfLiveDocuments': 0};
19 19
20 doLeakTest(htmlToUrl(target), tolerance); 20 doLeakTest(htmlToUrl(target), tolerance);
21 </script> 21 </script>
22 <script src="../../fast/js/resources/js-test-post.js"></script> 22 <script src="../../fast/js/resources/js-test-post.js"></script>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/context-menu-leak-document.html ('k') | LayoutTests/fast/dom/NodeIterator/NodeIterator-leak-document.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698