/** * 创建遗漏用例列表 * FIXME: 需要过滤package类型,考虑使用js名称同名目录存在进行过滤或者白名单 */ function _srcOnlyList() { require 'case.class.php'; $list = Kiss::listSrcOnly(false); $len = sizeof($list); $flag = "<table cellspacing='0' style='border: 1px solid black; " . "color: #fff; background-color: #0d3349; " . "text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; " . "text-align: center;'><thead><tr><th>遗漏列表:总计{$len,未过滤无需用例的package类型}</th></tr><tr><td>"; $flag .= implode("</td></tr><tr><td>", $list); $flag .= "</tr></table>"; return $flag; }
onclick="$('div#id_testlist').slideToggle('slow');"> 折叠用例 </span> </a> <a id="id_srconly" class="button"><span onclick="$('#id_showSrcOnly').slideToggle('slow');">折叠缺失</span> </a> <a id="id_srconly" class="button"><span onclick="$('#id_runningarea').slideToggle('slow');">折叠执行</span> </a> </div> <div id="id_rerun" onclick="run($('#id_rerun').html());return false;"></div> <div style="clear: both"></div> <div id="id_testlist" class="testlist"> <?php /*分析所有源码与测试代码js文件一一对应的文件并追加到当前列表中*/ require_once "case.class.php"; Kiss::listcase($filter, $filterRun); ?> <div style="clear: both; overflow: hidden"></div> </div> <div id="id_runningarea" class="runningarea" style="border: solid; display: none"></div> <div id="id_reportarea" class="reportarea" style="display: none;"></div> <div class='clear'></div> <div id="id_showSrcOnly" class="testlist" style="display: none;"> <?php require_once "case.class.php"; //if(array_key_exists("showsrconly", $_GET)) Kiss::listSrcOnly(true); ?> <div class="clear"></div> </div> </body> </html>