UNPKG

siesta-lite

Version:

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

55 lines (39 loc) 1.28 kB
/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ /** @class Siesta.Test.Action.MouseUp @extends Siesta.Test.Action @mixin Siesta.Test.Action.Role.HasTarget This action can be included in a `t.chain` call with "mouseUp" shortcut: t.chain( { action : 'mouseUp', target : someDOMElement, options : { shiftKey : true } // Optionally hold shiftkey }, // or { mouseup : someDOMElement, options : { shiftKey : true } // Optionally hold shiftkey } ) This action will perform a {@link Siesta.Test.Browser#mouseUp mouseUp} on the provided {@link #target}. */ Class('Siesta.Test.Action.MouseUp', { isa : Siesta.Test.Action, does : Siesta.Test.Action.Role.HasTarget, has : { requiredTestMethod : 'mouseUp' }, methods : { process : function () { this.test.mouseUp(this.getTarget(), this.options, this.offset, this.next); } } }); Siesta.Test.ActionRegistry().registerAction('mouseUp', Siesta.Test.Action.MouseUp) Siesta.Test.ActionRegistry().registerAction('fingerUp', Siesta.Test.Action.MouseUp)