On Tue, Mar 17, 2009 at 9:29 AM, Ville M. Vainio <[email protected]> wrote:

>
> Isn't this just about calling a script explicitly before running the
> tests?


I think so.


> Or is the deal that we want to preserve the namespace of the
> runned script?
>

> For leo, I think it would be something along the lines of:
>
> pl = c.find_h('@button TomsTest')
> pos = pl[0]
> c.executeScript(pos)


c.executeScript has lots of keyword arguments, the first of which is
'event', so the proper way is:

    h = '@button TomsTest' # headline of script to execute first
    c.executeScript(p=c.find_h(h)[0])

Tom, does this work for you?

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