bug 403400 - isTest should ignore ^headers^ files. r=waldo

This commit is contained in:
ted.mielczarek@gmail.com 2007-11-12 08:55:48 -08:00
parent c30266dba2
commit 7986165cc7

View File

@ -278,7 +278,7 @@ function isTest(filename, pattern)
return filename.indexOf("test_") > -1 &&
filename.indexOf(".js") == -1 &&
filename.indexOf(".css") == -1 &&
filename.substring(filename.length - 9) != "^headers^";
!/\^headers\^$/.test(filename);
}
/**