https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 47f602be931303a15098090d5181dedb1a5a49c2 authored by James Graham on 05 April 2017, 17:46:54 UTC
Fix merge conflicts in wdspec tests
Tip revision: 47f602b
abort-during-open.js
var test = async_test()
test.step(function() {
  var client = new XMLHttpRequest()
  client.open("GET", "...")
  client.onreadystatechange = function() {
    test.step(function() {
      assert_unreached()
    })
  }
  assert_equals(client.readyState, 1, "before abort()")
  client.abort()
  assert_equals(client.readyState, 1, "after abort()")
})
test.done()
back to top