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:
Shawn Huang 2017-06-30 10:48:36 -07:00
parent f0f1e72503
commit 4cab29da52
2 changed files with 1 additions and 6 deletions

View File

@ -1,5 +0,0 @@
[open-during-abort-processing.htm]
type: testharness
[XMLHttpRequest: open() during abort processing - abort() called from onloadstart]
expected: FAIL

View File

@ -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>