Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Modify document.title when suite is done to show success/failure in tab,
[qunit.git] / qunit / qunit.js
index 931366d..135e809 100644 (file)
@@ -778,6 +778,11 @@ function done() {
                id( "qunit-testresult" ).innerHTML = html;
        }
 
+       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;
+       }
+
        QUnit.done( {
                failed: config.stats.bad,
                passed: passed, 

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf