20 lines
595 B
JavaScript
20 lines
595 B
JavaScript
|
if(!dojo._hasResource["tests.cldr"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
|
||
|
dojo._hasResource["tests.cldr"] = true;
|
||
|
dojo.provide("tests.cldr");
|
||
|
|
||
|
dojo.require("dojo.cldr.supplemental");
|
||
|
dojo.require("dojo.cldr.monetary");
|
||
|
|
||
|
tests.register("tests.cldr",
|
||
|
[
|
||
|
function test_date_getWeekend(t){
|
||
|
t.is(6, dojo.cldr.supplemental.getWeekend('en-us').start);
|
||
|
t.is(0, dojo.cldr.supplemental.getWeekend('en-us').end);
|
||
|
t.is(5, dojo.cldr.supplemental.getWeekend('he-il').start);
|
||
|
t.is(6, dojo.cldr.supplemental.getWeekend('he-il').end);
|
||
|
}
|
||
|
]
|
||
|
);
|
||
|
|
||
|
}
|