[Laszlo-dev] lztest is starting too early in 4.0

Max Carlson max at openlaszlo.org
Fri Jan 5 13:59:51 PST 2007


Yep, that's broken now.  We should put it on the list!

Any idea on the tests running early?

-Max

Henry Minsky wrote:
> Hmm, something with the LzCommand handling must've changed
> The debugger declares a bunch of commands using the command tag which
> have keyboard mappings, none of them seem to be working now
> 
>    <!-- *** Commands *** -->
>    <command id="_dbg_cmd_eval" onselect="parent.doEval()"  key="['Enter']"
> active="false"/>
>    <command id="_dbg_cmd_hist_prev" onselect="parent.doCommandHistory(-1)"
> key="['uparrow']" active="false"/>
>    <command id="_dbg_cmd_hist_next" onselect="parent.doCommandHistory(1)"
> key="['downarrow']" active="false"/>
>    <command id="_dbg_cmd_complete_tab"
> onselect="parent.doCommandCompletion('\t')"
> key="['tab']" active="false"/>
>    <?broken
>    <command id="_dbg_cmd_complete_dot"
> onselect="parent.doCommandCompletion('.')"
> key="['.']" active="false"/>
>    <command id="_dbg_cmd_complete_bracket" onselect="
> parent.doCommandCompletion('[')"  key="['[']" active="false"/>
>    <command id="_dbg_cmd_complete_paren" onselect="
> parent.doCommandCompletion('(')"  key="['(']" active="false"/>
>    ?>
> 
> 
> On 1/5/07, Max Carlson <max at openlaszlo.org> wrote:
>>
>> Yes, I see this also - I have to click the eval button to get it to work.
>>
>> Henry Minsky wrote:
>> > Hey in the Flash debugger in legals, I cannot seem to type Enter to
>> > evaluate
>> > expressions anymore. Do you see this issue?
>> >
>> > On 1/5/07, Max Carlson <max at openlaszlo.org> wrote:
>> >>
>> >> Yes.
>> >>
>> >> Henry Minsky wrote:
>> >> > Is your updated code for this test checked in?
>> >> >
>> >> > On 1/5/07, Max Carlson <max at openlaszlo.org> wrote:
>> >> >>
>> >> >> If you run 
>> http://localhost:8080/legals/test/lztest/lztest-view.lzxin
>> >> >> either swf or dhtml you'll see a number of tests for 'x' fail.  I
>> >> added
>> >> >> 'onx' handlers so you can see the x values change over time.  After
>> >> the
>> >> >> tests fail, you can see the x values settle down to the correct
>> >> values.
>> >> >>
>> >> >> This suggests that lztest is starting too early.  At first I 
>> thought
>> >> >> this was related to changes to the event system, but I tested under
>> >> >> 4.0b1 and saw the exact same failure mode.
>> >> >>
>> >> >> Lztest starts when canvas.oninit is sent.  Perhaps canvas.oninit is
>> >> sent
>> >> >> too early in 4.0?  It should only be sent when all children have
>> >> >> completed initialization.
>> >> >>
>> >> >> --
>> >> >> Regards,
>> >> >> Max Carlson
>> >> >> OpenLaszlo.org
>> >> >>
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >> --
>> >> Regards,
>> >> Max Carlson
>> >> OpenLaszlo.org
>> >>
>> >
>> >
>> >
>>
>>
>> -- 
>> Regards,
>> Max Carlson
>> OpenLaszlo.org
>>
> 
> 
> 


-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list