diff options
Diffstat (limited to 'includes/js/dojo/tests/cldr.js')
-rw-r--r-- | includes/js/dojo/tests/cldr.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/js/dojo/tests/cldr.js b/includes/js/dojo/tests/cldr.js new file mode 100644 index 0000000..e9edfad --- /dev/null +++ b/includes/js/dojo/tests/cldr.js @@ -0,0 +1,19 @@ +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); + } + ] +); + +} |