I'm brand new to FuncUnit, but very much liking what I see so far. I've got a fairly complex table/list control to develop some tests for and I was very please with how simple it was to do tests for things like drag and drop reordering. However, I can't seem to test the context menu, which is critical. Using FuncIt to record the right click does not work - for some reason it records a right click on the div that makes up the context menu, but that's actually only created *after* the user right clicks. It's a YUI context menu triggered on the first row of the table. I've also tried 'S("#datatable tr:eq(0)").rightClick();', which doesn't give any kind of error but the context menu does not appear.
Any suggestions / thoughts on why this may not work?
So I figured out that it works a lot better if the YUI 'lazyload' property is not set on the context menu. Still strange that I can't seem to programmatically trigger the lazyloading context menus, but when run manually it works fine though. For now, I'm just going to turn of lazyloading in debug mode and go with that.
Leave a comment on ben.barbour's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic