Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#2849 closed defect (duplicate)

M2: 09: Number tests 'parse' fails on IE 6

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

Description

M2: 09: Number tests 'parse' fails on IE 6

Error is:

_AssertFailure: [object Error]: assertEqual() failed: expected1000| but got |0| [object Error]

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"}))); test whitespace t.is(-1234567, dojo.number.parse(" -1,234,567 ", {locale: "en-us"})); t.t(dojo.number.parse("9.1093826E-31")); 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.#)"})); }

FAILED test: parse

Change History (2)

comment:1 Changed 12 years ago by Adam Peller

Resolution: duplicate
Status: newclosed

Fixed by #2878

comment:2 Changed 12 years ago by (none)

Milestone: 0.9M2

Milestone 0.9M2 deleted

Note: See TracTickets for help on using tickets.