Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Drop 'hide missing tests' feature. Fixes #48

  • Loading branch information...
commit 7317cf67fdd25db34cd100ba0d9cb43aaf8f23c3 1 parent f7dab0d
@jzaefferer jzaefferer authored
Showing with 0 additions and 20 deletions.
  1. +0 −20 qunit/qunit.js
View
20 qunit/qunit.js
@@ -197,7 +197,6 @@ var QUnit = {
if ( toolbar ) {
toolbar.style.display = "block";
id("qunit-filter-pass").disabled = null;
- id("qunit-filter-missing").disabled = null;
}
}
@@ -573,25 +572,6 @@ addEvent(window, "load", function() {
label.setAttribute("for", "qunit-filter-pass");
label.innerHTML = "Hide passed tests";
toolbar.appendChild( label );
-
- var missing = document.createElement("input");
- missing.type = "checkbox";
- missing.id = "qunit-filter-missing";
- missing.disabled = true;
- addEvent( missing, "click", function() {
- var li = document.getElementsByTagName("li");
- for ( var i = 0; i < li.length; i++ ) {
- if ( li[i].className.indexOf("fail") > -1 && li[i].innerHTML.indexOf('missing test - untested code is broken code') > - 1 ) {
- li[i].parentNode.parentNode.style.display = missing.checked ? "none" : "block";
- }
- }
- });
- toolbar.appendChild( missing );
-
- label = document.createElement("label");
- label.setAttribute("for", "qunit-filter-missing");
- label.innerHTML = "Hide missing tests (untested code is broken code)";
- toolbar.appendChild( label );
}
var main = id('main') || id('qunit-fixture');
Please sign in to comment.
Something went wrong with that request. Please try again.