xonecas.io
142
St

startsInvasion / files

startsInvasion / libs / node_modules / bean / support / syn / README

976 bytes
1What It Is
2
3Syn is a synthetic event library that pretty much handles typing, clicking, moving, and 
4dragging exactly how a real user would perform those actions.
5
6Relevant Links
7
81. http://jupiterjs.com/news/syn-a-standalone-synthetic-event-library
92. http://javascriptmvc.com/#&who=Syn
103. http://javascriptmvc.com/funcunit/syn/synthetic.html
11
12Using Syn
13
14You'd use syn to perform functional testing on a JavaScript application.  Check out the demo 
15page (3rd link above) for some examples.  To add syn to your page, you have two options:
16
171. Add each script with script tags
18
19There are 5 scripts to add to your page in the following order:
20
211. synthetic.js
222. mouse.js
233. browsers.js
244. key.js
255. drag/drag.js
26
272. Use steal
28
29If you are using StealJS as your dependency loader, just steal.plugins('syn'), and the dependencies 
30will be loaded for you.
31
32Running Syn Tests
33
34Load syn/qunit.html in any browser to run all the tests.  Load syn/drag/qunit.html to run the drag tests.