[OpenLayers-Commits] r12424 - sandbox/camptocamp/clientzoom/tests/Tile

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Sep 29 10:40:32 EDT 2011


Author: erilem
Date: 2011-09-29 07:40:31 -0700 (Thu, 29 Sep 2011)
New Revision: 12424

Modified:
   sandbox/camptocamp/clientzoom/tests/Tile/Image.html
Log:
fix Tile/Image.html tests

Modified: sandbox/camptocamp/clientzoom/tests/Tile/Image.html
===================================================================
--- sandbox/camptocamp/clientzoom/tests/Tile/Image.html	2011-09-29 14:36:32 UTC (rev 12423)
+++ sandbox/camptocamp/clientzoom/tests/Tile/Image.html	2011-09-29 14:40:31 UTC (rev 12424)
@@ -300,8 +300,8 @@
         map.destroy();
     }
     
-    function test_createBackBuffer(t) {
-        t.plan(3);
+    function test_insertBackBuffer(t) {
+        t.plan(4);
 
         var map = new OpenLayers.Map('map');
         var layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
@@ -310,8 +310,9 @@
         map.setCenter(new OpenLayers.LonLat(0,0), 5);
         var tile = layer.grid[0][0];
         var img = tile.imgDiv;
-        var backBuffer = tile.createBackBuffer();
+        var backBuffer = tile.insertBackBuffer();
         t.eq(backBuffer.style.left, tile.frame.style.left, "backBuffer tile has same left style as frame");
+        t.ok(backBuffer.parentNode === layer.div, "backBuffer inserted into layer div");
         t.ok(backBuffer.firstChild === img, "image appended to backBuffer");
         t.ok(tile.imgDiv == null, "image reference removed from tile");
         map.destroy();



More information about the Commits mailing list