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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/cross-site-denied-response-sync-2.html

Issue 24225002: Don't dispatch events when XHR is set to sync mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert change on network-preflight-options.html 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
OLDNEW
1 <body> 1 <body>
2 <pre id=preOnerror>FAIL: onerror was not called.</pre> 2 <pre id=preOnerror>FAIL: onerror was not called.</pre>
3 <pre id=console></pre> 3 <pre id=console></pre>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function log(message) 10 function log(message)
(...skipping 28 matching lines...) Expand all
39 checkResponse(); 39 checkResponse();
40 if (!hadError) 40 if (!hadError)
41 log("PASS"); 41 log("PASS");
42 if (window.testRunner) 42 if (window.testRunner)
43 testRunner.notifyDone() 43 testRunner.notifyDone()
44 }, 100); 44 }, 100);
45 } 45 }
46 46
47 var req = new XMLHttpRequest; 47 var req = new XMLHttpRequest;
48 req.open("GET", "http://localhost:8000/xmlhttprequest/resources/reply.xml", fals e); 48 req.open("GET", "http://localhost:8000/xmlhttprequest/resources/reply.xml", fals e);
49 req.onerror = stealResponse;
50 try { 49 try {
51 req.send(null); 50 req.send(null);
52 error("send did not raise an exception"); 51 error("send did not raise an exception");
53 } catch (ex) { 52 } catch (ex) {
53 stealResponse();
54 } 54 }
55 </script> 55 </script>
56 </body> 56 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698