Skip to content

evaluate assertions at appropriate time#959

Merged
hallvors merged 2 commits intoweb-platform-tests:masterfrom
caitp:issue-958
May 7, 2014
Merged

evaluate assertions at appropriate time#959
hallvors merged 2 commits intoweb-platform-tests:masterfrom
caitp:issue-958

Conversation

@caitp
Copy link
Copy Markdown
Contributor

@caitp caitp commented May 5, 2014

Evaluate assertions at appropriate time in
XMLHttpRequest/abort-event-order.html, to compliment 10010b1's corrected
expected results

Closes #958

@hoppipolla-critic-bot
Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/1455

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

Evaluate assertions at appropriate time in XMLHttpRequest/abort-event-order.html, to compliment
10010b1's corrected expected results

Closes web-platform-tests#958
Per the spec, the readyState is updated after the events are dispatched. Since the
assertion occurs during the final loadend event handler, there must be a pause before
the readyState can be tested, as browsers behaving according to the spec will not
have updated the readyState yet.
@caitp
Copy link
Copy Markdown
Contributor Author

caitp commented May 5, 2014

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case the commit message was not clear, it is literally impossible for a compliant browser to pass this test without moving this here, because the assertions would be evaluated before all of the expected events have been dispatched

@sideshowbarker
Copy link
Copy Markdown
Member

@hallvors would be good if you could review this (either here or at https://critic.hoppipolla.co.uk/r/1455)

@hallvors
Copy link
Copy Markdown
Contributor

hallvors commented May 7, 2014

Looks good. Thanks for spotting that my fix was incomplete, @caitp

hallvors added a commit that referenced this pull request May 7, 2014
evaluate assertions at appropriate time
@hallvors hallvors merged commit 9ebbcd7 into web-platform-tests:master May 7, 2014
gsnedders pushed a commit that referenced this pull request Mar 28, 2017
Add missing charset declarations in compositing tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XMLHttpRequest/abort-event-order.htm test incorrect

5 participants