[Laszlo-dev] unit testing
Henry Minsky
henry.minsky at gmail.com
Tue Nov 29 12:48:19 PST 2005
So, I've got a new chunk of code for an improved context-menu API, and this
seems to
me like one of those "difficult to test" situations. It involves
right-clicking the mouse
and then looking for and selecting menu items. What is the best unit testing
I can do here,
using the "something is better than nothing" theory? I can manually send the
events and
execute the callbacks that ought to be coming from the user mouse clicks,
but that seems
about all. The real difficulty in the code is making sure the weirdo
contexts of the menu callbacks
aren't getting screwed up, and I don't really know how to or want to
simulate the calling contexts
(i.e., what is "this" going to be bound to, etc).
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlaszlo.org/pipermail/laszlo-dev/attachments/20051129/e8f1700a/attachment-0001.html
More information about the Laszlo-dev
mailing list