Use array.indexOf native function when available. p=arno, r=ahocevar
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -38,6 +38,14 @@
|
||||
"getImagesLocation()" );
|
||||
}
|
||||
|
||||
function test_Util_IndexOf(t) {
|
||||
t.plan( 3 );
|
||||
var array = new Array(1, "bar");
|
||||
t.eq(OpenLayers.Util.indexOf(array, 1), 0);
|
||||
t.eq(OpenLayers.Util.indexOf(array, "bar"), 1);
|
||||
t.eq(OpenLayers.Util.indexOf(array, "foo"), -1);
|
||||
}
|
||||
|
||||
function test_Util_Array(t) {
|
||||
t.plan( 2 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user