| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,6 +104,12 @@ if (!common.hasIntl) { | |||
| 104 | 104 | const numberFormat = new Intl.NumberFormat(['en']).format(12345.67890); | |
| 105 | 105 | assert.strictEqual(numberFormat, '12,345.679'); | |
| 106 | 106 | } | |
| 107 | + // If list is specified and doesn't contain 'en-US' then return. | ||
| 108 | + if (process.config.variables.icu_locales && !haveLocale('en-US')) { | ||
| 109 | + common.printSkipMessage('detailed Intl tests because American English is ' + | ||
| 110 | + 'not listed as supported.'); | ||
| 111 | + return; | ||
| 112 | + } | ||
| 107 | 113 | // Number format resolved options | |
| 108 | 114 | { | |
| 109 | 115 | const numberFormat = new Intl.NumberFormat('en-US', { style: 'percent' }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments