Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] mouse event simulator: type of 'target' prop in doMouseEvent #5

Closed
fbornhofen opened this issue Feb 14, 2012 · 1 comment
Closed

Comments

@fbornhofen
Copy link
Collaborator

Various tests with simulated mouse events are red when running lively.morphic.Tests in CLI test runner

Tests run: 243 -- Tests failed: 12 -- Failed tests:
lively.morphic.Tests.EventTests.test01DragMorph
-->Expecting a function in instanceof check, but got #
lively.morphic.Tests.EventTests.test02RelayMouseEventsToMorphBeneath
-->Expecting a function in instanceof check, but got <lively.morphic.Box#8A7C6...>
lively.morphic.Tests.MenuTests.testWrongSubMenuItems
-->Expecting a function in instanceof check, but got #
lively.morphic.Tests.ExternalShapesTests.test01AddADivShape
-->undefined is not a function
lively.morphic.Tests.LayoutTests.test01DropJournalLayoutOnMorph
-->undefined is not a function
lively.morphic.Tests.LayoutTests.test02ApplyHBoxLayout
-->undefined is not a function
lively.morphic.Tests.LayoutTests.test03GridLayoutDefaultSizes
-->undefined is not a function
...

This is always the case when a morph or an HTML node is passed to doMouseEvent in the parameter's 'target' property. It seems to expect a function instead.

@fbornhofen
Copy link
Collaborator Author

Could have to do with namespaces. Trying to check for lively.morphic.Morph i/o Morph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant