Backed out changeset f8b29993a76c (bug 1089771) for breaking desktop mochitests.

This commit is contained in:
Ryan VanderMeulen 2014-10-29 12:24:01 -04:00
parent b264d61646
commit f336168694

View File

@ -15,10 +15,10 @@ function chunkifyTests(tests, totalChunks, thisChunk, chunkByDir, logger) {
var tests_by_dir = {};
var test_dirs = []
for (var i = 0; i < tests.length; ++i) {
if ((tests[i] instanceof Object) && ('test' in tests[i])) {
if ('test' in tests[i]) {
var test_path = tests[i]['test']['url'];
} else {
var test_path = tests[i];
var test_path = tests[i]['url'];
}
if (test_path[0] == '/') {
test_path = test_path.substr(1);