On Wed, Apr 23, 2008 at 11:55 AM, bobjack <[EMAIL PROTECTED]> wrote:

>
> I have added two methods to g.app.gui, killPopupMenu and
> postPopupMenu. I have also made mods to the standard leo tree popup
> and to cleo's popup menu to use these central methods.  rClick also
> uses them obviously.  I have placed a couple of killPopupMenu calls in
> other strategic places also.



>
> I hope these changes are not too drastic.


They look good to me.


> I may need some guidance as to the sort of unit tests I need to add for
> these mods, I am new to unit tests, especially in such a complex system as
> leo.


Not everything needs a unit test, but if you want you can create an @test
node in unitTest.leo that simply calls the code with appropriate args.  The
test passes if no exceptions happen.

In other words, a unit test can be one line of code in an @test node.

Today I've been working on more substantial unit tests for the graph world.
They are in the node called 'New unit tests' in unitTest.leo in the
sax-graph branch.  One or two fail at present.  I think it's a problem with
the test itself.  Earlier today I fixed a problem with
paste-retaining-clones that was brought to light with a unit test...

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to