--- trunk/html/test.html 2004/10/04 19:51:05 20
+++ trunk/html/test.html 2004/10/06 15:33:33 21
@@ -78,13 +78,14 @@
}
var word = words[word_nr];
- var part = test_data[word];
+ var len = 0;
+ for (var i in test_data[word]) len++;
- if (result.length == part.length) {
+ if (result.length == len) {
msg_ok("found "+result.lengh+" results");
- } else if ( result.length > part.length )
- msg_error("too much results "+result.length+" > "+part.length)
- else msg_error("too fiew results "+result.length+" < "+part.length);
+ } else if ( result.length > len )
+ msg_error("too much results "+result.length+" > "+len)
+ else msg_error("too fiew results "+result.length+" < "+len);
for(var i=result.length-1; i>=0; i--) {
var test_hit = i+": "+
@@ -138,7 +139,7 @@
debug("search for "+words[word_nr]+" ["+word_nr+"]");
- doSearch('ulyss', words[word_nr], got_result);
+ doSearch('homer', words[word_nr], got_result);
if (1 || test_failed) {