[Commits] r1831 - in ux/geoext.ux/ux/GeoNamesSearchCombo: lib/GeoExt.ux.GeoNamesSearchCombo lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form tests/lib/GeoExt.ux.GeoNamesSearchCombo tests/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form

commits at geoext.org commits at geoext.org
Wed Jan 27 20:08:36 CET 2010


Author: bbinet
Date: 2010-01-27 20:08:36 +0100 (Wed, 27 Jan 2010)
New Revision: 1831

Added:
   ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.js
   ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.html
Removed:
   ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.js
   ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.html
Log:
remove widgets/form/ from GeoNamesSearchCombo structure because they are useless

Copied: ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.js (from rev 1830, ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.js)
===================================================================
--- ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.js	                        (rev 0)
+++ ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.js	2010-01-27 19:08:36 UTC (rev 1831)
@@ -0,0 +1,315 @@
+/**
+ * Copyright (c) 2008-2009 The Open Source Geospatial Foundation
+ *
+ * Published under the BSD license.
+ * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
+ * of the license.
+ */
+
+/** api: (define)
+ *  module = GeoExt.ux
+ *  class = GeoNamesSearchCombo
+ *  base_link = `Ext.form.ComboBox <http://extjs.com/deploy/dev/docs/?class=Ext.form.ComboBox>`_
+ */
+
+Ext.namespace("GeoExt.ux");
+
+GeoExt.ux.GeoNamesSearchCombo = Ext.extend(Ext.form.ComboBox, {
+    /** api: config[map]
+     *  ``OpenLayers.Map or Object``  A configured map or a configuration object
+     *  for the map constructor, required only if :attr:`zoom` is set to
+     *  value greater than or equal to 0.
+     */
+    /** private: property[map]
+     *  ``OpenLayers.Map``  The map object.
+     */
+    map: null,
+
+    /** api: config[width]
+     *  See http://www.extjs.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width,
+     *  default value is 350.
+     */
+    width: 350,
+
+    /** api: config[listWidth]
+     *  See http://www.extjs.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth,
+     *  default value is 350.
+     */
+    listWidth: 350,
+
+    /** api: config[loadingText]
+     *  See http://www.extjs.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText,
+     *  default value is "Search in Geonames...".
+     */
+    loadingText: 'Search in Geonames...',
+
+    /** api: config[emptyText]
+     *  See http://www.extjs.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText,
+     *  default value is "Search location in Geonames".
+     */
+    emptyText: 'Search location in Geonames',
+
+    /** api: config[zoom]
+     *  ``Number`` Zoom level for recentering the map after search, if set to
+     *  a negative number the map isn't recentered, defaults to 8.
+     */
+    /** private: property[zoom]
+     *  ``Number``
+     */
+    zoom: 8,
+
+    /** api: config[minChars]
+     *  ``Number`` Minimum number of characters to be typed before
+     *  search occurs, defaults to 1.
+     */
+    minChars: 1,
+
+    /** api: config[queryDelay]
+     *  ``Number`` Delay before the search occurs, defaults to 50 ms.
+     */
+    queryDelay: 50,
+
+    /** api: config[maxRows]
+     *  `String` The maximum number of rows in the responses, defaults to 20,
+     *  maximum allowed value is 1000.
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[maxRows]
+     *  ``String``
+     */
+    maxRows: '20',
+
+    /** api: config[tpl]
+     *  ``Ext.XTemplate or String`` Template for presenting the result in the
+     *  list (see http://www.extjs.com/deploy/dev/docs/output/Ext.XTemplate.html),
+     *  if not set a default value is provided.
+     */
+    tpl: '<tpl for="."><div class="x-combo-list-item"><h1>{name}<br></h1>{fcodeName} - {countryName}</div></tpl>',
+
+    /** api: config[lang]
+     *  ``String`` Place name and country name will be returned in the specified
+     *  language. Default is English (en). See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[lang]
+     *  ``String``
+     */
+    lang: 'en',
+
+    /** api: config[countryString]
+     *  ``String`` Country in which to make a GeoNames search, default is all countries.
+     *  Providing several countries can be done like: countryString: country=FR&country=GP
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[countryString]
+     *  ``String``
+     */
+    countryString: '',
+
+    /** api: config[continentCode]
+     *  ``String`` Restricts the search for toponym of the given continent,
+     *  default is all continents.
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[continentCode]
+     *  ``String``
+     */
+    continentCode: '',
+    
+    /** api: config[adminCode1]
+     *  ``String`` Code of administrative subdivision, default is all
+     *  administrative subdivisions.
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[adminCode1]
+     *  ``String``
+     */
+    adminCode1: '',
+
+    /** api: config[adminCode2]
+     *  ``String`` Code of administrative subdivision, default is all administrative
+     *  subdivisions.
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[adminCode2]
+     *  ``String``
+     */
+    adminCode2: '',
+
+    /** api: config[adminCode3]
+     *  ``String`` Code of administrative subdivision, default is all administrative
+     *  subdivisions.
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[adminCode3]
+     *  ``String``
+     */
+    adminCode3: '',
+
+    /** api: config[featureClassString]
+     *  ``String`` Feature classes in which to make a GeoNames search, default is all
+     *  feature classes.
+     *  Providing several feature classes can be done with
+     *  ``featureClassString: "featureClass=P&featureClass=A"``
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[featureClassString]
+     *  ``String``
+     */
+    featureClassString: '',
+
+    /** api: config[featureCodeString]
+     *  ``String`` Feature code in which to make a GeoNames search, default is all
+     *  feature codes.
+     *  Providing several feature codes can be done with
+     *  ``featureCodeString: "featureCode=PPLC&featureCode=PPLX"``
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[featureCodeString]
+     *  ``String``
+     */
+    featureCodeString: '',
+
+    /** api: config[tag]
+     *  ``String`` Search for toponyms tagged with the specified tag, default
+     *  is all tags.
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[tag]
+     *  ``String``
+     */
+    tag: '',
+
+    /** api: config[charset]
+     *  `String` Defines the encoding used for the document returned by
+     *  the web service, defaults to 'UTF8'.
+     *  See: http://www.geonames.org/export/geonames-search.html
+     */
+    /** private: property[charset]
+     *  ``String``
+     */
+    charset: 'UTF8',
+
+    /** private: property[hideTrigger]
+     *  Hide trigger of the combo.
+     */
+    hideTrigger: true,
+
+    /** private: property[displayField]
+     *  Display field name
+     */
+    displayField: 'name',
+
+    /** private: property[forceSelection]
+     *  Force selection.
+     */
+    forceSelection: true,
+
+    /** private: property[queryParam]
+     *  Query parameter.
+     */
+    queryParam: 'name_startsWith',
+
+    /** private: property[url]
+     *  Url of the GeoNames service: http://www.GeoNames.org/export/GeoNames-search.html
+     */
+    url: 'http://ws.geonames.org/searchJSON?',
+
+    /** private: constructor
+     */
+    initComponent: function() {
+        GeoExt.ux.GeoNamesSearchCombo.superclass.initComponent.apply(this, arguments);
+
+        var urlAppendString = '';
+
+        if (this.countryString.length > 0) {
+            urlAppendString = urlAppendString + this.countryString;      
+        }
+
+        if (this.featureClassString.length > 0) {
+            urlAppendString = urlAppendString + this.featureClassString;
+        }
+
+        if (this.featureCodeString.length > 0) {
+            urlAppendString = urlAppendString + this.featureCodeString;
+        }
+        
+        this.store = new Ext.data.Store({
+            proxy: new Ext.data.ScriptTagProxy({
+                url: this.url + urlAppendString,
+                method: 'GET'
+            }),
+            baseParams: {
+                maxRows: this.maxRows,
+                lang: this.lang,
+                continentCode: this.continentCode,
+                adminCode1: this.adminCode1,
+                adminCode2: this.adminCode2,
+                adminCode3: this.adminCode3,
+                tag: this.tag,
+                charset: this.charset
+            },
+            reader: new Ext.data.JsonReader({
+                idProperty: 'geonameId',
+                root: "geonames",
+                totalProperty: "totalResultsCount",
+                fields: [
+                    {
+                        name: 'geonameId'
+                    },
+                    {
+                        name: 'countryName'
+                    },
+                    {
+                        name: 'lng'
+                    },
+                    {
+                        name: 'lat'
+                    },
+                    {
+                        name: 'name'
+                    },
+                    {
+                        name: 'fcodeName'
+                    },
+                    {
+                        name: 'adminCode1'
+                    },
+                    {
+                        name: 'fclName'
+                    },
+                    {
+                        name: 'countryCode'
+                    },
+                    {
+                        name: 'fcl'
+                    },
+                    {
+                        name: 'fcode'
+                    },
+                    {
+                        name: 'population'
+                    },
+                    {
+                        name: 'adminName1'
+                    }
+                ]
+            })
+        });
+
+        if(this.zoom > 0) {
+            this.on("select", function(combo, record, index) {
+                var position = new OpenLayers.LonLat(
+                    record.data.lng, record.data.lat
+                );
+                position.transform(
+                    new OpenLayers.Projection("EPSG:4326"),
+                    this.map.getProjectionObject()
+                );
+                this.map.setCenter(position, this.zoom);
+            }, this);
+        }
+    }
+});
+
+/** api: xtype = gxux_geonamessearchcombo */
+Ext.reg('gxux_geonamessearchcombo', GeoExt.ux.GeoNamesSearchCombo);

