better test support

This commit is contained in:
Peli de Halleux
2017-12-19 13:10:40 -08:00
parent e07d6e3a31
commit eac3e183c3
4 changed files with 38 additions and 31 deletions

View File

@ -67,8 +67,8 @@ namespace console.screen {
if (!lines) {
lines = [];
console.addListener(log);
brick.buttonUp.onEvent(ButtonEvent.Click, () => scroll(1))
brick.buttonDown.onEvent(ButtonEvent.Click, () => scroll(-1))
brick.buttonUp.onEvent(ButtonEvent.Click, () => scroll(-1))
brick.buttonDown.onEvent(ButtonEvent.Click, () => scroll(1))
}
}