Fix tests result output

This commit is contained in:
Arsen Melikyan
2016-01-13 01:55:23 +04:00
parent e0d5beb60f
commit f910463e0f
2 changed files with 11 additions and 9 deletions

View File

@@ -38,11 +38,13 @@ window.common = (function(global) {
codeOutput.setSize('100%', '100%');
common.updateOutputDisplay = function updateOutputDisplay(str = '') {
str = JSON.stringify(str);
codeOutput.setValue(str);
return str;
};
common.appendToOutputDisplay = function appendToOutputDisplay(str = '') {
str = JSON.stringify(str);
codeOutput.setValue(codeOutput.getValue() + str);
return str;
};