QUnit update

This commit is contained in:
Jörn Zaefferer 2011-05-18 15:14:08 +02:00
parent cf49f7081b
commit fef60bd6cb
2 changed files with 84 additions and 83 deletions

9
external/qunit.js vendored
View File

@ -114,8 +114,8 @@ Test.prototype = {
},
teardown: function() {
try {
checkPollution();
this.testEnvironment.teardown.call(this.testEnvironment);
checkPollution();
} catch(e) {
QUnit.ok( false, "Teardown failed on " + this.testName + ": " + e.message );
}
@ -779,8 +779,9 @@ function done() {
}
if ( typeof document !== "undefined" && document.title ) {
// TODO what are the unicode codes for these? as-is fails if qunit.js isn't served with the right mimetype/charset
document.title = (config.stats.bad ? "✖" : "✔") + " " + document.title;
// show ✖ for good, ✔ for bad 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;
}
QUnit.done( {
@ -799,7 +800,7 @@ function validTest( name ) {
return true;
}
not = filter.charAt( 0 ) === "!";
var not = filter.charAt( 0 ) === "!";
if ( not ) {
filter = filter.slice( 1 );
}