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

Unified Diff: LayoutTests/http/tests/inspector/network-test.js

Issue 955413002: Log in Binding code for invalid enum type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/network-test.js
diff --git a/LayoutTests/http/tests/inspector/network-test.js b/LayoutTests/http/tests/inspector/network-test.js
index af435748973ba791ab329720e355ed714869d597..8b33d0a423de5ff0067d4ed6eda43067e1bc4af0 100644
--- a/LayoutTests/http/tests/inspector/network-test.js
+++ b/LayoutTests/http/tests/inspector/network-test.js
@@ -103,7 +103,10 @@ function makeSimpleXHRWithPayload(method, url, async, payload, callback)
function makeXHR(method, url, async, user, password, headers, withCredentials, payload, type, callback)
{
var xhr = new XMLHttpRequest();
- xhr.responseType = type;
+ if (type == undefined)
+ xhr.responseType = "";
+ else
+ xhr.responseType = type;
xhr.onreadystatechange = function()
{
if (xhr.readyState === XMLHttpRequest.DONE) {

Powered by Google App Engine
This is Rietveld 408576698