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

This commit is contained in:
Vaibhav Agrawal 2014-10-29 21:45:00 -04:00
parent bf78db5269
commit 0da6b6a452

View File

@ -15,7 +15,7 @@ function chunkifyTests(tests, totalChunks, thisChunk, chunkByDir, logger) {
var tests_by_dir = {}; var tests_by_dir = {};
var test_dirs = [] var test_dirs = []
for (var i = 0; i < tests.length; ++i) { 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']; var test_path = tests[i]['test']['url'];
} else { } else {
var test_path = tests[i]['url']; var test_path = tests[i]['url'];