[Commits] r2704 - in sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing: examples examples/data tests/lib/GeoExt.ux/widgets
commits at geoext.org
commits at geoext.org
Wed May 18 14:53:28 CEST 2011
Author: adube
Date: 2011-05-18 14:53:28 +0200 (Wed, 18 May 2011)
New Revision: 2704
Added:
sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/
sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfscap_gmap.xml
sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_drainage.xml
sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_popplace.xml
sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_road.xml
Modified:
sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/tests/lib/GeoExt.ux/widgets/WFSTFeatureEditingManager.html
Log:
WFSTFeatureEditing - example wfscap and wfsdft xml - tests, use of dummy manager class, new tests up to 'createEditingTools' method
Added: sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfscap_gmap.xml
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfscap_gmap.xml (rev 0)
+++ sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfscap_gmap.xml 2011-05-18 12:53:28 UTC (rev 2704)
@@ -0,0 +1,156 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<WFS_Capabilities
+version='1.0.0' updateSequence='0'
+ xmlns='http://www.opengis.net/wfs'
+ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+ xmlns:ogc='http://www.opengis.net/ogc'
+ xsi:schemaLocation='http://www.opengis.net/wfs
+ http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd' >
+ <Service>
+ <Name>DEMOWFS</Name>
+ <Title>GMap WMS Demo Server</Title>
+ <OnlineResource>http://dev8.mapgears.com/cgi-bin/tinyows-trunk?</OnlineResource>
+ </Service>
+ <Capability>
+ <Request>
+ <GetCapabilities>
+ <DCPType>
+ <HTTP>
+ <Get onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk??"/>
+ </HTTP>
+ </DCPType>
+ <DCPType>
+ <HTTP>
+ <Post onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk?"/>
+ </HTTP>
+ </DCPType>
+ </GetCapabilities>
+ <DescribeFeatureType>
+ <SchemaDescriptionLanguage>
+ <XMLSCHEMA/>
+ </SchemaDescriptionLanguage>
+ <DCPType>
+ <HTTP>
+ <Get onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk??"/>
+ </HTTP>
+ </DCPType>
+ <DCPType>
+ <HTTP>
+ <Post onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk?"/>
+ </HTTP>
+ </DCPType>
+ </DescribeFeatureType>
+ <GetFeature>
+<ResultFormat>
+<GML2/>
+</ResultFormat>
+ <DCPType>
+ <HTTP>
+ <Get onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk??"/>
+ </HTTP>
+ </DCPType>
+ <DCPType>
+ <HTTP>
+ <Post onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk?"/>
+ </HTTP>
+ </DCPType>
+ </GetFeature>
+ <Transaction>
+ <DCPType>
+ <HTTP>
+ <Get onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk??"/>
+ </HTTP>
+ </DCPType>
+ <DCPType>
+ <HTTP>
+ <Post onlineResource="http://dev8.mapgears.com/cgi-bin/tinyows-trunk?"/>
+ </HTTP>
+ </DCPType>
+ </Transaction>
+ </Request>
+ </Capability>
+ <FeatureTypeList>
+ <Operations>
+ <Query/>
+ <Insert/>
+ <Update/>
+ <Delete/>
+ </Operations>
+<FeatureType xmlns:tows="http://localhost">
+ <Name>tows:drainage</Name>
+ <Title>Drainage</Title>
+ <SRS>spatialreferencing.org:900913</SRS>
+ <LatLongBoundingBox minx='-141.002133' miny='44.114653' maxx='-54.439322' maxy='82.794073' />
+</FeatureType>
+<FeatureType xmlns:tows="http://localhost">
+ <Name>tows:road</Name>
+ <Title>Roads</Title>
+ <SRS>spatialreferencing.org:900913</SRS>
+ <LatLongBoundingBox minx='-141.002077' miny='41.683046' maxx='-52.782341' maxy='68.343371' />
+</FeatureType>
+<FeatureType xmlns:tows="http://localhost">
+ <Name>tows:popplace</Name>
+ <Title>Cities</Title>
+ <SRS>spatialreferencing.org:900913</SRS>
+ <LatLongBoundingBox minx='-140.875454' miny='42.053481' maxx='-52.806846' maxy='82.432685' />
+</FeatureType>
+ </FeatureTypeList>
+<ogc:Filter_Capabilities>
+ <ogc:Spatial_Capabilities>
+ <ogc:Spatial_Operators>
+ <ogc:Disjoint/>
+ <ogc:Equals/>
+ <ogc:DWithin/>
+ <ogc:Beyond/>
+ <ogc:Intersect/>
+ <ogc:Touches/>
+ <ogc:Crosses/>
+ <ogc:Within/>
+ <ogc:Contains/>
+ <ogc:Overlaps/>
+ <ogc:BBOX/>
+ </ogc:Spatial_Operators>
+ </ogc:Spatial_Capabilities>
+ <ogc:Scalar_Capabilities>
+ <ogc:Logical_Operators/>
+ <ogc:Comparison_Operators>
+ <ogc:Simple_Comparisons/>
+ <ogc:Between/>
+ <ogc:Like/>
+ <ogc:NullCheck/>
+ </ogc:Comparison_Operators>
+ <ogc:Arithmetic_Operators>
+ <ogc:Simple_Arithmetic/>
+ <ogc:Functions>
+ <ogc:Function_Names>
+ <ogc:Function_Name nArgs='1'>abs</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>acos</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>asin</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>atan</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>avg</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>cbrt</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>ceil</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>ceiling</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>cos</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>cot</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>count</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>degrees</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>exp</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>floor</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>length</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>ln</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>log</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>min</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>max</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>radians</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>round</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>sin</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>sqrt</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>tan</ogc:Function_Name>
+ <ogc:Function_Name nArgs='1'>trunc</ogc:Function_Name>
+ </ogc:Function_Names>
+ </ogc:Functions>
+ </ogc:Arithmetic_Operators>
+ </ogc:Scalar_Capabilities>
+</ogc:Filter_Capabilities>
+</WFS_Capabilities>
Added: sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_drainage.xml
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_drainage.xml (rev 0)
+++ sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_drainage.xml 2011-05-18 12:53:28 UTC (rev 2704)
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<xs:schema targetNamespace='http://localhost' xmlns:tows='http://localhost' xmlns:ogc='http://www.opengis.net/ogc' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:gml='http://www.opengis.net/gml' elementFormDefault='qualified' version='1.0'>
+<xs:import namespace='http://www.opengis.net/gml' schemaLocation='http://schemas.opengis.net/gml/2.1.2/feature.xsd'/>
+<xs:element name='drainage' type='tows:drainageType' substitutionGroup='gml:_Feature' />
+<xs:complexType name='drainageType'>
+ <xs:complexContent>
+ <xs:extension base='gml:AbstractFeatureType'>
+ <xs:sequence>
+ <xs:element name ='area' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='perimeter' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='drainage_' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='drainage_i' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name_e' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name_f' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='the_geom' type='gml:PolygonPropertyType' nillable='true' minOccurs='0' maxOccurs='1'/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+</xs:schema>
\ No newline at end of file
Added: sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_popplace.xml
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_popplace.xml (rev 0)
+++ sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_popplace.xml 2011-05-18 12:53:28 UTC (rev 2704)
@@ -0,0 +1,29 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<xs:schema targetNamespace='http://localhost' xmlns:tows='http://localhost' xmlns:ogc='http://www.opengis.net/ogc' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:gml='http://www.opengis.net/gml' elementFormDefault='qualified' version='1.0'>
+<xs:import namespace='http://www.opengis.net/gml' schemaLocation='http://schemas.opengis.net/gml/2.1.2/feature.xsd'/>
+<xs:element name='popplace' type='tows:popplaceType' substitutionGroup='gml:_Feature' />
+<xs:complexType name='popplaceType'>
+ <xs:complexContent>
+ <xs:extension base='gml:AbstractFeatureType'>
+ <xs:sequence>
+ <xs:element name ='area' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='perimeter' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='popplace_' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='popplace_i' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='unique_key' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name_e' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name_f' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='reg_code' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='nts50' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='lat' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='long' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='sgc_code' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='capital' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='pop_range' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='the_geom' type='gml:PointPropertyType' nillable='true' minOccurs='0' maxOccurs='1'/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+</xs:schema>
\ No newline at end of file
Added: sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_road.xml
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_road.xml (rev 0)
+++ sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/examples/data/wfsdft_gmap_road.xml 2011-05-18 12:53:28 UTC (rev 2704)
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<xs:schema targetNamespace='http://localhost' xmlns:tows='http://localhost' xmlns:ogc='http://www.opengis.net/ogc' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:gml='http://www.opengis.net/gml' elementFormDefault='qualified' version='1.0'>
+<xs:import namespace='http://www.opengis.net/gml' schemaLocation='http://schemas.opengis.net/gml/2.1.2/feature.xsd'/>
+<xs:element name='road' type='tows:roadType' substitutionGroup='gml:_Feature' />
+<xs:complexType name='roadType'>
+ <xs:complexContent>
+ <xs:extension base='gml:AbstractFeatureType'>
+ <xs:sequence>
+ <xs:element name ='fnode_' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='tnode_' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='lpoly_' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='rpoly_' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='length' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='road_' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='road_id' type='double' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='f_code' type='int' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name_e' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='name_f' type='string' nillable='true' minOccurs='0' maxOccurs='1'/>
+ <xs:element name ='the_geom' type='gml:LineStringPropertyType' nillable='true' minOccurs='0' maxOccurs='1'/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+</xs:schema>
\ No newline at end of file
Modified: sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/tests/lib/GeoExt.ux/widgets/WFSTFeatureEditingManager.html
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/tests/lib/GeoExt.ux/widgets/WFSTFeatureEditingManager.html 2011-05-17 17:57:30 UTC (rev 2703)
+++ sandbox/mapgears/geoext.ux/ux/WFSTFeatureEditing/tests/lib/GeoExt.ux/widgets/WFSTFeatureEditingManager.html 2011-05-18 12:53:28 UTC (rev 2704)
@@ -45,14 +45,19 @@
function test_WFSTFeatureEditingManager_constructor(t) {
t.plan(21);
-
+
+ // Redefining the original class methods for testing purpose seemed to
+ // cause several issues. That's why we extend it to a dummy constructor
+ // which is local to the test method and manipulate it, thus not
+ // interfering with other test methods.
+ var DummyManager = Ext.extend(GeoExt.ux.WFSTFeatureEditingManager, {});
var manager, log = [];
- GeoExt.ux.WFSTFeatureEditingManager.prototype.createToolsFromURL = function(url) {
+ DummyManager.prototype.createToolsFromURL = function(url) {
log.push(url);
};
// (1) testing GeoExt.ux.WFSTFeatureEditingManager constructor
- manager = new GeoExt.ux.WFSTFeatureEditingManager({
+ manager = new DummyManager({
// Mandatory properties
"map": getNewMap(),
"toolbar": getNewToolbar(),
@@ -125,10 +130,11 @@
function test_WFSTFeatureEditingManager_events(t) {
t.plan(3);
+ var DummyManager = Ext.extend(GeoExt.ux.WFSTFeatureEditingManager, {});
var manager, log, callback;
- GeoExt.ux.WFSTFeatureEditingManager.prototype.createToolsFromURL = function() {};
+ DummyManager.prototype.createToolsFromURL = function() {};
- manager = new GeoExt.ux.WFSTFeatureEditingManager({
+ manager = new DummyManager({
"map": getNewMap(),
"toolbar": getNewToolbar(),
"mainPanelContainer": getNewMainPanelContainer(),
@@ -162,13 +168,14 @@
function test_WFSTFeatureEditingManager_onWFSCapabilitiesStoreLoad(t) {
t.plan(5);
+ var DummyManager = Ext.extend(GeoExt.ux.WFSTFeatureEditingManager, {});
var manager, log, layer;
// (4) testing onWFSCapabilitiesStoreLoad method called and records
// returned
- GeoExt.ux.WFSTFeatureEditingManager.prototype.onWFSCapabilitiesStoreLoad = function(store, records, options) {
+ DummyManager.prototype.onWFSCapabilitiesStoreLoad = function(store, records, options) {
t.ok(true, "onWFSCapabilitiesStoreLoad callback method called once");
- t.eq(records.length, 2, "Two records are in the store.");
+ t.eq(records.length, 3, "Three records are in the store.");
log = true;
Ext.each(records, function(record, index) {
@@ -192,11 +199,11 @@
t.ok(log, "vector layers have a OpenLayers.Strategy.Save instance correctly set.");
};
- manager = new GeoExt.ux.WFSTFeatureEditingManager({
+ manager = new DummyManager({
"map": getNewMap(),
"toolbar": getNewToolbar(),
"mainPanelContainer": getNewMainPanelContainer(),
- "url": "../../../../../../../geoext/examples/data/wfscap_tiny_100.xml"
+ "url": "../../../../examples/data/wfscap_gmap.xml"
});
// (1) delay call to let store 'load' callback method to be fired
@@ -208,13 +215,14 @@
function test_WFSTFeatureEditingManager_afterWFSCapabilitiesStoreLoad(t) {
t.plan(7);
+ var DummyManager = Ext.extend(GeoExt.ux.WFSTFeatureEditingManager, {});
var manager, log, layer;
// (6) testing layers created after onWFSCapabilitiesStoreLoad method
// called (triggerDescribeFeatureTypes method)
- GeoExt.ux.WFSTFeatureEditingManager.prototype.triggerDescribeFeatureTypes = function() {
+ DummyManager.prototype.triggerDescribeFeatureTypes = function() {
t.ok(true, "triggerDescribeFeatureTypes method called.");
- t.eq(manager.layers.length, 2, "Two layers were added to layers property");
+ t.eq(manager.layers.length, 3, "Three layers were added to layers property");
layer = manager.layers[0];
t.ok(layer.wfstFeatureEditing, "Layer 'wfstFeatureEditing' property correclty set.");
@@ -229,11 +237,11 @@
t.ok(log, "Layers were added to the map");
};
- manager = new GeoExt.ux.WFSTFeatureEditingManager({
+ manager = new DummyManager({
"map": getNewMap(),
"toolbar": getNewToolbar(),
"mainPanelContainer": getNewMainPanelContainer(),
- "url": "../../../../../../../geoext/examples/data/wfscap_tiny_100.xml"
+ "url": "../../../../examples/data/wfscap_gmap.xml"
});
// (1) delay call to let store 'load' callback method to be fired
@@ -241,6 +249,64 @@
t.ok(true, "waited for 2s");
});
}
+
+ function test_WFSTFeatureEditingManager_triggerDescribeFeatureTypes(t) {
+ t.plan(0);
+ // testing this method would require a valid WFS service. Todo ?
+ }
+
+ function test_WFSTFeatureEditingManager_onDescribeFeatureTypeSuccess(t) {
+ t.plan(5);
+
+ var DummyManager = Ext.extend(GeoExt.ux.WFSTFeatureEditingManager, {});
+ var manager, log, layer;
+
+ // (1) testing one layer (road - LineString) DescribeFeatureType request
+ DummyManager.prototype.triggerDescribeFeatureTypes = function(layers) {
+ // remove other layers
+ layer = this.map.getLayersByName("Cities")[0];
+ this.map.removeLayer(layer);
+ layer.destroy();
+ layer = this.map.getLayersByName("Drainage")[0];
+ this.map.removeLayer(layer);
+ layer.destroy();
+ layer = this.map.getLayersByName("Roads")[0];
+ // keep only 'road' layer
+ this.layers = [layer];
+ t.eq(this.layers.length, 1, "Only one layer kept for test purpose");
+ layer = this.layers[0];
+ // manually trigger the DescribeFeatureType request
+ OpenLayers.loadURL(
+ "../../../../examples/data/wfsdft_gmap_road.xml",
+ {},
+ {layer: layer, manager: this},
+ this.onDescribeFeatureTypeSuccess,
+ this.onDescribeFeatureTypeFailure
+ );
+ };
+
+ // (3) testing layer fields and drawHandler which were read by the
+ // onDescribeFeatureTypeSuccess method
+ DummyManager.prototype.createEditingTools = function() {
+ layer = this.layers[0];
+ t.ok(layer.wfstFeatureEditing.fields, "fields property set");
+ t.eq(layer.wfstFeatureEditing.fields.length, 11, "Eleven fields were read from 'road' feature type, including the_geom");
+ log = (layer.wfstFeatureEditing.drawHandler === OpenLayers.Handler.Path);
+ t.ok(log, "Handler correctly set to OpenLayers.Handler.Path for the 'road' layer");
+ };
+
+ manager = new DummyManager({
+ "map": getNewMap(),
+ "toolbar": getNewToolbar(),
+ "mainPanelContainer": getNewMainPanelContainer(),
+ "url": "../../../../examples/data/wfscap_gmap.xml"
+ });
+
+ // (1) delay call to let store 'load' callback method to be fired
+ t.delay_call(2, function() {
+ t.ok(true, "waited for 2s");
+ });
+ }
</script>
<body>
<div id="map" style="width: 200px; height: 200px;"></div>
More information about the Commits
mailing list