Deleted: ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.js
===================================================================
--- ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.js	2010-01-27 19:01:14 UTC (rev 1830)
+++ ux/geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.js	2010-01-27 19:08:36 UTC (rev 1831)
@@ -1,315 +0,0 @@
-/**
- * Copyright (c) 2008-2009 The Open Source Geospatial Foundation
- *
- * Published under the BSD license.
- * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
- * of the license.
- */
-
-/** api: (define)
- *  module = GeoExt.ux
- *  class = GeoNamesSearchCombo
- *  base_link = `Ext.form.ComboBox <http://extjs.com/deploy/dev/docs/?class=Ext.form.ComboBox>`_
- */
-
-Ext.namespace("GeoExt.ux");
-
-GeoExt.ux.GeoNamesSearchCombo = Ext.extend(Ext.form.ComboBox, {
-    /** api: config[map]
-     *  ``OpenLayers.Map or Object``  A configured map or a configuration object
-     *  for the map constructor, required only if :attr:`zoom` is set to
-     *  value greater than or equal to 0.
-     */
-    /** private: property[map]
-     *  ``OpenLayers.Map``  The map object.
-     */
-    map: null,
-
-    /** api: config[width]
-     *  See http://www.extjs.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width,
-     *  default value is 350.
-     */
-    width: 350,
-
-    /** api: config[listWidth]
-     *  See http://www.extjs.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth,
-     *  default value is 350.
-     */
-    listWidth: 350,
-
-    /** api: config[loadingText]
-     *  See http://www.extjs.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText,
-     *  default value is "Search in Geonames...".
-     */
-    loadingText: 'Search in Geonames...',
-
-    /** api: config[emptyText]
-     *  See http://www.extjs.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText,
-     *  default value is "Search location in Geonames".
-     */
-    emptyText: 'Search location in Geonames',
-
-    /** api: config[zoom]
-     *  ``Number`` Zoom level for recentering the map after search, if set to
-     *  a negative number the map isn't recentered, defaults to 8.
-     */
-    /** private: property[zoom]
-     *  ``Number``
-     */
-    zoom: 8,
-
-    /** api: config[minChars]
-     *  ``Number`` Minimum number of characters to be typed before
-     *  search occurs, defaults to 1.
-     */
-    minChars: 1,
-
-    /** api: config[queryDelay]
-     *  ``Number`` Delay before the search occurs, defaults to 50 ms.
-     */
-    queryDelay: 50,
-
-    /** api: config[maxRows]
-     *  `String` The maximum number of rows in the responses, defaults to 20,
-     *  maximum allowed value is 1000.
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[maxRows]
-     *  ``String``
-     */
-    maxRows: '20',
-
-    /** api: config[tpl]
-     *  ``Ext.XTemplate or String`` Template for presenting the result in the
-     *  list (see http://www.extjs.com/deploy/dev/docs/output/Ext.XTemplate.html),
-     *  if not set a default value is provided.
-     */
-    tpl: '<tpl for="."><div class="x-combo-list-item"><h1>{name}<br></h1>{fcodeName} - {countryName}</div></tpl>',
-
-    /** api: config[lang]
-     *  ``String`` Place name and country name will be returned in the specified
-     *  language. Default is English (en). See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[lang]
-     *  ``String``
-     */
-    lang: 'en',
-
-    /** api: config[countryString]
-     *  ``String`` Country in which to make a GeoNames search, default is all countries.
-     *  Providing several countries can be done like: countryString: country=FR&country=GP
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[countryString]
-     *  ``String``
-     */
-    countryString: '',
-
-    /** api: config[continentCode]
-     *  ``String`` Restricts the search for toponym of the given continent,
-     *  default is all continents.
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[continentCode]
-     *  ``String``
-     */
-    continentCode: '',
-    
-    /** api: config[adminCode1]
-     *  ``String`` Code of administrative subdivision, default is all
-     *  administrative subdivisions.
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[adminCode1]
-     *  ``String``
-     */
-    adminCode1: '',
-
-    /** api: config[adminCode2]
-     *  ``String`` Code of administrative subdivision, default is all administrative
-     *  subdivisions.
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[adminCode2]
-     *  ``String``
-     */
-    adminCode2: '',
-
-    /** api: config[adminCode3]
-     *  ``String`` Code of administrative subdivision, default is all administrative
-     *  subdivisions.
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[adminCode3]
-     *  ``String``
-     */
-    adminCode3: '',
-
-    /** api: config[featureClassString]
-     *  ``String`` Feature classes in which to make a GeoNames search, default is all
-     *  feature classes.
-     *  Providing several feature classes can be done with
-     *  ``featureClassString: "featureClass=P&featureClass=A"``
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[featureClassString]
-     *  ``String``
-     */
-    featureClassString: '',
-
-    /** api: config[featureCodeString]
-     *  ``String`` Feature code in which to make a GeoNames search, default is all
-     *  feature codes.
-     *  Providing several feature codes can be done with
-     *  ``featureCodeString: "featureCode=PPLC&featureCode=PPLX"``
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[featureCodeString]
-     *  ``String``
-     */
-    featureCodeString: '',
-
-    /** api: config[tag]
-     *  ``String`` Search for toponyms tagged with the specified tag, default
-     *  is all tags.
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[tag]
-     *  ``String``
-     */
-    tag: '',
-
-    /** api: config[charset]
-     *  `String` Defines the encoding used for the document returned by
-     *  the web service, defaults to 'UTF8'.
-     *  See: http://www.geonames.org/export/geonames-search.html
-     */
-    /** private: property[charset]
-     *  ``String``
-     */
-    charset: 'UTF8',
-
-    /** private: property[hideTrigger]
-     *  Hide trigger of the combo.
-     */
-    hideTrigger: true,
-
-    /** private: property[displayField]
-     *  Display field name
-     */
-    displayField: 'name',
-
-    /** private: property[forceSelection]
-     *  Force selection.
-     */
-    forceSelection: true,
-
-    /** private: property[queryParam]
-     *  Query parameter.
-     */
-    queryParam: 'name_startsWith',
-
-    /** private: property[url]
-     *  Url of the GeoNames service: http://www.GeoNames.org/export/GeoNames-search.html
-     */
-    url: 'http://ws.geonames.org/searchJSON?',
-
-    /** private: constructor
-     */
-    initComponent: function() {
-        GeoExt.ux.GeoNamesSearchCombo.superclass.initComponent.apply(this, arguments);
-
-        var urlAppendString = '';
-
-        if (this.countryString.length > 0) {
-            urlAppendString = urlAppendString + this.countryString;      
-        }
-
-        if (this.featureClassString.length > 0) {
-            urlAppendString = urlAppendString + this.featureClassString;
-        }
-
-        if (this.featureCodeString.length > 0) {
-            urlAppendString = urlAppendString + this.featureCodeString;
-        }
-        
-        this.store = new Ext.data.Store({
-            proxy: new Ext.data.ScriptTagProxy({
-                url: this.url + urlAppendString,
-                method: 'GET'
-            }),
-            baseParams: {
-                maxRows: this.maxRows,
-                lang: this.lang,
-                continentCode: this.continentCode,
-                adminCode1: this.adminCode1,
-                adminCode2: this.adminCode2,
-                adminCode3: this.adminCode3,
-                tag: this.tag,
-                charset: this.charset
-            },
-            reader: new Ext.data.JsonReader({
-                idProperty: 'geonameId',
-                root: "geonames",
-                totalProperty: "totalResultsCount",
-                fields: [
-                    {
-                        name: 'geonameId'
-                    },
-                    {
-                        name: 'countryName'
-                    },
-                    {
-                        name: 'lng'
-                    },
-                    {
-                        name: 'lat'
-                    },
-                    {
-                        name: 'name'
-                    },
-                    {
-                        name: 'fcodeName'
-                    },
-                    {
-                        name: 'adminCode1'
-                    },
-                    {
-                        name: 'fclName'
-                    },
-                    {
-                        name: 'countryCode'
-                    },
-                    {
-                        name: 'fcl'
-                    },
-                    {
-                        name: 'fcode'
-                    },
-                    {
-                        name: 'population'
-                    },
-                    {
-                        name: 'adminName1'
-                    }
-                ]
-            })
-        });
-
-        if(this.zoom > 0) {
-            this.on("select", function(combo, record, index) {
-                var position = new OpenLayers.LonLat(
-                    record.data.lng, record.data.lat
-                );
-                position.transform(
-                    new OpenLayers.Projection("EPSG:4326"),
-                    this.map.getProjectionObject()
-                );
-                this.map.setCenter(position, this.zoom);
-            }, this);
-        }
-    }
-});
-
-/** api: xtype = gxux_geonamessearchcombo */
-Ext.reg('gxux_geonamessearchcombo', GeoExt.ux.GeoNamesSearchCombo);

