diff --git a/tests/test_Popup.html b/tests/test_Popup.html
index f9a8232121..9ac7b06ba5 100644
--- a/tests/test_Popup.html
+++ b/tests/test_Popup.html
@@ -28,19 +28,24 @@
}
function test_02_Popup_constructor (t) {
- t.plan( 5 );
+ t.plan( 7 );
var id = "chicken";
var w = 500;
var h = 400;
+ var lon = 5;
+ var lat = 40;
var content = "foo";
popup = new OpenLayers.Popup(id,
+ new OpenLayers.LonLat(lon, lat),
new OpenLayers.Size(w, h),
content);
t.ok( popup instanceof OpenLayers.Popup, "new OpenLayers.Popup returns Popup object" );
t.eq(popup.id, id, "popup.id set correctly");
+ t.eq(popup.lonlat.lon, lon, "lon of popup.lonlat set correctly");
+ t.eq(popup.lonlat.lat, lat, "lat of popup.lonlat set correctly");
t.eq(popup.size.w, w, "width of popup.size set correctly");
t.eq(popup.size.h, h, "height of popup.size set correctly");
t.eq(popup.contentHTML, content, "contentHTML porpoerty of set correctly");