diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-28 18:29:25 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-28 18:29:25 +0200 |
commit | 6f33adc4056bf9cefbde7fca3b476bfa02637660 (patch) | |
tree | 8b17864cf042e948713687b1a5bec4fc2ee6d057 | |
parent | 36301db45d0422a4713b9d232cbdb4f932140ea6 (diff) |
Handle test results as a static hint
-rw-r--r-- | js/prolog.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/js/prolog.js b/js/prolog.js index e3c395c..72687c3 100644 --- a/js/prolog.js +++ b/js/prolog.js @@ -388,17 +388,10 @@ }).then( function testSuccess(data) { jqConsole.resume(); - // TODO output to "hints" window once that is implemented - if (data.code === 0) { - t = data.terminal; - lines = t.messages; - for (i = 0; i < lines.length; i++) { - jqConsole.echo(lines[i]); - } - } - else { + if (data.code === 0) + handler.processServerHints(data.hints); + else jqConsole.error(data.message); - } }, function testFailed (error) { jqConsole.resume(); |