[OpenLayers-Trac] Re: [OpenLayers] #3461: BaseTypes/Date.html tests fail in FF

OpenLayers trac-20090302 at openlayers.org
Tue Aug 16 17:02:22 EDT 2011

#3461: BaseTypes/Date.html tests fail in FF
 Reporter:  erilem  |       Owner:              
     Type:  task    |      Status:  new         
 Priority:  major   |   Milestone:  2.11 Release
Component:  tests   |     Version:  2.11 RC2    
 Keywords:          |       State:              
Changes (by mprins):

 * cc: mprins (added)


 FF6 had a bugfix so it now returns a {{{RangeError}}} (previously it
 returned a {{{String}}} "Invalid Date"). The expected value should be
 {{{instanceof RangeError}}} for FF6.
 something like:
         // check invalid date
         date = new Date("foo");
         try {
             var d = OpenLayers.Date.toISOString(date);
         } catch (ex) {
             t.ok(ex instanceof RangeError, "invalid date");
         t.eq(undefined, d, "invalid date");
 This will ofcourse break some other browsers.

 see: [https://bugzilla.mozilla.org/show_bug.cgi?id=649575]
 ''note: there's a useful link to the MSDN IE test pages in there as

Ticket URL: <http://trac.openlayers.org/ticket/3461#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer

More information about the Trac mailing list