weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 4), 1); 
weekStart = dojox.date.posix.getStartOfWeek(new Date(2007, 0, 4), 1); 
function test_date_getStartOfWeek(t){	var weekStart;		// Monday	var date = new Date(2007, 0, 1);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 1), 1);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 2), 1);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 3), 1);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 4), 1);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 5), 1);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 6), 1);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 7), 1);	t.is(date, weekStart);	// Sunday	date = new Date(2007, 0, 7);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 7), 0);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 8), 0);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 9), 0);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 10), 0);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 11), 0);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 12), 0);	t.is(date, weekStart);	weekStart = dojo.date.getStartOfWeek(new Date(2007, 0, 13), 0);	t.is(date, weekStart);},
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/19b95918681dde28f5af8a4c290e31c7d041c16e/posix.js/clean/tests/date/posix.js