Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Optimize test hiding, add class on page load if stored in sessionStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Feb 16, 2011
1 parent 39a23df commit 3adbe65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qunit/qunit.js
Expand Up @@ -674,7 +674,7 @@ addEvent(window, "load", function() {
filter.type = "checkbox";
filter.id = "qunit-filter-pass";
addEvent( filter, "click", function() {
var ol = document.getElementById("qunit-tests")
var ol = document.getElementById("qunit-tests");
if ( filter.checked ) {
ol.className = ol.className + " hidepass";
} else {
Expand All @@ -687,6 +687,8 @@ addEvent(window, "load", function() {
});
if ( defined.sessionStorage && sessionStorage.getItem("qunit-filter-passed-tests") ) {
filter.checked = true;
var ol = document.getElementById("qunit-tests");
ol.className = ol.className + " hidepass";
}
toolbar.appendChild( filter );

Expand Down

0 comments on commit 3adbe65

Please sign in to comment.