UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

20 lines (19 loc) 732 B
StartTest(function(t) { // uncomment to inspect visualization of clicks/drag/mousedown/up // t.chain( // { click : [100,100], desc : 'click' }, // { waitFor : 4000 }, // { dblclick : [100,100], desc : 'dblclick' }, // { waitFor : 4000 }, // { rightclick : [100,100], desc : 'rightclick' }, // { waitFor : 4000 }, // // { mouseDown : null, desc : 'mousedown' }, // { waitFor : 4000 }, // { mouseUp : null, desc : 'mouseup' }, // // { waitFor : 4000 }, // { drag : [100,100], to : [300,300], dragOnly : 1, desc : 'drag no mouse up' }, // { drag : [300,300], to : [100,100], dragOnly : 0, desc : 'drag drop' } // ) })