Skip to content

XMLHttpRequest/abort-event-order.htm test incorrect #958

@caitp

Description

@caitp

The expected result is impossible to attain due to the structure of the test.

It expects the following collection

[1, 4, "upload.abort", "upload.loadend", "abort", "loadend"];

however it performs the assertion in the event handler in upload.onloadend(), and so the assertions are evaluated before the other events are dispatched.

This would have worked, prior to 10010b1 --- perhaps the Verify function needs to be moved as well?

I'll submit a quick patch for that, because yeah I'm fairly sure this is what was intended

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions