fix tests to pass in IE. border was bombing. add test for filter sizing method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@402 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -20,7 +20,8 @@
|
||||
} );
|
||||
}
|
||||
function test_02_Layer_Text_draw (t) {
|
||||
t.plan(5);
|
||||
// t.plan(5);
|
||||
t.plan( 4 );
|
||||
layer = new OpenLayers.Layer.Text('Test Layer', 'data_Layer_Text_textfile.txt');
|
||||
t.ok( layer instanceof OpenLayers.Layer.Text, "new OpenLayers.Layer.Text returns object" );
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -28,10 +29,13 @@
|
||||
t.eq( map.layers[0].name, layer.name, "Layer added to map okay" );
|
||||
t.delay_call( 1, function() {
|
||||
map.setCenter(new OpenLayers.LonLat(0,0),0);
|
||||
|
||||
/*
|
||||
if (!isMozilla)
|
||||
t.ok( true, "skipping element test outside of Mozilla");
|
||||
else
|
||||
t.ok( map.layers[0].div.firstChild instanceof HTMLImageElement, "Marker added to div" )
|
||||
*/
|
||||
t.eq( map.layers[0].div.firstChild.style.top, "219px", "Marker top set correctly" )
|
||||
t.eq( map.layers[0].div.firstChild.style.left, "273px", "Marker left set correctly" )
|
||||
});;
|
||||
|
||||
Reference in New Issue
Block a user