From 8fe87e288544204925265a4e7f19b7dfa24deed6 Mon Sep 17 00:00:00 2001 From: Wesley Walser Date: Tue, 2 Aug 2011 12:30:29 -0400 Subject: Tests: Modified testsuites.js into a subsuiteRunner extension for QUnit. --- external/qunit.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'external') 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; } -- cgit v1.2.3