Bug 1089771 - Fix --chunk-by-dir mode on Android. r=jmaher

This commit is contained in:
Vaibhav Agrawal 2014-10-29 00:05:00 -04:00
parent 796a359d93
commit e83fe4e3fe

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 ('test' in tests[i]) {
if ((tests[i] instanceof Object) && ('test' in tests[i])) {
var test_path = tests[i]['test']['url'];
} else {
var test_path = tests[i]['url'];
var test_path = tests[i];
}
if (test_path[0] == '/') {
test_path = test_path.substr(1);