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

Consolidate label conversion tests + add timeLog #11401

Merged
merged 2 commits into from
Jun 18, 2018

Conversation

domfarolino
Copy link
Member

This completes some TODOs for the existing console label conversion tests and also adds necessary label conversion tests for console.timeLog. (This does not satisfy all of timeLog's necessary requests, just the tests of this kind). I've also manually tested that this works etc.

@wpt-pr-bot wpt-pr-bot requested review from domenic and pwnall June 7, 2018 08:03
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM with nit


// toString error re-throwing console test strings
const toStringRethrowAssertionEnding = 'must re-throw any exceptions thrown by label.toString() conversion';
const toStringRethrowTestNameEnding = 'throws exceptions generated by erroneous label.toString() conversion';
Copy link
Member

Choose a reason for hiding this comment

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

Not sure why these test strings are factored out instead of inlined; it makes things a big harder to read.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah I think before using the for loop I had factored them out to avoid duplication, but that's not an issue at all now.

@domfarolino domfarolino merged commit 38ef0a3 into master Jun 18, 2018
@domfarolino domfarolino deleted the domfarolino/generalize-console-label-conversions branch June 18, 2018 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants