开发者

QUnit mouseover test

I have asp.net button and I want to create a QUnit test that will first create mouseover and then show an alert. How to do this. I tried

test("mouseover",function(){
  $开发者_运维知识库("#buttonid").mouseover(function () {
                        alert('mouseover');
test(true,"Done");
});
                    });

but it doesnt work.


I used Qunit.trigger event and it solved my issue.

Thanks all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