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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-allowedState-expected.txt

Issue 478223002: XMLHttpRequest::overrideMimeType should throw InvalidStateError (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add tests Created 6 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
(Empty)
1 Testing overrideMimeType when readyState is 0
2 PASS xhr.overrideMimeType('text/asdf') did not throw exception.
3 PASS xhr.overrideMimeType('text/plain') did not throw exception.
4 Testing overrideMimeType when readyState is 1
5 PASS xhr.overrideMimeType('text/asdf') did not throw exception.
6 PASS xhr.overrideMimeType('text/plain') did not throw exception.
7 Testing overrideMimeType when readyState is 1
8 PASS xhr.overrideMimeType('text/asdf') did not throw exception.
9 PASS xhr.overrideMimeType('text/plain') did not throw exception.
10 Testing overrideMimeType when readyState is 2
11 PASS xhr.overrideMimeType('text/asdf') did not throw exception.
12 PASS xhr.overrideMimeType('text/plain') did not throw exception.
13 Testing overrideMimeType when readyState is 3
14 PASS xhr.overrideMimeType('text/asdf') threw exception InvalidStateError: Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MimeType cannot be overrode when the state is LOADING or DONE..
15 Testing overrideMimeType when readyState is 4
16 PASS xhr.overrideMimeType('text/asdf') threw exception InvalidStateError: Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MimeType cannot be overrode when the state is LOADING or DONE..
17 PASS successfullyParsed is true
18
19 TEST COMPLETE
20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698