Copied: ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.html (from rev 1830, ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.html)
===================================================================
--- ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.html	                        (rev 0)
+++ ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/GeoNamesSearchCombo.html	2010-01-27 19:08:36 UTC (rev 1831)
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html debug="true">
+<head>
+
+    <script type="text/javascript" src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
+    <script type="text/javascript" src="../../../../../../../../geoext/lib/GeoExt.js"></script>
+    <script type="text/javascript" src="../../../../../lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.js"></script>
+
+    <script type="text/javascript">
+        function test_ctor(t) {
+            t.plan(5);
+
+            // set up
+
+            var c, map = {};
+
+            // test
+
+            c = new GeoExt.ux.GeoNamesSearchCombo({
+                renderTo: "GeoNamesSearch",
+                map: map
+            });
+            t.ok(c instanceof GeoExt.ux.GeoNamesSearchCombo,
+                 "ctor creates a GeoExt.ux.GeoNamesSearchCombo object");
+            t.ok(c instanceof Ext.form.ComboBox,
+                 "ctor creates an Ext.form.ComboBox object");
+            t.ok(c.hasListener("select"),
+                 "ctor registers a \"select\" listener");
+            t.eq(c.map, map,
+                 "ctor sets map in instance");
+            c.destroy();
+
+            c = new GeoExt.ux.GeoNamesSearchCombo({
+                renderTo: "GeoNamesSearch",
+                zoom: -1
+            });
+            t.ok(!c.hasListener("select"),
+                 "ctor does not register a \"select\" listener if the " +
+                 "zoom value is negative");
+            c.destroy();
+        }
+    </script>
+<body>
+  <div id="GeoNamesSearch"></div>
+</body>
+</html>

