diff --git a/tests/js/tests.js b/tests/js/tests.js index e9dcdca6..1d933dfb 100644 --- a/tests/js/tests.js +++ b/tests/js/tests.js @@ -23,16 +23,17 @@ Ox.load({Geo: {}, UI: {}, Unicode: {}}, function() { setBackground($tests, true); - tests(Ox.merge(Ox.merge.apply(null, files).map(function(file) { - return '../dev/' + file; - }), [ - '../dev/Ox.Geo/Ox.Geo.js', - '../dev/Ox.Image/Ox.Image.js', - '../dev/Ox.Unicode/Ox.Unicode.js' - ])); + tests( + Ox.flatten(files).sort().map(function(file) { + return '../dev/' + file; + }).concat([ + '../dev/Ox.Geo/Ox.Geo.js', + '../dev/Ox.Image/Ox.Image.js', + '../dev/Ox.Unicode/Ox.Unicode.js' + ]) + ); function tests() { - Ox.print('!!!!!!', arguments) var passed = 0, failed = 0, lines, spaces, command, expected, result, passed, replace = ['', ''], fns = [], $test