Commit febe463c authored by Ariel Flesler's avatar Ariel Flesler

test runner: closes #3048. The text from the tests, is html-escaped.

parent 21d66913
...@@ -133,7 +133,7 @@ function test(name, callback, nowait) { ...@@ -133,7 +133,7 @@ function test(name, callback, nowait) {
for ( var i = 0; i < _config.Test.length; i++ ) { for ( var i = 0; i < _config.Test.length; i++ ) {
var li = document.createElement("li"); var li = document.createElement("li");
li.className = _config.Test[i][0] ? "pass" : "fail"; li.className = _config.Test[i][0] ? "pass" : "fail";
li.innerHTML = _config.Test[i][1]; li.appendChild( document.createTextNode(_config.Test[i][1]) );
ol.appendChild( li ); ol.appendChild( li );
_config.stats.all++; _config.stats.all++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment