Custom Query (18300 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (139 - 141 of 18300)

Ticket Resolution Summary Owner Reporter
#3183 fixed 0.9: Create case wire.js file to load in baseline wire functions (remove common.js) Jared Jurkiewicz Jared Jurkiewicz
Description

0.9: Create case wire.js file to load in baseline wire functions (remove common.js) This is cleanup to follow Tom Trenka's pattern on dojox with regards to common functions and apis for a particular dojox module.

Also adding in the readme for dojox.wire.

#3112 fixed 0.9: Date diff function fails in UT on IE 7 and IE 6 Adam Peller Jared Jurkiewicz
Description

0.9: Date diff function fails in UT on IE 7 and IE 6

_AssertFailure: [object Error]: assertEqual() failed: expected |1| but got |1000|

[object Error]

ERROR IN:

function test_date_diff(t){ var dtA = null; First date to compare var dtB = null; Second date to compare var interv = ; Interval to compare on (e.g., year, month) interv = "year"; dtA = new Date(2005, 11, 27); dtB = new Date(2006, 11, 27); t.is(1, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 11, 31); dtB = new Date(2001, 0, 1); t.is(1, dojo.date.difference(dtA, dtB, interv)); interv = "quarter"; dtA = new Date(2000, 1, 29); dtB = new Date(2001, 2, 1); t.is(4, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 11, 1); dtB = new Date(2001, 0, 1); t.is(1, dojo.date.difference(dtA, dtB, interv)); interv = "month"; dtA = new Date(2000, 1, 29); dtB = new Date(2001, 2, 1); t.is(13, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 11, 1); dtB = new Date(2001, 0, 1); t.is(1, dojo.date.difference(dtA, dtB, interv)); interv = "week"; dtA = new Date(2000, 1, 1); dtB = new Date(2000, 1, 8); t.is(1, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 1, 28); dtB = new Date(2000, 2, 6); t.is(1, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 2, 6); dtB = new Date(2000, 1, 28); t.is(-1, dojo.date.difference(dtA, dtB, interv)); interv = "day"; dtA = new Date(2000, 1, 29); dtB = new Date(2000, 2, 1); t.is(1, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 11, 31); dtB = new Date(2001, 0, 1); t.is(1, dojo.date.difference(dtA, dtB, interv)); DST leap -- check for rounding err This is dependent on US calendar, but shouldn't break in other locales dtA = new Date(2005, 3, 3); dtB = new Date(2005, 3, 4); t.is(1, dojo.date.difference(dtA, dtB, interv)); interv = "weekday"; dtA = new Date(2006, 7, 3); dtB = new Date(2006, 7, 11); t.is(6, dojo.date.difference(dtA, dtB, interv)); Positive diffs dtA = new Date(2006, 7, 4); dtB = new Date(2006, 7, 11); t.is(5, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 5); dtB = new Date(2006, 7, 11); t.is(5, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 6); dtB = new Date(2006, 7, 11); t.is(5, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 7); dtB = new Date(2006, 7, 11); t.is(4, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 7); dtB = new Date(2006, 7, 13); t.is(4, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 7); dtB = new Date(2006, 7, 14); t.is(5, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 7); dtB = new Date(2006, 7, 15); t.is(6, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 7); dtB = new Date(2006, 7, 28); t.is(15, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 2, 2); dtB = new Date(2006, 2, 28); t.is(18, dojo.date.difference(dtA, dtB, interv)); Negative diffs dtA = new Date(2006, 7, 11); dtB = new Date(2006, 7, 4); t.is(-5, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 11); dtB = new Date(2006, 7, 5); t.is(-4, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 11); dtB = new Date(2006, 7, 6); t.is(-4, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 11); dtB = new Date(2006, 7, 7); t.is(-4, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 13); dtB = new Date(2006, 7, 7); t.is(-5, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 14); dtB = new Date(2006, 7, 7); t.is(-5, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 15); dtB = new Date(2006, 7, 7); t.is(-6, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 7, 28); dtB = new Date(2006, 7, 7); t.is(-15, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2006, 2, 28); dtB = new Date(2006, 2, 2); t.is(-18, dojo.date.difference(dtA, dtB, interv)); Two days on the same weekend -- no weekday diff dtA = new Date(2006, 7, 5); dtB = new Date(2006, 7, 6); t.is(0, dojo.date.difference(dtA, dtB, interv)); interv = "hour"; dtA = new Date(2000, 11, 31, 23); dtB = new Date(2001, 0, 1, 0); t.is(1, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 11, 31, 12); dtB = new Date(2001, 0, 1, 0); t.is(12, dojo.date.difference(dtA, dtB, interv)); interv = "minute"; dtA = new Date(2000, 11, 31, 23, 59); dtB = new Date(2001, 0, 1, 0, 0); t.is(1, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 1, 28, 23, 59); dtB = new Date(2000, 1, 29, 0, 0); t.is(1, dojo.date.difference(dtA, dtB, interv)); interv = "second"; dtA = new Date(2000, 11, 31, 23, 59, 59); dtB = new Date(2001, 0, 1, 0, 0, 0); t.is(1, dojo.date.difference(dtA, dtB, interv)); interv = "millisecond"; dtA = new Date(2000, 11, 31, 23, 59, 59, 999); dtB = new Date(2001, 0, 1, 0, 0, 0, 0); t.is(1, dojo.date.difference(dtA, dtB, interv)); dtA = new Date(2000, 11, 31, 23, 59, 59, 0); dtB = new Date(2001, 0, 1, 0, 0, 0, 0); t.is(1000, dojo.date.difference(dtA, dtB, interv)); }

FAILED test: test_date_diff

#3374 duplicate 0.9: Date stamp tests fail on IE 6 and IE 7 Adam Peller Jared Jurkiewicz
Description

While testing other fixes, I discovered date is failing again on IE 6 and IE 7 in one of the UT.

GROUP "tests.date.stamp" has 2 tests to run _AssertFailure: [object Error]: assertEqual() failed: expected |29| but got |28| [object Error] ERROR IN: function test_date_iso(t){ var rfc = "2005-06-29T08:05:00-07:00"; var date = dojo.date.stamp.fromISOString(rfc); t.is(2005,date.getFullYear()); t.is(5,date.getMonth()); t.is(29,date.getDate()); t.is(15,date.getUTCHours()); t.is(5,date.getMinutes()); t.is(0,date.getSeconds()); rfc = "2004-02-29"; date = dojo.date.stamp.fromISOString(rfc); t.is(2004,date.getFullYear()); t.is(1,date.getMonth()); t.is(29,date.getDate()); date = new Date(2005,5,29,8,5,0); rfc = dojo.date.stamp.toISOString(date); truncate for comparison t.is("2005-06",rfc.substring(0,7)); date = dojo.date.stamp.fromISOString("T18:46:39"); t.is(18, date.getHours()); t.is(46, date.getMinutes()); t.is(39, date.getSeconds()); } FAILED test: test_date_iso PASSED test: test_date_iso_tz

Note: See TracQuery for help on using queries.