add common js to test with sleep func

This commit is contained in:
zelig 2015-01-05 04:05:45 +00:00
parent 89763b33a7
commit 05f122fec5

9
eth/test/tests/common.js Normal file
View file

@ -0,0 +1,9 @@
function log(text) {
console.log("[JS TEST SCRIPT] " + text);
}
function sleep(seconds) {
var now = new Date().getTime();
while(new Date().getTime() < now + seconds){}
}