forgot to pullup tests for #2561 and #2562 for 2.9 RC2

git-svn-id: http://svn.openlayers.org/branches/openlayers/2.9@10176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2010-04-08 06:26:36 +00:00
parent bada3d98a1
commit 21b5141c09
2 changed files with 55 additions and 5 deletions

View File

@@ -1557,19 +1557,19 @@
var map, msg;
// try setting center without layers, this is not supported
// try setting center without layers, this has no effect
var failed = false;
try {
map = new OpenLayers.Map({
div: "map",
center: new OpenLayers.LonLat(1, 2)
});
msg = "center set with no layers";
msg = "center option without layers has no effect";
} catch (err) {
failed = true;
msg = "center cannot be set without layers";
msg = "center option without layers throws error";
}
t.ok(failed, msg);
t.ok(!failed, msg);
if (map) {
map.destroy();