From 680e8c8cff7b716657592a1d13b8af696abc81ca Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 31 Oct 2014 09:56:17 -0700 Subject: [PATCH] [Tests] Change desired XHR response type Don't request json as an XHR response type, as this is not supported by Phantom for command line test execution. Part of ongoing intitial repository and build setup for WTD-519. --- test.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test.html b/test.html index 3329237b4f..53a94583bf 100644 --- a/test.html +++ b/test.html @@ -48,10 +48,9 @@ function loadJSON(file, callback) { var xhr = new XMLHttpRequest(); xhr.open("GET", file); - xhr.responseType = "json"; xhr.onreadystatechange = function () { if (xhr.readyState === 4) { // DONE - callback(xhr.response); + callback(JSON.parse(xhr.response)); } } xhr.send();