[Commits] r1703 - in sandbox/redlining/ux/FeatureEditing: tests tests/ux/widgets/form ux/widgets/form

commits at geoext.org commits at geoext.org
Sun Jan 10 21:16:41 CET 2010


Author: cmoullet
Date: 2010-01-10 21:16:41 +0100 (Sun, 10 Jan 2010)
New Revision: 1703

Added:
   sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/FeaturePanel.html
   sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/RedliningPanel.html
Removed:
   sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/ComplexRedliningForm.html
Modified:
   sandbox/redlining/ux/FeatureEditing/tests/list-tests.html
   sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js
Log:
Add tests. not working

Modified: sandbox/redlining/ux/FeatureEditing/tests/list-tests.html
===================================================================
--- sandbox/redlining/ux/FeatureEditing/tests/list-tests.html	2010-01-10 20:00:49 UTC (rev 1702)
+++ sandbox/redlining/ux/FeatureEditing/tests/list-tests.html	2010-01-10 20:16:41 UTC (rev 1703)
@@ -1,3 +1,4 @@
 <ul id="testlist">
-  <li>ux/widgets/form/ComplexRedliningForm.html</li>
+  <li>ux/widgets/form/FeaturePanel.html</li>
+  <li>ux/widgets/form/RedliningPanel.html</li>
 </ul>

Deleted: sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/ComplexRedliningForm.html
===================================================================
--- sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/ComplexRedliningForm.html	2010-01-10 20:00:49 UTC (rev 1702)
+++ sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/ComplexRedliningForm.html	2010-01-10 20:16:41 UTC (rev 1703)
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
-
-    <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/adapter/ext/ext-base.js"></script>
-    <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/ext-all.js"></script>
-    <script type="text/javascript" src="../../../../../../trunk/geoext/lib/GeoExt.js"></script>
-    <script type="text/javascript" src="../../../../../../trunk/openlayers/lib/OpenLayers.js"></script>
-    <script type="text/javascript" src="../../../../ux/RedLining.js"></script>
-
-    <script type="text/javascript">
-        function test_constructor(t) {
-            t.plan(2);
-
-            /*
-             * Set up
-             */
-
-            var mapPanel = new GeoExt.MapPanel({
-                region: "center",
-                layers: [new OpenLayers.Layer.WMS("Global Imagery",
-                        "http://labs.metacarta.com/wms/vmap0",
-                {layers: "basic"})] ,
-                center: [16,48],
-                zoom: 5
-            });
-
-            var redLiningTool = new GeoExt.ux.form.ComplexRedLiningForm({
-                renderTo: "form",
-                title: "RedLining Manager",
-                map: mapPanel.map,
-                width: 300
-            });
-
-            /*
-             * Test
-             */
-
-            t.ok(redLiningTool instanceof GeoExt.ux.form.ComplexRedLiningForm,
-                    "ctor creates a GeoExt.ux.form.ComplexRedLiningForm object");
-            t.ok(redLiningTool instanceof Ext.form.FormPanel,
-                    "ctor creates an Ext.form.FormPanel object");
-        }
-    </script>
-<body>
-<div id="form"></div>
-</body>
-</html>

Added: sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/FeaturePanel.html
===================================================================
--- sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/FeaturePanel.html	                        (rev 0)
+++ sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/FeaturePanel.html	2010-01-10 20:16:41 UTC (rev 1703)
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html debug="true">
+<head>
+
+    <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/adapter/ext/ext-base.js"></script>
+    <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/ext-all.js"></script>
+    <script type="text/javascript" src="../../../../../../trunk/geoext/lib/GeoExt.js"></script>
+    <script type="text/javascript" src="../../../../../../trunk/openlayers/lib/OpenLayers.js"></script>
+    <script type="text/javascript" src="../../../../ux/FeatureEditing.js"></script>
+
+    <script type="text/javascript">
+        function test_constructor(t) {
+            t.plan(0);
+
+            /*
+             * Set up
+             */
+
+            var mapPanel = new GeoExt.MapPanel({
+                region: "center",
+                layers: [new OpenLayers.Layer.WMS("Global Imagery",
+                        "http://labs.metacarta.com/wms/vmap0",
+                {layers: "basic"})] ,
+                center: [16,48],
+                zoom: 5
+            });
+        }
+    </script>
+<body>
+<div id="featurePanel"></div>
+</body>
+</html>

Added: sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/RedliningPanel.html
===================================================================
--- sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/RedliningPanel.html	                        (rev 0)
+++ sandbox/redlining/ux/FeatureEditing/tests/ux/widgets/form/RedliningPanel.html	2010-01-10 20:16:41 UTC (rev 1703)
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html debug="true">
+<head>
+
+    <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/adapter/ext/ext-base.js"></script>
+    <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/ext-all.js"></script>
+    <script type="text/javascript" src="../../../../../../trunk/geoext/lib/GeoExt.js"></script>
+    <script type="text/javascript" src="../../../../../../trunk/openlayers/lib/OpenLayers.js"></script>
+    <script type="text/javascript" src="../../../../ux/FeatureEditing.js"></script>
+
+    <script type="text/javascript">
+        function test_constructor(t) {
+            t.plan(2);
+
+            /*
+             * Set up
+             */
+
+            var mapPanel = new GeoExt.MapPanel({
+                region: "center",
+                layers: [new OpenLayers.Layer.WMS("Global Imagery",
+                        "http://labs.metacarta.com/wms/vmap0",
+                {layers: "basic"})] ,
+                center: [16,48],
+                zoom: 5
+            });
+            var redliningPanel = GeoExt.ux.form.RedLiningPanel({
+                renderTo: "redliningPanel",
+                title: "RedLining Panel",
+                map: mapPanel.map,
+                width: 300
+            });
+
+            /*
+             * Test
+             */
+
+            t.ok(redliningPanel instanceof GeoExt.ux.form.RedLiningPanel,
+                    "ctor creates a GeoExt.ux.form.RedLiningPanel object");
+            t.ok(redliningPanel instanceof Ext.form.FormPanel,
+                    "ctor creates an Ext.form.FormPanel object");
+        }
+    </script>
+<body>
+<div id="redliningPanel"></div>
+</body>
+</html>
\ No newline at end of file

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js	2010-01-10 20:00:49 UTC (rev 1702)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js	2010-01-10 20:16:41 UTC (rev 1703)
@@ -79,5 +79,5 @@
     
 });
 
-/** api: xtype = gx_featureform */
+/** api: xtype = gx_featurepanel */
 Ext.reg("gx_featurepanel", GeoExt.ux.form.FeaturePanel);



More information about the Commits mailing list