Opened 12 years ago

Closed 12 years ago

#3837 closed defect (fixed)

0.9: tests.number fail on Firefox 2.0.0.5

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

Description

GROUP "tests.number" has 26 tests to run PASSED test: number PASSED test: format

_AssertFailure: file:///C:/dev/ajax/dojo-0.9/dojo/_base/_loader/bootstrap.js:282 doh._AssertFailure: assertEqual() failed: expected1234567.89| but got |NaN|

doh._AssertFailure

ERROR IN:

(function (t) {t.is(1000, dojo.number.parse("1000", {locale:"en-us"}));t.is(1000.123, dojo.number.parse("1000.123", {locale:"en-us"}));t.is(1000, dojo.number.parse("1,000", {locale:"en-us"}));t.is(-1000, dojo.number.parse("-1000", {locale:"en-us"}));t.is(-1000.123, dojo.number.parse("-1000.123", {locale:"en-us"}));t.is(-1234567.89, dojo.number.parse("-1,234,567.89", {locale:"en-us"}));t.is(-1234567.89, dojo.number.parse("-1 234 567,89", {locale:"fr-fr"}));t.t(isNaN(dojo.number.parse("-1 234 567,89", {locale:"en-us"})));t.t(isNaN(dojo.number.parse("10,00", {locale:"en-us"})));t.t(isNaN(dojo.number.parse("1000.1", {locale:"fr-fr"})));t.t(isNaN(dojo.number.parse("")));t.t(isNaN(dojo.number.parse("abcd")));t.is(0.501, dojo.number.parse("50.1%", {pattern:"#0.#%"}));t.is(123.4, dojo.number.parse("123.4", {pattern:"#0.#"}));t.is(-123.4, dojo.number.parse("-123.4", {pattern:"#0.#"}));t.is(123.4, dojo.number.parse("123.4", {pattern:"#0.#;(#0.#)"}));t.is(-123.4, dojo.number.parse("(123.4)", {pattern:"#0.#;(#0.#)"}));t.is(null, dojo.number.format("abcd", {pattern:"0000"}));})

FAILED test: parse PASSED test: format_icu4j3_6

Change History (1)

comment:1 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [9755]) Do whitespace replacement within [] regexp. Fixes #3837

Note: See TracTickets for help on using tickets.