开发者

Testing jquery thats depend on version with Js-test.driver

开发者 https://www.devze.com 2023-04-12 06:59 出处:网络
im new to js-test-driver and have some questions how can i test this jquery event? ex verify that the event runs Search() if letter > 9

im new to js-test-driver and have some questions

how can i test this jquery event?

ex verify that the event runs Search() if letter > 9

$("#search").live('keydown', function () {
//start search after 10 letters
if ($(this).val().length > 9) {
    Search();
}});

Does anybody has some docume开发者_Python百科ntation for js-test-driver?

How does Js-test.driver handle functionality thats depends on versions of my jquery, if run Version 1.6?

thanks /K


Solved this by myself. To trigger jQuery:

event: jQuery("#testButton").trigger('keydown');

To test jQuery, include the library in conf.

0

精彩评论

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

关注公众号