output_list = Array();
/* level - 0:Summary; 1:Failed; 2:Passed; 3:All; 4:Skipped */
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (level == 0) {
            if (id.substr(0,2) == 'ft' || id.substr(0,2) == 'pt' || id.substr(0,2) == 'st'){
                tr.className = 'hiddenRow';
            }
        }else if (level == 1) {
            if (id.substr(0,2) == 'ft'){
                tr.className = '';
            }else if (id.substr(0,2) == 'pt' || id.substr(0,2) == 'st'){
                tr.className = 'hiddenRow';
            }
        }else if (level == 2) {
            if (id.substr(0,2) == 'pt'){
                tr.className = '';
            }else if (id.substr(0,2) == 'ft' || id.substr(0,2) == 'st'){
                tr.className = 'hiddenRow';
            }
        }else if (level == 4) {
            if (id.substr(0,2) == 'st'){
                tr.className = '';
            }else if (id.substr(0,2) == 'ft' || id.substr(0,2) == 'pt'){
                tr.className = 'hiddenRow';
            }
        }else {
            if ((id.substr(0,2) == 'ft') || (id.substr(0,2) == 'pt') || (id.substr(0,2) == 'st')){
                tr.className = '';
            }
        }
    }
}
function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        tid0 = 't' + cid.substr(1) + '.' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        if (!tr) {
            tid = 's' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr){
            if (tr.className) {
            toHide = 0;
        }
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        if (toHide) {
            document.getElementById('div_'+tid).style.display = 'none'
            document.getElementById(tid).className = 'hiddenRow';
        }
        else {
            document.getElementById(tid).className = '';
        }
    }
}
function showTestDetail(div_id){
    var details_div = document.getElementById(div_id)
    var displayState = details_div.style.display
    // alert(displayState)
    if (displayState != 'block' ) {
        displayState = 'block'
        details_div.style.display = 'block'
    }
    else {
        details_div.style.display = 'none'
    }
}