I'm trying to write a simple test that I'm running by selecting it and
then typing 'run-unit-tests-locally'.

Here is the @test node body:

--- cut here ---
root = p.copy()
while p.hasChildren():
    p.firstChild().doDelete(newNode = None)

try:
    p1 = p.insertAsLastChild()
    body = 'foo'
    p1.setBodyString(body)
    c.selectPosition(p1)
    c.copyOutline()
    c.pasteOutline()
finally:
    c.redraw_now()
--- cut here ---

My problem: the node that is being created by c.pasteOutline() has an
empty body. If after running the test I type 'paste-node' in the
minibuffer, a new node appears, it has 'foo' in the body.

Searching for "copyOutline" and "pasteOutline" in leo's html docs
doesn't provide any usage examples, so I'm stuck.

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