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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user