0

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 documentation 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

Karl
  • 129
  • 1
  • 14
  • 1
    solved this by myself To trigger jquery event: jQuery("#testButton").trigger('keydown'); To test jquery: Inluce library in conf. – Karl Oct 17 '11 at 14:46

1 Answers1

0

Solved this by myself. To trigger jQuery:

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

To test jQuery, include the library in conf.

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265