diff options
author | Wesley Walser <wwalser@atlassian.com> | 2011-08-02 12:30:29 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-02 12:30:29 -0400 |
commit | 8fe87e288544204925265a4e7f19b7dfa24deed6 (patch) | |
tree | 0280ab19f817daacbc2a41a5f8ac65d87635bbe3 /external | |
parent | 70687f7955cb2471ad6df3a7806031245e5979cd (diff) | |
download | jquery-ui-8fe87e288544204925265a4e7f19b7dfa24deed6.tar.gz jquery-ui-8fe87e288544204925265a4e7f19b7dfa24deed6.zip |
Tests: Modified testsuites.js into a subsuiteRunner extension for QUnit.
Diffstat (limited to 'external')
-rw-r--r-- | external/qunit.js | 8 |
1 files changed, 6 insertions, 2 deletions
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 += '<tr class="test-source"><th>Source: </th><td><pre>' + source +'</pre></td></tr>'; + output += '<tr class="test-source"><th>Source: </th><td><pre>' + escapeHtml(source) + '</pre></td></tr>'; } } output += "</table>"; @@ -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; } |