MCPcopy Index your code
hub / github.com/angular-ui/ui-router / triggerMouseEvent

Function triggerMouseEvent

test/stateDirectivesSpec.ts:97–101  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

95 }
96
97 function triggerMouseEvent(name) {
98 const event = document.createEvent('MouseEvents');
99 event.initEvent(name, true, true);
100 el[0].dispatchEvent(event);
101 }
102
103 describe('links with promises', function () {
104 it('should update the href when promises on parameters change before scope is applied', inject(function (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected