Skip to content

test: add hasIntl to failing test - #13699

Closed
danbev wants to merge 4 commits into
nodejs:masterfrom
danbev:intl-test-fixes
Closed

test: add hasIntl to failing test#13699
danbev wants to merge 4 commits into
nodejs:masterfrom
danbev:intl-test-fixes

Conversation

@danbev

Copy link
Copy Markdown
Contributor

Currently when node is configured --without-intl the tests in this
commit fail. This commit adds checks for internationalization for these
tests

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Currently when node is configured --without-intl the tests in this
commit fail. This commit adds checks for internationalization for these
tests
@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Jun 15, 2017
@danbev

Copy link
Copy Markdown
ContributorAuthor

@refack

Copy link
Copy Markdown
Contributor

It is documented in anyway that WHATWG URL doesn't work without ICU?

@danbev

Copy link
Copy Markdown
ContributorAuthor

It is documented in anyway that WHATWG URL doesn't work without ICU?

Sorry, I don't know if it is documented or not.

@refack

Copy link
Copy Markdown
Contributor

It is documented in anyway that WHATWG URL doesn't work without ICU?

Sorry, I don't know if it is documented or not.

I'll go dig.

@TimothyGu

Copy link
Copy Markdown
Member

@refack

It is documented in anyway that WHATWG URL doesn't work without ICU?

Not that I am aware of. However, WHATWG URL does work without ICU, just not the Punycode encoding or decoding part.

@mscdexmscdex added the i18n-api Issues and PRs related to the i18n implementation. label Jun 15, 2017

@cjihrigcjihrig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with a question.

'use strict';
require('../common');
const common = require('../common');
if (!(common.hasIntl && common.hasSmallICU)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is common.hasSmallICU a thing? I'm only finding process.binding('config').hasSmallICU with a quick search.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Good catch! I was looking at an old commit and did not notice that that function does not exist or has been removed. Going to add it now. Thanks.

Trott
Trott previously requested changes Jun 15, 2017

@TrottTrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we're adding a property to common, can you also add documentation for it in test/common/README.md?

@danbev

Copy link
Copy Markdown
ContributorAuthor

If we're adding a property to common, can you also add documentation for it in test/common/README.md?

Ah sorry, forgot about that. I'll add that.

danbev added 2 commits June 16, 2017 07:35
Commit d7e4ae1
("test: add common.hasIntl") added common.hasIntl but I was not able to
find it in the README.md so this commit adds it.
@Trott
Trott dismissed their stale reviewJune 16, 2017 05:45

docs added, dismissing review

danbev added a commit to danbev/node that referenced this pull request Jun 18, 2017
Commit d7e4ae1
("test: add common.hasIntl") added common.hasIntl but I was not able to
find it in the README.md so this commit adds it.
PR-URL: nodejs#13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danbev added a commit to danbev/node that referenced this pull request Jun 18, 2017
Currently when node is configured --without-intl the tests in this
commit fail. This commit adds checks for internationalization for these
tests
PR-URL: nodejs#13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@danbev

Copy link
Copy Markdown
ContributorAuthor

Landed in a8979a6 and 282b1ed

@danbevdanbev closed this Jun 18, 2017
addaleax pushed a commit that referenced this pull request Jun 18, 2017
Commit d7e4ae1
("test: add common.hasIntl") added common.hasIntl but I was not able to
find it in the README.md so this commit adds it.
PR-URL: #13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
addaleax pushed a commit that referenced this pull request Jun 18, 2017
Currently when node is configured --without-intl the tests in this
commit fail. This commit adds checks for internationalization for these
tests
PR-URL: #13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
addaleax pushed a commit that referenced this pull request Jun 20, 2017
Commit d7e4ae1
("test: add common.hasIntl") added common.hasIntl but I was not able to
find it in the README.md so this commit adds it.
PR-URL: #13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
addaleax pushed a commit that referenced this pull request Jun 20, 2017
Currently when node is configured --without-intl the tests in this
commit fail. This commit adds checks for internationalization for these
tests
PR-URL: #13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@addaleaxaddaleax mentioned this pull request Jun 21, 2017
addaleax pushed a commit that referenced this pull request Jun 21, 2017
Commit d7e4ae1
("test: add common.hasIntl") added common.hasIntl but I was not able to
find it in the README.md so this commit adds it.
PR-URL: #13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
addaleax pushed a commit that referenced this pull request Jun 21, 2017
Currently when node is configured --without-intl the tests in this
commit fail. This commit adds checks for internationalization for these
tests
PR-URL: #13699
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@addaleaxaddaleax mentioned this pull request Jun 21, 2017
@TimothyGuTimothyGu added url Issues and PRs related to the legacy built-in url module. whatwg-url Issues and PRs related to the WHATWG URL implementation. labels Jun 26, 2017
@danbev
danbev deleted the intl-test-fixes branch June 28, 2017 05:34
@MylesBorins

Copy link
Copy Markdown
Contributor

should this be backported to v6.x?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n-apiIssues and PRs related to the i18n implementation.testIssues and PRs related to the tests.urlIssues and PRs related to the legacy built-in url module.whatwg-urlIssues and PRs related to the WHATWG URL implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@danbev@refack@TimothyGu@MylesBorins@jasnell@Trott@benjamingr@cjihrig@gibfahn@mscdex@nodejs-github-bot