blob: b78bf3d771741a43270d7351d3101d628ed81011 [file] [log] [blame]
Matteo Scandolo3dfbced2016-06-15 16:42:12 -07001/**
2 * Collection of helpers for xos tests
3 */
4
5const clickElement = function (el){
6 var ev = document.createEvent("MouseEvent");
7 ev.initMouseEvent(
8 "click",
9 true /* bubble */, true /* cancelable */,
10 window, null,
11 0, 0, 0, 0, /* coordinates */
12 false, false, false, false, /* modifier keys */
13 0 /*left*/, null
14 );
15 el.dispatchEvent(ev);
16};
17console.log('---------------------- Test Helpers Loaded!! -----------------------');