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.
精彩评论