开发者

QUnit mouseover test

开发者 https://www.devze.com 2023-02-13 16:46 出处:网络
I have asp.net button and I want to create a QUnit test that will first createmouseover and then show an alert. How to do this. I tried

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

精彩评论

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