summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/xmlhttprequest
diff options
context:
space:
mode:
authortyoshino@chromium.org <tyoshino@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2013-08-30 06:06:06 +0000
committertyoshino@chromium.org <tyoshino@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2013-08-30 06:06:06 +0000
commit8ecf526795b8724b654a991e26a68c90aada6f5a (patch)
tree201865d6af61a1882c82bb9945be14dcb37f97ed /third_party/WebKit/LayoutTests/fast/xmlhttprequest
parentf05cef7ff87182e2d8e1dcc2d6c3f4c70664f04a (diff)
downloadchromium_src-8ecf526795b8724b654a991e26a68c90aada6f5a.zip
chromium_src-8ecf526795b8724b654a991e26a68c90aada6f5a.tar.gz
chromium_src-8ecf526795b8724b654a991e26a68c90aada6f5a.tar.bz2
Update xmlhttprequest-set-responsetype.html to check json responseType
BUG=119256 Review URL: https://chromiumcodereview.appspot.com/23445015 git-svn-id: svn://svn.chromium.org/blink/trunk@156961 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/xmlhttprequest')
-rw-r--r--third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype-expected.txt1
-rw-r--r--third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype-expected.txt b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype-expected.txt
index 90b03dd..acd6dca 100644
--- a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype-expected.txt
@@ -6,6 +6,7 @@ PASS xhr.responseType is ""
PASS xhr.responseType is "arraybuffer"
PASS xhr.responseType is "blob"
PASS xhr.responseType is "document"
+PASS xhr.responseType is "json"
PASS xhr.responseType is "text"
PASS xhr.responseType = "dkjdfkjdfkj" did not throw exception.
PASS xhr.responseType = "text"; xhr.responseType = "asdfasdfasd"; xhr.responseType is "text"
diff --git a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype.html b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype.html
index 53aa0d5..c832ea9 100644
--- a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype.html
+++ b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-set-responsetype.html
@@ -10,7 +10,7 @@ var xhr = new XMLHttpRequest();
xhr.open('GET', 'resources/plist.app', true);
// Setting valid type does change the responseType value.
-["", "arraybuffer", "blob", "document", "text"].forEach(function(type) {
+["", "arraybuffer", "blob", "document", "json", "text"].forEach(function(type) {
xhr.responseType = type;
shouldBeEqualToString('xhr.responseType', type);
});