function showOnlyFailedTests() {
    
    var tcs = document.querySelectorAll(".testcase > p.passed, .testcase > p.skipped");
    for (var i = 0; i < tcs.length; i++) {
        tcs[i].style.display = "none";
    }
    
    var empty = document.querySelectorAll(".testcase, .testsuite");
    for (var i = 0; i < empty.length; i++) {
        var f = empty[i].getElementsByClassName("failed");
        if (f == null || f.length == 0) {
            empty[i].style.display = "none";
        }
    }
}
/**
 * Keeps just the failed tests visible. This method is called from the JAVA code, from the action in the view's toolbar.
 */
Keeps just the failed tests visible. This method is called from the JAVA code, from the action in the view's toolbar.
Keeps just the failed tests visible . This method is called from the JAVA code from the action in the view ' s toolbar .
function showOnlyFailedTests() {
    var tcs = document.querySelectorAll(".testcase > p.passed, .testcase > p.skipped");
    for (var i = 0; i < tcs.length; i++) {
        tcs[i].style.display = "none";
    }
    var empty = document.querySelectorAll(".testcase, .testsuite");
    for (var i = 0; i < empty.length; i++) {
        var f = empty[i].getElementsByClassName("failed");
        if (f == null || f.length == 0) {
            empty[i].style.display = "none";
        }
    }
}
function showOnlyFailedTests ( ) { var tcs = document . querySelectorAll ( ".testcase > p.passed, .testcase > p.skipped" ) ; for ( var i = 0 ; i < tcs . length ; i ++ ) { tcs [ i ] . style . display = "none" ; } var empty = document . querySelectorAll ( ".testcase, .testsuite" ) ; for ( var i = 0 ; i < empty . length ; i ++ ) { var f = empty [ i ] . getElementsByClassName ( "failed" ) ; if ( f == null || f . length == 0 ) { empty [ i ] . style . display = "none" ; } } }
Keeps just the failed tests visible.
Keeps just the failed tests visible .