[Laszlo-dev] two lzunit questions
Henry Minsky
henry.minsky at gmail.com
Wed Nov 9 09:49:49 PST 2005
On 11/9/05, John Sundman <jsundman at laszlosystems.com> wrote:
>
> Hello Friends,
>
> 1) In the following example (from the LzUnit chapter of the Dguide,
> which I'm overhauling) can anybody tell me why the debugger always
> shows up way down at the bottom? No matter what I try (for example
> positioning the debugger, changing the canvas size), the debugger shows
> up with just the tip of its head showing. It appears to be
> disregarding the y argument to debug.
<canvas height="500" debug="true" >
<debug y="10"/>
<include href="lzunit" />
Put the <debug> before the include. The Lzunit library has a <debug
y="500"/> in it
for some reason. The compiler ignores all but the first occurence when it
sees two debug tags.
> 2) In this example I'm getting the error:
>
> WARNING: lzunit-$5.lzx:15: reference to undefined variable
> 'animatorsuite'
> WARNING: lzunit-$5.lzx:16: reference to undefined variable
> 'animatorcase'
> ERROR: Class TestSuite used before defined
You forgot to <include> the lzunit library.
Speaking of which, when I try to use
<include href="lzunit"/> in a directory which has an lzunit subdirectory, it
of course
looks in the wrong directory. Is there any way to override the search path
that is
used in order to specify the /lps/components/lzunit directory?
I'm sure this one is something obvious, but I can't see it :^)
>
> <canvas height ="300" width="400" debug="true">
> <debug y="40"/>
> <view>
> <view id="bluebox" bgcolor="blue" width="30" height="30">
> <animatorgroup name="AG1" attribute="x" process="sequential"
> start="false" relative="false">
> <animator from="0" to="100" duration="2000"
>
> onstop="canvas.animatorsuite.animatorcase.checkSimpleXAnim()"/>
> <animator from="0" to="200" duration="3000"
>
> onstop="canvas.animatorsuite.animatorcase.checkSimpleXAnim2()"/>
> </animatorgroup>
> </view>
> </view>
>
> <TestSuite name="animatorsuite">
> <TestCase name="animatorcase">
> <method name="testSimpleXAnim">
> bluebox.AG1.doStart()
> </method>
> <method name="checkSimpleXAnim">
> assertEquals(100, bluebox.x);
> </method>
> <method name="checkSimpleXAnim2">
> assertEquals(200, bluebox.x);
> Debug.write('--- test complete ---');
> </method>
> </TestCase>
> </TestSuite>
> </canvas>
>
>
> Any help appreciated.
>
> jrs
>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlaszlo.org/pipermail/laszlo-dev/attachments/20051109/0cb5f7b8/attachment-0001.html
More information about the Laszlo-dev
mailing list