Skip to content

GerHobbelt/jquery-simulate

 
 

Repository files navigation

jQuery.simulate()

Simulate events to help unit test user interactions.

Project Status

jquery-simulate is in use by projects of the jQuery Foundation, but isn't under active development. Usually issues are addressed by members of the jQuery UI team when they're affected, while other pull requests linger and get stale. We hesitate to put more time into this project, since its future is unclear.

Specifically we're hoping for the WebDriver API to become a much better solution. We're currently experiementing with that, via Intern on PEP).

That said, this project is stable and should work fine. Just keep the above in mind before using it.

How to build

First, get a copy of the git repo by running:

git clone git://github.com/GerHobbelt/jquery-simulate.git

Enter the directory and install the node dependencies:

cd jquery-simulate
npm install

Make sure you have grunt installed by testing:

grunt -version

If you don't yet have grunt installed:

npm install -g grunt-cli

Now you can run grunt to run the build+test process:

grunt

How to test

  • Open the test/index.html in a browser.

  • Or to run tests locally without a browser, run grunt, and this will run the tests in PhantomJS.

About

jQuery Event Unit Testing Helpers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.4%
  • HTML 4.0%
  • CSS 0.6%