aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojo/tests/cldr.js
blob: e9edfaddcc8d4b6e9ba400e5f750e1698afe56e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
		}
	]
);

}