1.1 --- a/rt/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/impl/Console.java Wed Apr 03 09:17:58 2013 +0200
1.2 +++ b/rt/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/impl/Console.java Wed Apr 03 13:43:22 2013 +0200
1.3 @@ -76,10 +76,9 @@
1.4
1.5 private static void finishTest(Case c, Object res) {
1.6 if ("null".equals(res)) {
1.7 - setAttr(statusArea, "innerHTML", "OK");
1.8 - setAttr(statusArea, "href", null);
1.9 + setAttr(statusArea, "innerHTML", "Success");
1.10 } else {
1.11 - setAttr(statusArea, "innerHTML", "run again");
1.12 + setAttr(statusArea, "innerHTML", "Result " + res);
1.13 }
1.14 statusArea = null;
1.15 textArea = null;
1.16 @@ -88,19 +87,25 @@
1.17 @JavaScriptBody(args = { "test", "c", "arr" }, body =
1.18 "var ul = window.document.getElementById('bck2brwsr.result');\n"
1.19 + "var li = window.document.createElement('li');\n"
1.20 - + "var span = window.document.createElement('span');\n"
1.21 + + "var span = window.document.createElement('span');"
1.22 + "span.innerHTML = test + ' - ';\n"
1.23 + + "var details = window.document.createElement('a');\n"
1.24 + + "details.innerHTML = 'Details';\n"
1.25 + + "details.href = '#';\n"
1.26 + "var p = window.document.createElement('p');\n"
1.27 + "var status = window.document.createElement('a');\n"
1.28 + "status.innerHTML = 'running';"
1.29 - + "status.href = '#';\n"
1.30 + + "details.onclick = function() { li.appendChild(p); li.removeChild(details); status.innerHTML = 'Run Again'; status.href = '#'; };\n"
1.31 + "status.onclick = function() { c.again__V_3Ljava_lang_Object_2(arr); }\n"
1.32 + "var pre = window.document.createElement('textarea');\n"
1.33 - + "pre.width = '90%';"
1.34 - + "pre.height = 100;"
1.35 + + "pre.cols = 100;"
1.36 + + "pre.rows = 10;"
1.37 + "li.appendChild(span);\n"
1.38 + "li.appendChild(status);\n"
1.39 - + "li.appendChild(p);\n"
1.40 + + "var span = window.document.createElement('span');"
1.41 + + "span.innerHTML = ' ';\n"
1.42 + + "li.appendChild(span);\n"
1.43 + + "li.appendChild(details);\n"
1.44 + "p.appendChild(pre);\n"
1.45 + "ul.appendChild(li);\n"
1.46 + "arr[0] = pre;\n"