Is there a place where Syn is already being used to test the stuff in
Mootools-more? It seems like the runner is only running specs for core at
the moment.

Asking cause the dragging with Syn seems to look fine, but it isn't
triggering some events, and was wondering if that has already been tested
that I could look at and see if I'm missing something.

On Tue, Oct 19, 2010 at 3:01 PM, Christoph Pojer
<[email protected]>wrote:

> you could just mock an event by doing new Event({an object that
> appears like a mouse event}).
>
> On a different level and if you just care for good browsers, you can
> look into simulating real events: We use Syn for mootools-runner which
> does exactly that:
> http://jupiterjs.com/news/syn-a-standalone-synthetic-event-library
>
>
> On Oct 19, 11:57 pm, Greg Moeck <[email protected]> wrote:
> > I'm trying to write some integration/acceptance tests for an
> > application that I'm writing that uses Sortables, but I'm having some
> > trouble simulating the dragging. My plan was merely fire the events
> > for mousedown, movemouse, and and mouseup, but when I use
> > element.fireEvent, the Sortables start method fails, since a true
> > event is not passed in. I'm pretty sure it's just my lack of
> > understanding of javascript, but how would you go about doing
> > something like this?
>

Reply via email to