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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/reentrant-cancel.html

Issue 10765006: Merge 120845 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/reentrant-cancel-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 if (window.layoutTestController) 2 if (window.layoutTestController)
3 layoutTestController.dumpAsText(); 3 layoutTestController.dumpAsText();
4 4
5 function addElement() { 5 function addElement() {
6 document.documentElement.appendChild(document.createTextNode('X')); 6 document.documentElement.appendChild(document.createTextNode('X'));
7 } 7 }
8 document.addEventListener("DOMContentLoaded", addElement, false); 8 document.addEventListener("DOMContentLoaded", addElement, false);
9 window.onload = addElement; 9 window.onload = addElement;
10 10
11 var xhr = new XMLHttpRequest; 11 var xhr = new XMLHttpRequest;
12 function sendXHR() 12 function sendXHR()
13 { 13 {
14 xhr.open("GET", "", true); 14 xhr.open("GET", "", true);
15 xhr.send(); 15 xhr.send();
16 } 16 }
17 window.addEventListener("DOMSubtreeModified", sendXHR); 17 window.addEventListener("DOMSubtreeModified", sendXHR);
18 addElement(); 18 addElement();
19 </script> 19 </script>
20 This tests that when we re-entrantly create and cancel XHRs, we don't try to dis connect the same CachedResourceClient 20 This tests that when we re-entrantly create and cancel XHRs, we don't try to dis connect the same CachedResourceClient
21 multiple times from its CachedResource. We pass if we don't crash. 21 multiple times from its CachedResource. We pass if we don't crash.
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/reentrant-cancel-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698