Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Merge remote branch 'erikvold/one-chk-in-title'
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 5 Aug 2011 10:58:40 +0000 (12:58 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 5 Aug 2011 10:58:40 +0000 (12:58 +0200)
1  2 
qunit/qunit.js

diff --cc qunit/qunit.js
@@@ -790,9 -779,12 +790,12 @@@ 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;
+               document.title = [
+                       (config.stats.bad ? "\u2716" : "\u2714"),
+                       document.title.replace(/^[\u2714\u2716] /i, "")
+               ].join(" ");
        }
  
        QUnit.done( {

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