[OpenLayers-Commits] r11395 - sandbox/crschmidt/pan-tap/tests/manual
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Feb 24 05:30:36 EST 2011
Author: crschmidt
Date: 2011-02-24 02:30:36 -0800 (Thu, 24 Feb 2011)
New Revision: 11395
Added:
sandbox/crschmidt/pan-tap/tests/manual/click-tap.html
Log:
Add an acceptance test for modifications to the click handler.
Added: sandbox/crschmidt/pan-tap/tests/manual/click-tap.html
===================================================================
--- sandbox/crschmidt/pan-tap/tests/manual/click-tap.html (rev 0)
+++ sandbox/crschmidt/pan-tap/tests/manual/click-tap.html 2011-02-24 10:30:36 UTC (rev 11395)
@@ -0,0 +1,94 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <script src="../OLLoader.js"></script>
+ <script type="text/javascript">
+ function init(){
+ var handler = new OpenLayers.Handler.Click({},
+ {'click': function() { alert(handler.tap); }},
+ {map: {events: new OpenLayers.Events(null, document.getElementById("foo"))}});
+ handler.activate();
+ }
+ </script>
+ </head>
+ <body onload="init()">
+ <div id="foo" style="width: 200px; height: 200px; border: 1px solid black;">Div</div>
+
+<p>Tapping on the div should result in an alert(false) in desktop/touch enabled
+browsers, and should result in alert(true) on browsers which support touch
+events but do not support touchstart/touchmove/touchend.</p>
+<h3>Expected Behavior</h3>
+<table width="50%">
+<tr>
+ <th>Browser</th>
+ <th>Expected Result</th>
+</tr>
+<tr>
+ <td>
+ All Desktop Browsers
+ </td>
+ <td>
+ false
+ </td>
+</tr>
+<tr>
+ <td>
+ iOS (Hardware), iOS (Simulator)
+ </td>
+ <td>
+ false
+ </td>
+</tr>
+<tr>
+ <td>
+ Android (all versions)
+ </td>
+ <td>
+ false
+ </td>
+</tr>
+<tr>
+ <td>
+ IE7 on WP7
+ </td>
+ <td>
+ true
+ </td>
+</tr>
+<tr>
+ <td>
+ Maemo default browser
+ </td>
+ <td>
+ true (may fail if first tap results in scroll)
+ </td>
+</tr>
+<tr>
+ <td>
+ Maemo FF4
+ </td>
+ <td>
+ true (may fail if first tap results in scroll)
+ </td>
+</tr>
+<tr>
+ <td>
+ Opera Mobile 10.1 on Symbian^3
+ </td>
+ <td>
+ true
+ </td>
+</tr>
+</table>
+
+Currently, the Symbian built-in browser on S60 will return false. This is a
+known failure of the code.
+
+<h3>Untested</h3>
+<ul>
+ <li>Windows Mobile 6/6.5</li>
+ <li>Blackberry Storm/Torch</li>
+ <li>Palm (WebOS, other)</li>
+</ul>
+
+</body>
+</html>
More information about the Commits
mailing list