[go: up one dir, main page]

Skip to content
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

Blob constructor 'endings' options #8456

Merged
merged 2 commits into from
Nov 30, 2017
Merged

Blob constructor 'endings' options #8456

merged 2 commits into from
Nov 30, 2017

Conversation

inexorabletash
Copy link
Member
@inexorabletash inexorabletash commented Nov 27, 2017

Tests for the 'endings' options for the Blob and File constructor.

w3c/FileAPI#46

@inexorabletash
Copy link
Member Author
inexorabletash commented Nov 27, 2017

Note that we shouldn't merge this until:

  • We have agreed on spec text and have a spec PR
  • Test cases for File constructor are added

@ghost
Copy link
ghost commented Nov 27, 2017

Build PASSED

Started: 2017-11-29 20:28:13
Finished: 2017-11-29 20:34:30

View more information about this build on:

@inexorabletash
Copy link
Member Author

Needs cases for newlines split across strings, i.e. new Blob(['\r', '\n'])

@annevk
Copy link
Member
annevk commented Nov 28, 2017

(FWIW, looks great thus far.)

Copy link
Contributor
@mkruisselbrink mkruisselbrink left a comment

Choose a reason for hiding this comment

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

Agreed with @annevk that we of course need the spec text and File constructor tests as well. I'll have a go at spec text tomorrow, if nobody else beats me to it.

JSON.stringify(value));
});

const test_error = {name: 'test', message: 'test error'};
Copy link
Contributor

Choose a reason for hiding this comment

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

Having anything other than a name in here is a bit pointless, as assert_throws only checks the name anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. (copied from Blob-constructor.html, but leaving it alone there)

}

test(function() {
[
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I slightly prefer if each of these cases was their own test, rather than having them be assertions in one combined test, but this is fine too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@mkruisselbrink
Copy link
Contributor

Spec in w3c/FileAPI#90

@inexorabletash
Copy link
Member Author

Test cases for File constructor are added

Done.

Needs cases for newlines split across strings

Done.

Copy link
Member
@annevk annevk left a comment

Choose a reason for hiding this comment

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

LGTM, I guess all browsers pass these? Or do w need to file a bug against Edge perhaps?

@mkruisselbrink
Copy link
Contributor

What's going on with the edge results for these anyway, somehow none of the tests are getting run and instead a "top-level" failure of "Expected ')'" is reported?

@mkruisselbrink
Copy link
Contributor

What's going on with the edge results for these anyway, somehow none of the tests are getting run and instead a "top-level" failure of "Expected ')'" is reported?

Well, I'm guessing that is a problem with the WPT infra, running these locally in edge seems to work fine (and shows that edge indeed completely ignores the endings attribute).

@mkruisselbrink mkruisselbrink merged commit 9eedb43 into web-platform-tests:master Nov 30, 2017
@inexorabletash
Copy link
Member Author

Thanks for reviewing/merging! Also thanks for trying out in Edge — I hadn't run these in any other browser yet. As noted in w3c/FileAPI#46 Edge should parse the attribute but ignore it. @aliams - do you need a bug or do you have one already?

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