Approved!

Change 20080418-maxcarlson-O by [EMAIL PROTECTED] on 2008-04-18
19:32:23 PDT
     in /Users/maxcarlson/openlaszlo/trunk
for <http://svn.openlaszlo.org/openlaszlo/trunk>http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add canvas.onafterinit event for test harnesses

New Features:

Bugs Fixed: LPP-5838 - lztest runs before any other calls registered to canvas.oninit

Technical Reviewer: promanik
QA Reviewer: ptw
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: LaszloCanvas.lzs - Add canvas.onafterinit event that fires immediately after canvas.oninit.

lztestmanager.lzx - Register for canvas.onafterinit to ensure the canvas is really initted in swf9. Because lztestmanager is included really early (when=immediate) it registers for oninit before anything else in swf9. This was causing the test manager to run too early, e.g. before canvas layouts updated.


Tests: <http://localhost:8080/trunk/test/lztest/lztest-layout.lzx>http://localhost:8080/trunk/test/lztest/lztest-layout.lzx now passes in swf9, as well as swf8 and dhtml. ant lztest passes, and fails if one of the tests is deliberately broken.

Files:
M      WEB-INF/lps/lfc/views/LaszloCanvas.lzs
M      lps/components/lztest/lztestmanager.lzx

Changeset: <http://svn.openlaszlo.org/openlaszlo/patches/20080418-maxcarlson-O.tar>http://svn.openlaszlo.org/openlaszlo/patches/20080418-maxcarlson-O.tar

Reply via email to