Pulling in patches for OL 2.11 RC3:
* ArcGISCache resolutions get compromised by some JS frameworks. (Closes #3474) * OpenLayers.Layer.HTTPRequest initialize simplification (Closes #3470) * missing requires (Closes #3467) * deleting a vertex does not update feature.modified (Closes #3463) * fixing test failure in some browsers (Closes #3461) * a grid layer may be moved while its grid hasn't been initialized yet (Closes #3458) -- this one is the actual release blocker * Change the callback function of Protocol.Script (JSONP) (Closes #3417) * "build.py -c closure" does not work on Windows systems. (Closes #3158) git-svn-id: http://svn.openlayers.org/branches/openlayers/2.11@12274 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -20,7 +20,15 @@
|
||||
|
||||
// check invalid date
|
||||
date = new Date("foo");
|
||||
str = OpenLayers.Date.toISOString(date);
|
||||
try {
|
||||
str = OpenLayers.Date.toISOString(date);
|
||||
} catch (err) {
|
||||
// some implementations throw RangeError
|
||||
// see https://bugzilla.mozilla.org/show_bug.cgi?id=649575
|
||||
if (err instanceof RangeError) {
|
||||
str = "Invalid Date";
|
||||
}
|
||||
}
|
||||
t.eq(str, "Invalid Date", "invalid date");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user