https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c7165af12bdde288af823edf36636cef25c6ead0 authored by Aryeh Gregor on 10 April 2016, 11:19:46 UTC
createElement now sets namespace from contentType
Tip revision: c7165af
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()
    })
  }
  client.abort()
  assert_equals(client.readyState, 0)
  assert_throws("InvalidStateError", function() { client.send("test") }, "calling send() after abort()")
})
test.done()
back to top