mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1345457 - Part 2: Assert upload.abort and upload.loadend events before abort, r=annevk
Per https://xhr.spec.whatwg.org/#request-error-steps xhr.upload.onabort fires before xhr.onabort
This commit is contained in:
parent
f0f1e72503
commit
4cab29da52
@ -1,5 +0,0 @@
|
||||
[open-during-abort-processing.htm]
|
||||
type: testharness
|
||||
[XMLHttpRequest: open() during abort processing - abort() called from onloadstart]
|
||||
expected: FAIL
|
||||
|
@ -38,7 +38,7 @@
|
||||
client.abort()
|
||||
assert_true(control_flag)
|
||||
assert_equals(client.readyState, 0)
|
||||
assert_xhr_event_order_matches([1, "loadstart(0,0,false)", 4, "abort(0,0,false)", "loadend(0,0,false)"])
|
||||
assert_xhr_event_order_matches([1, "loadstart(0,0,false)", 4, "upload.abort(0,0,false)", "upload.loadend(0,0,false)", "abort(0,0,false)", "loadend(0,0,false)"])
|
||||
test.done()
|
||||
})
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user