This test checks text editor token highlight functionality. =========== TextEditor text ========== function findElement(collection, elem) { // length for(var i = 0; i < collection.length; ++i) if (collection[i] === elem) return i; return null; } =========== Before selecting element ===========
function findElement(collection, elem) {
// length
for(var i = 0; i < collection.length; ++i)
if (collection[i] === elem)
return i;
return null;
}
=========== After selecting 'collection' ===========
function findElement(collection, elem) {
// length
for(var i = 0; i < collection.length; ++i)
if (collection[i] === elem)
return i;
return null;
}
=========== After selecting 'elem' ===========
function findElement(collection, elem) {
// length
for(var i = 0; i < collection.length; ++i)
if (collection[i] === elem)
return i;
return null;
}
=========== After selecting 'length' ===========
function findElement(collection, elem) {
// length
for(var i = 0; i < collection.length; ++i)
if (collection[i] === elem)
return i;
return null;
}