如何在IE8中提高javascript功能测试的性能?

时间:2012-10-26 04:40:05

标签: javascript jquery functional-testing

当我在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");
});

0 个答案:

没有答案