From: Robert Konigsberg Date: Thu, 5 Jan 2012 17:10:20 +0000 (-0500) Subject: More direct browser version verification test for filtering FF3.5. X-Git-Tag: v1.0.0~377 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0049ceb758c12d61ce8282a55cf4c299e7992e5a;p=dygraphs.git More direct browser version verification test for filtering FF3.5. --- diff --git a/auto_tests/tests/date_formats.js b/auto_tests/tests/date_formats.js index d0e419a..05a62c6 100644 --- a/auto_tests/tests/date_formats.js +++ b/auto_tests/tests/date_formats.js @@ -18,7 +18,7 @@ dateFormatsTestCase.prototype.testISO8601 = function() { // Firefox <4 does not support this format: // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse - if (new Date("2000-01-02T12:34:56.789012Z")) { + if (navigator.userAgent.indexOf("Firefox/3.5") == -1) { assertEquals(946816496789, Dygraph.dateParser("2000-01-02T12:34:56.789012Z")); } };