Deleted: ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.html
===================================================================
--- ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.html	2010-01-27 19:01:14 UTC (rev 1830)
+++ ux/geoext.ux/ux/GeoNamesSearchCombo/tests/lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.html	2010-01-27 19:08:36 UTC (rev 1831)
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html debug="true">
-<head>
-
-    <script type="text/javascript" src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
-    <script type="text/javascript" src="../../../../../../../../geoext/lib/GeoExt.js"></script>
-    <script type="text/javascript" src="../../../../../lib/GeoExt.ux.GeoNamesSearchCombo/widgets/form/GeoNamesSearchCombo.js"></script>
-
-    <script type="text/javascript">
-        function test_ctor(t) {
-            t.plan(5);
-
-            // set up
-
-            var c, map = {};
-
-            // test
-
-            c = new GeoExt.ux.GeoNamesSearchCombo({
-                renderTo: "GeoNamesSearch",
-                map: map
-            });
-            t.ok(c instanceof GeoExt.ux.GeoNamesSearchCombo,
-                 "ctor creates a GeoExt.ux.GeoNamesSearchCombo object");
-            t.ok(c instanceof Ext.form.ComboBox,
-                 "ctor creates an Ext.form.ComboBox object");
-            t.ok(c.hasListener("select"),
-                 "ctor registers a \"select\" listener");
-            t.eq(c.map, map,
-                 "ctor sets map in instance");
-            c.destroy();
-
-            c = new GeoExt.ux.GeoNamesSearchCombo({
-                renderTo: "GeoNamesSearch",
-                zoom: -1
-            });
-            t.ok(!c.hasListener("select"),
-                 "ctor does not register a \"select\" listener if the " +
-                 "zoom value is negative");
-            c.destroy();
-        }
-    </script>
-<body>
-  <div id="GeoNamesSearch"></div>
-</body>
-</html>



More information about the Commits mailing list