Browse Source

Catch multiline log function calls.

Kalervo Kujala 14 years ago
parent
commit
e00ae164f0
  1. 4
      test/driver.js

4
test/driver.js

@ -221,8 +221,8 @@ function checkScrolling() { @@ -221,8 +221,8 @@ function checkScrolling() {
}
function log(str) {
stdout.insertAdjacentHTML("BeforeEnd", str);
stdout.insertAdjacentHTML('BeforeEnd', str);
if (str.charAt(str.length - 1) == '\n')
if (str.lastIndexOf('\n') >= 0)
checkScrolling();
}

Loading…
Cancel
Save