gristlabs_grist-core/test/common
Dmitry S 93a2d26182 (core) Fix a bug with editing numbers in some locales.
Summary:
Adds a new test for formatting and fix several related bugs it uncovered:
1. When editing a number with "," decimal separator, ensure it opens in
   the editor with "," (rather than ".", the original bug motivating this).
2. When guessing number format, set maxDecimals when it's needed
   (otherwise, e.g. "$1.234", or "4.5%" weren't guessed as numeric)
3. When guessing number format, ignore whitespace when deciding if
   guessed format is correct (otherwise percents can't be guessed in
   locales which add "%" with a non-breaking space before it).

Test Plan: Added a test case that exercises all fixed behaviors.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D4177
2024-02-02 22:48:05 -05:00
..
ACLPermissions.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
arraySplice.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
AsyncCreate.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
BigInt.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
BinaryIndexedTree.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
ChoiceListParser.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
CircularArray.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
ColumnFilterFunc.ts (core) Fix date filter for DateTime columns. 2023-01-18 10:18:15 +01:00
csvFormat.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
DocActions.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
getTableTitle.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
gristUrls.ts (core) Use slugify module to construct slugs in urlIds, addressing a long-standing TODO. 2024-01-29 10:02:27 -05:00
gutil2.ts (core) Add timeouts to prevent ActiveDoc bad state during shutdown. 2023-09-26 15:32:49 -04:00
gutil.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
InactivityTimer.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
Interval.ts (core) Fix bugs with intervals 2022-08-25 12:38:36 -07:00
KeyedMutex.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
marshal.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
MemBuffer.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
NumberFormat.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
NumberParse.ts (core) Fix a bug with editing numbers in some locales. 2024-02-02 22:48:05 -05:00
parseDate.ts (core) Converting big number (9 digits or more) to date directly 2023-10-05 16:58:25 +02:00
PluginInstance.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
promises.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
RecentItems.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
RefCountMap.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
RelativeDates.ts (core) New date filter with a calendar view 2022-12-20 09:58:42 +01:00
roles.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
serializeTiming.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
SortFunc.ts (core) Fix the empty values last option in multicol sorting 2023-01-31 12:14:22 +01:00
sortTiming.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
StringUnion.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
TableData.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
Telemetry.ts (core) Add earliestDocCreatedAt to telemetry 2023-08-08 00:48:18 -07:00
timeFormat.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
tsvFormat.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
ValueFormatter.ts (core) Fix number parsing/formatting tests after updates to node version and locales 2023-10-17 16:45:08 +02:00
ValueGuesser.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00