fixed eventpane test -- had to special case for opera. seems like mozilla is the only one the mouse events *doesnt* work for
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
<script src="../lib/OpenLayers.js"></script>
|
<script src="../lib/OpenLayers.js"></script>
|
||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
|
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
|
||||||
|
var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
|
||||||
var layer;
|
var layer;
|
||||||
|
|
||||||
function test_01_Layer_EventPane_constructor (t) {
|
function test_01_Layer_EventPane_constructor (t) {
|
||||||
@@ -56,7 +57,7 @@
|
|||||||
// MOUSEMOVE test does not seem to work...
|
// MOUSEMOVE test does not seem to work...
|
||||||
// t.plan( 2 );
|
// t.plan( 2 );
|
||||||
|
|
||||||
if (document.createEventObject) {
|
if (!isMozilla || isOpera) {
|
||||||
t.plan(4);
|
t.plan(4);
|
||||||
} else {
|
} else {
|
||||||
t.plan(3);
|
t.plan(3);
|
||||||
|
|||||||
Reference in New Issue
Block a user