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

fix(tests): make tests work on non-English locales #2736

Merged
merged 1 commit into from
Jun 14, 2018
Merged

fix(tests): make tests work on non-English locales #2736

merged 1 commit into from
Jun 14, 2018

Conversation

thorn0
Copy link
Contributor

@thorn0 thorn0 commented Jun 14, 2018

Date.prototype.toString may return non-ASCII characters, which aren't accepted by setHeader.

E.g., on Russian locale, it might look like this:

> new Date().toString()
'Thu Jun 14 2018 13:11:50 GMT+0300 (Финляндия (лето))'

`Data.prototype.toString` may return non-ASCII characters, which aren't accepted by `setHeader`.

E.g., on Russian locale, it might look like this:
```
> new Date().toString()
'Thu Jun 14 2018 13:11:50 GMT+0300 (Финляндия (лето))'
```
Copy link
Contributor

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for the PR

@aslushnikov aslushnikov merged commit 93e1289 into puppeteer:master Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants