1

当我在 IE8 中运行功能测试时,我在 IE 分析器中获得功能,这需要更多时间,所以我如何提高功能测试的性能。这是最耗时的功能。

poller,
_open ,                          
class,
document loaded,
check for new document,
js script-window script block,
filter,
function.call,
sizzle,
function.apply,
init,
method,
find,
process,
run,
funcunit,
perform sync query,

测试是这样的

module("test#009 - logo for legacy",{
   set up:function(){
   s.open("/demo/documentation/details/10");}
});

test("logo" ,function(){
   s("div.ui-pagelogo:eq(0)").exists function(){
   ok(true,"div with classname ui-pagelogo exists");
});

s("div.ui-pagelogo:eq(0)>a").exists(function(){
   ok(true,"dive.ui-pagelogo containing anchor tag exists");
});
s(div.ui-pagelogo:eq(0)>a").attr("href","http://www.google.com").existsfunction(){
  ok(true,"anchor tag exist with href attribut(e");
});
s(div.ui-pagelogo:eq(0)>a").attr("title","symbol of unity").existsfunction(){
  ok(true,"anchor tag exist with title attribute");
});
4

0 回答 0