From 86122180111c08effbd630c6246d477de0873e17 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 27 May 2012 18:46:59 +0200 Subject: [PATCH] remove print statement, make slow tests faster --- source/Ox/js/Async.js | 4 ++-- source/Ox/js/JavaScript.js | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/Ox/js/Async.js b/source/Ox/js/Async.js index 3b21b844..a16e92b4 100644 --- a/source/Ox/js/Async.js +++ b/source/Ox/js/Async.js @@ -95,7 +95,7 @@ 1000 ); - > Ox.nonblockingMap(Ox.range(1000000), Ox.identity, function(r) { Ox.test(r.length, 1000000); }) + > Ox.nonblockingMap(Ox.range(100000), Ox.identity, function(r) { Ox.test(r.length, 100000); }) undefined @*/ Ox.nonblockingMap = function(collection, iterator, that, callback, ms) { @@ -165,7 +165,7 @@ } ); - > Ox.parallelMap(Ox.range(1000000), Ox.noop, function(r) { Ox.test(r.length, 1000000); }) + > Ox.parallelMap(Ox.range(100000), Ox.noop, function(r) { Ox.test(r.length, 100000); }) undefined @*/ Ox.parallelMap = function() { diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index 70f033c0..a0e009c1 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -605,7 +605,6 @@ Ox.test = function(file, callback) { Ox.Break(); } }); - Ox.print('FILE::', file, name, Ox.test.data) Ox.test.data[file].results.push({ actual: result, expected: expected, @@ -615,7 +614,6 @@ Ox.test = function(file, callback) { passed: Ox.isEqual(result, expected) }); delete Ox.test.data[file].tests[name]; - Ox.print('????::', file, name, Ox.test.data[file]) if (Ox.test.data[file].done && Ox.isEmpty(Ox.test.data[file].tests)) { Ox.test.data[file].callback(Ox.test.data[file].results); }