diff --git a/tests/Map.html b/tests/Map.html
index ee8b8e7fb2..1daa43a46e 100644
--- a/tests/Map.html
+++ b/tests/Map.html
@@ -748,7 +748,7 @@
function test_Map_double_addLayer(t) {
t.plan(2);
- map = new OpenLayers.Map($('map'));
+ map = new OpenLayers.Map('map');
layer = new OpenLayers.Layer.WMS('Test Layer',
"http://octo.metacarta.com/cgi-bin/mapserv",
{map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'}