From 6f33adc4056bf9cefbde7fca3b476bfa02637660 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 28 Aug 2015 18:29:25 +0200 Subject: Handle test results as a static hint --- js/prolog.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'js') 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(); -- cgit v1.2.1