Commits

Shlomi Fish  committed c845053

Made the QUnit "Hide passed tests" more functional.

  • Participants
  • Parent commits a05e17d

Comments (0)

Files changed (1)

File abc-path/js/qunit.js

 			if ( filter.checked ) {
 				ol.className = ol.className + " hidepass";
 			} else {
-				var tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " ";
-				ol.className = tmp.replace(/ hidepass /, " ");
+				var tmp = " " + ol.className.replace( /\s+/g, "  " ) + " ";
+				ol.className = tmp.replace(/ hidepass /g, " ").replace(/\s+/g, " ");
 			}
 			if ( defined.sessionStorage ) {
 				if (filter.checked) {