From 8fe87e288544204925265a4e7f19b7dfa24deed6 Mon Sep 17 00:00:00 2001 From: Wesley Walser Date: Tue, 2 Aug 2011 12:30:29 -0400 Subject: [PATCH] Tests: Modified testsuites.js into a subsuiteRunner extension for QUnit. --- external/qunit.js | 8 +++- tests/unit/all.html | 3 +- tests/unit/subsuiteRunner.css | 8 ++++ tests/unit/subsuiteRunner.js | 82 +++++++++++++++++++++++++++++++++++ tests/unit/testsuites.js | 76 -------------------------------- 5 files changed, 98 insertions(+), 79 deletions(-) create mode 100644 tests/unit/subsuiteRunner.css create mode 100644 tests/unit/subsuiteRunner.js delete mode 100644 tests/unit/testsuites.js diff --git a/external/qunit.js b/external/qunit.js index d56936ee2..a1b3fa5e9 100644 --- a/external/qunit.js +++ b/external/qunit.js @@ -625,7 +625,7 @@ extend(QUnit, { var source = sourceFromStacktrace(); if (source) { details.source = source; - output += 'Source:
' + source +'
'; + output += 'Source:
' + escapeHtml(source) + '
'; } } output += ""; @@ -649,6 +649,10 @@ extend(QUnit, { return window.location.pathname + querystring.slice( 0, -1 ); }, + extend: extend, + id: id, + addEvent: addEvent, + // Logging callbacks; all receive a single argument with the listed properties // run test/logs.html for any related changes begin: function() {}, @@ -779,7 +783,7 @@ function done() { } if ( typeof document !== "undefined" && document.title ) { - // show ✖ for good, ✔ for bad suite result in title + // show ✖ for bad, ✔ for good suite result in title // use escape sequences in case file gets loaded with non-utf-8-charset document.title = (config.stats.bad ? "\u2716" : "\u2714") + " " + document.title; } diff --git a/tests/unit/all.html b/tests/unit/all.html index 284885dbc..41d379534 100644 --- a/tests/unit/all.html +++ b/tests/unit/all.html @@ -7,8 +7,9 @@ + - +