mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
null ref fixed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user