don't translate error message and replace console log with exception

This commit is contained in:
fredj
2011-09-20 14:26:13 +02:00
parent 91f610f19c
commit 6e9a3e4c13
55 changed files with 91 additions and 924 deletions

View File

@@ -692,9 +692,12 @@
{map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'}
);
map.addLayers([layer,layer]);
t.eq( map.layers.length, 1, "Map does not allow double adding of layers." );
map.addLayers([layer]);
try {
map.addLayers([layer]);
} catch(e) {
t.ok(true, "Map does not allow double adding of layers." );
}
map.destroy();
}