from fredj: "in lib/OpenLayers/Layer.js and lib/OpenLayers/Control.js the div

id is not passed to the createDiv() function." (Closes #1015)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-09-30 16:41:42 +00:00
parent 33f85eeb35
commit 01154beb5d
3 changed files with 8 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
var layer;
function test_01_Layer_constructor (t) {
t.plan( 13 );
t.plan( 15 );
var options = { chicken: 151, foo: "bar", projection: "none" };
var layer = new OpenLayers.Layer('Test Layer', options);
@@ -19,6 +19,9 @@
t.ok( ((layer.chicken == 151) && (layer.foo == "bar")), "layer.options correctly set to Layer Object" );
t.ok( ((layer.options["chicken"] == 151) && (layer.options["foo"] == "bar")), "layer.options correctly backed up" );
t.ok( typeof layer.div == "object" , "layer.div is created" );
t.eq( layer.div.id, layer.id, "layer.div.id is correct" );
options.chicken = 552;
t.eq( layer.options["chicken"], 151 , "layer.options correctly made fresh copy" );