Skip to content

Commit

Permalink
Fixed test runner on IE6/7. Odd jquery bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Oct 27, 2011
1 parent 9a05dca commit d510463
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions support/test-runner/public/javascript/runner.js
@@ -1,6 +1,6 @@
// useful globals

var currentSuite, currentCase;
var currentSuite, currentCase, testsList;

// loads common.js module
function load (test, fn) {
Expand All @@ -21,7 +21,8 @@ function run () {

if (tests.length) {
// load dom
$('body').append('<ul class="test-list">');
testsList = $('<ul class="test-list">');
$('body').append(testsList)

// run suites
suite(tests[i], function check (res) {
Expand Down Expand Up @@ -64,7 +65,7 @@ function suite (file, fn) {
$('<span class="name">').append(
$('<a>').attr('href', '/test/' + file).text(file)
)
).appendTo('.test-list');
).appendTo(testsList);

// dynamically load module
load(file, function (suite) {
Expand Down

0 comments on commit d510463

Please sign in to comment.