From 45bc9e78a222c47768ef1f3e96517d04ddf1a31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 14 Sep 2007 08:52:30 +0000 Subject: [PATCH] String.indexOf no longer exist, remove String_indexOf test. Thanks fredj! (closes #963) git-svn-id: http://svn.openlayers.org/trunk/openlayers@4296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_BaseTypes.html | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/test_BaseTypes.html b/tests/test_BaseTypes.html index 7a6879cd11..cd9ee46f4e 100644 --- a/tests/test_BaseTypes.html +++ b/tests/test_BaseTypes.html @@ -45,19 +45,7 @@ str = " "; t.eq(str.trim(), "", "whitespace string is trimmed correctly"); } - - function test_04_String_indexOf(t) { - t.plan(5); - var str = "chickenHead"; - - t.eq(str.indexOf('c'), 0, "correctly finds first character"); - t.eq(str.indexOf('k'), 4, "correctly finds middle character"); - t.eq(str.indexOf('e'), 5, "correctly returns index of *first*instance* of repeated character"); - t.eq(str.indexOf('d'), 10, "correctly finds last character"); - t.eq(str.indexOf('z'), -1, "correctly returns -1 for unfound character"); - } - function test_05_String_camelize(t) { t.plan(7);