Changeset 21971 in legacy


Ignore:
Timestamp:
Apr 26, 2010 11:23:04 PM (7 years ago)
Author:
peller
Message:

Strip out location-dependent timezone from date format test. Refs #10692 Add number percent test. Refs #10701, #10582

Location:
dojo/trunk/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dojo/trunk/tests/date/locale.js

    r21285 r21971  
    7575
    7676        // compare without timezone
    77         t.is("\u4e0a\u534812\u65f655\u520612\u79d2", dojo.date.locale.format(date, {formatLength:'full',selector:'time', locale:'zh-cn'}).split(' ')[0]);
     77        t.is("\u4e0a\u534812\u65f655\u520612\u79d2", dojo.date.locale.format(date, {formatLength:'full',selector:'time', locale:'zh-cn'}).substring(3));
    7878                        }
    7979                },
  • dojo/trunk/tests/number.js

    r21867 r21971  
    363363
    364364//      t.t(dojo.number.parse("9.1093826E-31"));
     365        t.is(1.23, dojo.number.parse("123%", {locale: "en-us", type: "percent"}));
    365366        t.is(1.23, dojo.number.parse("123%", {places:0, locale: "en-us", type: "percent"}));
    366367        t.t(isNaN(dojo.number.parse("123.46%", {places:0, locale: "en-us", type: "percent"})));
Note: See TracChangeset for help on using the changeset viewer.