Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Optimize test hiding, add class on page load if stored in sessionStorage

  • Loading branch information...
commit 3adbe65bb7083d29cfae698c4761d563db532f92 1 parent 39a23df
@jzaefferer jzaefferer authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 qunit/qunit.js
View
4 qunit/qunit.js
@@ -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 {
@@ -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 );
Please sign in to comment.
Something went wrong with that request. Please try again.