mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
JS: Test for XhrIo
This commit is contained in:
@@ -49,6 +49,7 @@ test_ClientRequest
|
||||
| tst.js:144:5:144:28 | got(url ... true }) |
|
||||
| tst.js:145:5:145:19 | got.stream(url) |
|
||||
| tst.js:149:5:149:23 | superagent.get(url) |
|
||||
| tst.js:158:5:158:17 | xhr.send(url) |
|
||||
test_getADataNode
|
||||
| tst.js:53:5:53:23 | axios({data: data}) | tst.js:53:18:53:21 | data |
|
||||
| tst.js:57:5:57:39 | axios.p ... data2}) | tst.js:57:19:57:23 | data1 |
|
||||
@@ -138,6 +139,7 @@ test_getUrl
|
||||
| tst.js:144:5:144:28 | got(url ... true }) | tst.js:144:9:144:11 | url |
|
||||
| tst.js:145:5:145:19 | got.stream(url) | tst.js:145:16:145:18 | url |
|
||||
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:20:149:22 | url |
|
||||
| tst.js:158:5:158:17 | xhr.send(url) | tst.js:158:14:158:16 | url |
|
||||
test_getAResponseDataNode
|
||||
| tst.js:19:5:19:23 | requestPromise(url) | tst.js:19:5:19:23 | requestPromise(url) | text | true |
|
||||
| tst.js:21:5:21:23 | superagent.get(url) | tst.js:21:5:21:23 | superagent.get(url) | stream | true |
|
||||
@@ -181,3 +183,4 @@ test_getAResponseDataNode
|
||||
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:5:149:23 | superagent.get(url) | stream | true |
|
||||
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:30:149:32 | err | error | false |
|
||||
| tst.js:149:5:149:23 | superagent.get(url) | tst.js:149:35:149:37 | res | stream | false |
|
||||
| tst.js:158:5:158:17 | xhr.send(url) | tst.js:160:9:160:29 | xhr.get ... eJson() | json | false |
|
||||
|
||||
@@ -150,4 +150,13 @@ import {ClientRequest, net} from 'electron';
|
||||
err;
|
||||
res;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
(function() {
|
||||
let XhrIo = goog.require('goog.net.XhrIo');
|
||||
let xhr = new XhrIo();
|
||||
xhr.send(url);
|
||||
xhr.addEventListener('readystatechange', function() {
|
||||
xhr.getResponseJson();
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user