Revision 0bc82390e885de152efc0d09ff518a310a41aaea authored by Ryosuke Niwa on 27 April 2016, 04:53:10 UTC, committed by Takayoshi Kochi on 27 April 2016, 04:53:10 UTC
Add tests for calling Document.prototype.adoptNode and importNode on a shadow root
1 parent 028d354
Raw File
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