testdriven-8.lzx

<canvas debug="true" width="100%">
<debug y="150"/>
<include href="lzunit"/>
<simplelayout axis="y" spacing="10"/>

    <handler name="oninit">
        this.wake();
    </handler>

    <method name="wake">
        foo = new LzDelegate(this, "sleep", lz.Idle, "onidle");
    </method>
    
    <method name="sleep" args="v">
        Debug.debug("Sleeping");
    </method>

<TestSuite>
    <TestCase>
        <method name="testIdle">
            assertTrue(this.idle);
        </method>
        <method name="addTests"> 
            this.addTest("testIdle");
        </method> 
    </TestCase>   
</TestSuite>

</canvas>
<!-- Copyright 2001-2008 Laszlo Systems, Inc. -->

Cross References

Includes

Named Instances