开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