Skip to content

Add more tests for FileReader.result. #7494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2019

Conversation

mkruisselbrink
Copy link
Contributor

@mkruisselbrink mkruisselbrink commented Sep 26, 2017

In particular this adds tests to verify the value of the attribute
during progress and loadstart events.

I think this matches what the spec currently says, but there are some open questions in w3c/FileAPI#79 about what the spec should actually say, so we should probably not merge this until we figure out what the desired behavior actually is.

@ghost
Copy link

ghost commented Sep 26, 2017

Build BROKEN

Started: 2017-09-26 20:43:16
Finished: 2017-09-26 20:53:46

Failing Jobs

  • lint

View more information about this build on:

Copy link
Contributor

@inexorabletash inexorabletash left a comment

Choose a reason for hiding this comment

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

Sorry about the delay - is this still valid?

In particular this adds tests to verify the value of the attribute
during progress and loadstart events.
@mkruisselbrink
Copy link
Contributor Author

Sorry about the delay - is this still valid?

Sorry about the delay, yes this is still valid. These are tests for the spec changes in w3c/FileAPI#118

reader[method](blob);
assert_equals(reader.result, null, 'result is null after first read call');
await eventWatcher.wait_for(event);
assert_equals(reader.result, null, 'result is null during event');
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice... and all browsers have converged on including the microtask execution within the event dispatch.

Copy link
Contributor

@inexorabletash inexorabletash left a comment

Choose a reason for hiding this comment

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

LGTM!

@gsnedders gsnedders merged commit c626cbb into web-platform-tests:master Apr 29, 2019
marcoscaceres pushed a commit that referenced this pull request Jul 23, 2019
In particular this adds tests to verify the value of the attribute
during progress and loadstart events.
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.

4 participants