update tests for popup for r298
git-svn-id: http://svn.openlayers.org/trunk/openlayers@299 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user