[Commits] r2823 - in sandbox/gxm/geoext/gxm/tests: lib/widgets winopen

commits at geoext.org commits at geoext.org
Tue Aug 23 14:44:27 CEST 2011


Author: marcjansen
Date: 2011-08-23 14:44:27 +0200 (Tue, 23 Aug 2011)
New Revision: 2823

Modified:
   sandbox/gxm/geoext/gxm/tests/lib/widgets/Button.test.html
   sandbox/gxm/geoext/gxm/tests/winopen/button-test-window.html
Log:
[gxm] possible fix for failing tests in Safari

Modified: sandbox/gxm/geoext/gxm/tests/lib/widgets/Button.test.html
===================================================================
--- sandbox/gxm/geoext/gxm/tests/lib/widgets/Button.test.html	2011-08-19 18:42:29 UTC (rev 2822)
+++ sandbox/gxm/geoext/gxm/tests/lib/widgets/Button.test.html	2011-08-23 12:44:27 UTC (rev 2823)
@@ -25,7 +25,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"mousedown", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null,
@@ -36,7 +36,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"mouseup", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -47,7 +47,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"click", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -58,7 +58,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"mousedown", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -69,7 +69,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"mouseup", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -80,7 +80,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"click", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -91,7 +91,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"mousedown", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -102,7 +102,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"mouseup", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -113,7 +113,7 @@
                 which:"1", shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"3040", x:"924", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"3", clientY:"10", 
-                ctrlKey:"false", target:"#ext-comp-1010 DIV", layerY:"3", 
+                ctrlKey:"false", target:"#navigation-btn DIV", layerY:"3", 
                 charCode:"0", type:"click", pageX:"924", 
                 cancelBubble:"false", pageY:"10", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"6", relatedTarget:null, 
@@ -129,62 +129,62 @@
                 shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"1695", x:"55", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"6", clientY:"11", 
-                ctrlKey:"false", target:"#ext-comp-1008 DIV", layerY:"6", 
+                ctrlKey:"false", target:"#zoomin-btn DIV", layerY:"6", 
                 charCode:"0", type:"mousedown", pageX:"55", 
                 cancelBubble:"false", pageY:"11", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"9", relatedTarget:null, 
-                screenY:"73", time:"1000"
+                screenY:"73", time:"2000"
             },
             {
                 layerX:"9", y:"11", returnValue:"true", clientX:"55", which:"1",
                 shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"1695", x:"55", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"6", clientY:"11", 
-                ctrlKey:"false", target:"#ext-comp-1008 DIV", layerY:"6", 
+                ctrlKey:"false", target:"#zoomin-btn DIV", layerY:"6", 
                 charCode:"0", type:"mouseup", pageX:"55", 
                 cancelBubble:"false", pageY:"11", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"9", relatedTarget:null, 
-                screenY:"73", time:"800"
+                screenY:"73", time:"1600"
             },
             {
                 layerX:"9", y:"11", returnValue:"true", clientX:"55", which:"1",
                 shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"1695", x:"55", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"6", clientY:"11", 
-                ctrlKey:"false", target:"#ext-comp-1008 DIV", layerY:"6", 
+                ctrlKey:"false", target:"#zoomin-btn DIV", layerY:"6", 
                 charCode:"0", type:"click", pageX:"55", 
                 cancelBubble:"false", pageY:"11", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"9", relatedTarget:null, 
-                screenY:"73", time:"600"
+                screenY:"73", time:"1200"
             },
             {
                 layerX:"9", y:"11", returnValue:"true", clientX:"15", which:"1",
                 shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"1695", x:"15", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"6", clientY:"11", 
-                ctrlKey:"false", target:"#ext-comp-1004 DIV", layerY:"6", 
+                ctrlKey:"false", target:"#zoomout-btn DIV", layerY:"6", 
                 charCode:"0", type:"mousedown", pageX:"15", 
                 cancelBubble:"false", pageY:"11", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"9", relatedTarget:null, 
-                screenY:"73", time:"400"
+                screenY:"73", time:"800"
             },
             {
                 layerX:"9", y:"11", returnValue:"true", clientX:"15", which:"1",
                 shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"1695", x:"15", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"6", clientY:"11", 
-                ctrlKey:"false", target:"#ext-comp-1004 DIV", layerY:"6", 
+                ctrlKey:"false", target:"#zoomout-btn DIV", layerY:"6", 
                 charCode:"0", type:"mouseup", pageX:"15", 
                 cancelBubble:"false", pageY:"11", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"9", relatedTarget:null, 
-                screenY:"73", time:"200"
+                screenY:"73", time:"400"
             },
             {
                 layerX:"9", y:"11", returnValue:"true", clientX:"15", which:"1",
                 shiftKey:"false", cancelable:"true", bubbles:"true", 
                 screenX:"1695", x:"15", button:"0", defaultPrevented:"false", 
                 altKey:"false", keyCode:"0", offsetY:"6", clientY:"11", 
-                ctrlKey:"false", target:"#ext-comp-1004 DIV", layerY:"6", 
+                ctrlKey:"false", target:"#zoomout-btn DIV", layerY:"6", 
                 charCode:"0", type:"click", pageX:"15", 
                 cancelBubble:"false", pageY:"11", clipboardData:null, 
                 metaKey:"false", detail:"1", offsetX:"9", relatedTarget:null, 

Modified: sandbox/gxm/geoext/gxm/tests/winopen/button-test-window.html
===================================================================
--- sandbox/gxm/geoext/gxm/tests/winopen/button-test-window.html	2011-08-19 18:42:29 UTC (rev 2822)
+++ sandbox/gxm/geoext/gxm/tests/winopen/button-test-window.html	2011-08-23 12:44:27 UTC (rev 2823)
@@ -20,15 +20,6 @@
         <script type="text/javascript" src="../../lib/GXM.loader.js"></script>
         
         <script type="text/javascript">
-            
-//TODO: remove eventually
-var log = function(){
-    if (console && console.log) {
-        for (arg in arguments) {
-            console.log(arguments[arg]);
-        }
-    }
-};
 
 var viewport;
 
@@ -84,6 +75,7 @@
         var zoomout = new OpenLayers.Control.ZoomOut();
 
         var btnZoomIn = new GXM.Button({
+            id: 'zoomin-btn',
             control: zoomin,
             map: map,
             title: 'zoomIn',
@@ -92,6 +84,7 @@
             handler: Ext.createDelegate(btnClickCallback)
         });
         var btnZoomOut = {
+            id: 'zoomout-btn',
             xtype: 'gxm_button',
             control: zoomout,
             map: map,
@@ -104,6 +97,7 @@
         var nav = new OpenLayers.Control.TouchNavigation();
         
         var btnNavigation = {
+            id: 'navigation-btn',
             xtype: 'gxm_button',
             exclusiveGroup: 'working-on-map',
             map: map,



More information about the Commits mailing list