// Format: YYYY-MM-DDTHH:MM:SS.ddddddZ
// The "Z" indicates UTC, so this test should pass regardless of the time
// zone of the machine on which it is run.
// Format: YYYY-MM-DDTHH:MM:SS.ddddddZ
// The "Z" indicates UTC, so this test should pass regardless of the time
// zone of the machine on which it is run.
// Firefox <4 does not support this format:
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse
if (navigator.userAgent.indexOf("Firefox/3.5") == -1) {
// Firefox <4 does not support this format:
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse
if (navigator.userAgent.indexOf("Firefox/3.5") == -1) {
// Format: YYYY-MM-DD HH:MM
// Midnight February 2, 2000, UTC
// Format: YYYY-MM-DD HH:MM
// Midnight February 2, 2000, UTC
- assertEquals(Date.UTC(2000, 1, 2), Dygraph.dateParser(str));
-};
+ assert.equal(Date.UTC(2000, 1, 2), utils.dateParser(str));
+});
+
+});