Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Standalone Synthetic Event Library
Branch: master
Pull request Compare This branch is 164 commits behind bitovi:master.
Failed to load latest commit information.
demo forgot to remove testing html
dist removing temp, but fixing string key codes
resources adding drag tests
test changes for CI tests
.gitignore adding dist so people can get easier
build.js updated
demo.html works with new steal API
key.js fixes problem with keypress not being changed by a focus in keydown
qunit.html adding drag tests
recorder.html works with new steal API
syn.js merged from async
synthetic.html works with new steal API
synthetic.js fixes problem with keypress not being changed by a focus in keydown


What It Is

Syn is a synthetic event library that pretty much handles typing, clicking, moving, and 
dragging exactly how a real user would perform those actions.

Relevant Links


Using Syn

You'd use syn to perform functional testing on a JavaScript application.  Check out the demo 
page (3rd link above) for some examples.  To add syn to your page, you have two options:

1. Add each script with script tags

There are 5 scripts to add to your page in the following order:

1. synthetic.js
2. mouse.js
3. browsers.js
4. key.js
5. drag/drag.js

2. Use steal

If you are using StealJS as your dependency loader, just steal.plugins('syn'), and the dependencies 
will be loaded for you.

Running Syn Tests

Load syn/qunit.html in any browser to run all the tests.  Load syn/drag/qunit.html to run the drag tests.
Something went wrong with that request. Please try again.