Created
July 29, 2016 08:13
-
-
Save jeffgca/95ee542ed836a32787df74ade37d0a58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let req = new XMLHttpRequest(); | |
req.open('GET', data.url('testLocalXhr.json')); | |
req.addEventListener("abort", function() { | |
done(); | |
}); | |
req.timeout = 4000; | |
req.ontimeout = function () { alert("Timed out!!!"); } | |
req.send(null); | |
var abortReq = function() { | |
req.abort(); | |
} | |
var | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment