null ref fixed

This commit is contained in:
Vladimir Enchev
2016-03-11 15:23:46 +02:00
parent 2c8d57deaf
commit 391f014232
2 changed files with 23 additions and 7 deletions

View File

@@ -110,6 +110,17 @@ export var test_XMLHttpRequest_headersSentAndReceivedProperly = function (done)
// </snippet>
};
export var test_XMLHttpRequest_setResponseTypeShouldNotThrow = function (done) {
try {
var xhr = new XMLHttpRequest();
(<any>xhr)._setResponseType();
done(null);
}
catch (err) {
done(err);
}
};
export var test_XMLHttpRequest_contentSentAndReceivedProperly = function (done) {
// <snippet module="xhr" title="xhr">
// ### Send/receive JSON