rksm/LivelyKernel — Issue #5: [tests] mouse event simulator: type of 'target' prop in doMouseEvent 
Author: fbornhofen
Created: 2012-02-14 00:43:00+00:00
State: open

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.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.