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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-sync-vs-async-assertion-failure.html

Issue 23702040: Send synchronous loads through the cache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 7 years, 3 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><head></head><body> 1 <html><head></head><body>
2 2
3 <p>You should see "PASS" once:</p> 3 <p>You should see "PASS" once:</p>
4 4
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 var xhr; 9 var xhr;
10 10
11 if (window.XMLHttpRequest) { 11 if (window.XMLHttpRequest) {
12 xhr = new XMLHttpRequest(); 12 xhr = new XMLHttpRequest();
13 } else { 13 } else {
14 try { 14 try {
15 xhr = new ActiveXObject("Msxml2.XMLHTTP"); 15 xhr = new ActiveXObject("Msxml2.XMLHTTP");
16 } catch (ex) { 16 } catch (ex) {
17 xhr = new ActiveXObject("Microsoft.XMLHTTP"); 17 xhr = new ActiveXObject("Microsoft.XMLHTTP");
18 } 18 }
19 } 19 }
20 20
21 xhr.open("GET", "resources/1251.html", false); 21 xhr.open("GET", "resources/1251.html", false);
22 xhr.onreadystatechange = function () { 22 xhr.onreadystatechange = function () {
23 try { 23 try {
24 xhr.open("GET", "resources/1251.html", true); 24 xhr.open("GET", "resources/1251.html?", true);
25 xhr.send(null); 25 xhr.send(null);
26 } catch (ex) { 26 } catch (ex) {
27 } 27 }
28 } 28 }
29 29
30 xhr.send(null); 30 xhr.send(null);
31 31
32 document.write("PASS"); 32 document.write("PASS");
33 33
34 </script> 34 </script>
35 35
36 </body></html> 36 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698