More direct browser version verification test for filtering FF3.5.
authorRobert Konigsberg <konigsberg@google.com>
Thu, 5 Jan 2012 17:10:20 +0000 (12:10 -0500)
committerRobert Konigsberg <konigsberg@google.com>
Thu, 5 Jan 2012 17:10:20 +0000 (12:10 -0500)
auto_tests/tests/date_formats.js

index d0e419a..05a62c6 100644 (file)
@@ -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"));
   }
 };