Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#4814 closed defect (fixed)

doh failures in dojo.number

Reported by: Adam Peller Owned by: Adam Peller
Priority: high Milestone: 1.0
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

http://download.dojotoolkit.org/release-1.0.0beta/dojo-release-1.0.0beta/release/dojo-release-1.0.0beta/util/doh/runner.html?testModule=tests.number

GROUP "tests.number" has 26 tests to run
 PASSED test: number
 PASSED test: format
 PASSED test: parse
 PASSED test: format_icu4j3_6
 PASSED test: format_patterns
 PASSED test: exponential
 PASSED test: format_quotes
 PASSED test: format_rounding
 PASSED test: format_scientific
 PASSED test: format_perMill
 PASSED test: format_grouping
 PASSED test: format_pad
 runBatchParse() failed: Error: Bundle not found: number in dojo.cldr , locale=en
     ERROR IN:
  (function (t) {var pattern = "00";var str = "0.0";var result = dojo.number.parse(str, {pattern:pattern});var options = {locale:"en"};var passData = ["0", "0.0", "1234567", "1,234,567"];runBatchParse(options, passData, true);var failData = ["00", "012", "0,456", "1,2", ",0", ",1", ",.02", "1,.02", "1,,200", "1,45", "1,45.34", "1234,567", "12,34,567", "1,23,456,7890"];runBatchParse(options, failData, false);options = {pattern:"#,##,##0.#", locale:"en-us"};var mixedPassData = ["12,34,567"];runBatchParse(options, mixedPassData, true);var mixedFailData = ["12,34,56", "12,34,56,"];runBatchParse(options, mixedFailData, false);})
 
...

Change History (2)

comment:1 Changed 12 years ago by Adam Peller

fails in builds, looking for locale: en

comment:2 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [11037]) In a build, an exact match is required for locale. Fixes #4814

Note: See TracTickets for help on using tickets.