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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt

Issue 20560007: On request error, always fire events on the XMLHttpRequestUpload before the XMLHttpRequest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest /resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not a llowed by Access-Control-Allow-Origin. 1 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest /resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not a llowed by Access-Control-Allow-Origin.
2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest /resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not a llowed by Access-Control-Allow-Origin. 2 CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8000/xmlhttprequest /resources/cross-site-progress-events.cgi. Origin http://127.0.0.1:8000 is not a llowed by Access-Control-Allow-Origin.
3 Test that upload progress events are not dispatched for simple cross-origin requ ests (i.e. if the listener is set after calling send(), and there are no other r easons to make a preflight request). 3 Test that upload progress events are not dispatched for simple cross-origin requ ests (i.e. if the listener is set after calling send(), and there are no other r easons to make a preflight request).
4 4
5 Test 1: The URL is allowed for cross-origin requests 5 Test 1: The URL is allowed for cross-origin requests
6 onprogress 6 onprogress
7 onload 7 onload
8 Response length: 8388608 8 Response length: 8388608
9 9
10 Test 2: The URL is not allowed for cross-origin requests 10 Test 2: The URL is not allowed for cross-origin requests
11 onerror (expected) 11 onerror (expected)
12 Response length: 0 12 Response length: 0
13 13
14 Test 3: The URL is not allowed for cross-origin requests and at least one upload event is listened for before doing the send. 14 Test 3: The URL is not allowed for cross-origin requests and at least one upload event is listened for before doing the send.
15 upload.onloadstart 15 upload.onloadstart
16 upload.onerror (expected)
16 onerror (expected) 17 onerror (expected)
17 Response length: 0 18 Response length: 0
18 upload.onerror (expected)
19 19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698