[Commits] r1746 - core/trunk/geoext/tests/lib/GeoExt/data

commits at geoext.org commits at geoext.org
Thu Jan 14 20:01:04 CET 2010


Author: tschaub
Date: 2010-01-14 20:01:04 +0100 (Thu, 14 Jan 2010)
New Revision: 1746

Modified:
   core/trunk/geoext/tests/lib/GeoExt/data/LayerStore.html
Log:
Making LayerStore test pass with Ext 3.  All field values in Ext 3 records must be serializable.  This keeps us from being able to use record.set('layer').  Better to make the layer a property of the record itself.

Modified: core/trunk/geoext/tests/lib/GeoExt/data/LayerStore.html
===================================================================
--- core/trunk/geoext/tests/lib/GeoExt/data/LayerStore.html	2010-01-14 08:27:34 UTC (rev 1745)
+++ core/trunk/geoext/tests/lib/GeoExt/data/LayerStore.html	2010-01-14 19:01:04 UTC (rev 1746)
@@ -221,7 +221,7 @@
             
             // create a copy of the record with the same layer
             var copy = record.copy(); // record with same id will replace original
-            copy.set("layer", record.get("layer")); // force records to have same layer            
+            copy.data.layer = record.get("layer"); // force records to have same layer            
             store.add(copy);
             t.eq(store.getCount(), 1, "store has a single record after adding copy");
             t.eq(map.layers.length, 1, "map has a single layer after adding copy");



More information about the Commits mailing list