History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4530
Type: Bug Bug
Status: Verified Verified
Resolution: Fixed
Priority: P1 P1
Assignee: Unassigned
Reporter: Benjamin Shine
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

lzunit basedatacombobox test fails

Created: 20/Aug/07 10:24 AM   Updated: 23/Oct/07 04:15 PM
Component/s: Components - base
Affects Version/s: 4.0.5WaffleCone
Fix Version/s: 4.0.5WaffleCone

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 6,194
Runtime: N/A
Fix in hand: False


 Description  « Hide
http://localhost:8080/wafflecone/test/components/base/lzunit-basedatacombobox.lzx?lzr=swf7 fails, with

TestFailure: testSelectItemAt failed: Equals: expected 2 got ''
TestFailure: testBadSelectionIndex failed: False: expected false got true

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Benjamin Shine - 20/Aug/07 10:24 AM
The smoke test is failing, so I'm making this a P1.

Max Carlson - 25/Aug/07 04:15 PM
I fixed the tests in r6194. Now there are no errors, but there are still warnings:
WARNING: __LZgetNodes: p is null in LzDatapointer
WARNING: __LZgetNodes: p is null in LzDatapointer
WARNING: __LZgetNodes: p is null in LzDatapointer
WARNING: __LZgetNodes: p is null in LzDatapointer

Author: max
Date: 2007-08-22 16:19:41 -0700 (Wed, 22 Aug 2007)
New Revision: 6194

Modified:
   openlaszlo/branches/wafflecone/test/components/base/lzunit-basedatacombobox.lzx
Log:
+ this fixes the testcase (per comments in LPP-4523 and LPP-4524)

Modified: openlaszlo/branches/wafflecone/test/components/base/lzunit-basedatacombobox.lzx
===================================================================
--- openlaszlo/branches/wafflecone/test/components/base/lzunit-basedatacombobox.lzx 2007-08-22 21:34:34 UTC (rev 6193)
+++ openlaszlo/branches/wafflecone/test/components/base/lzunit-basedatacombobox.lzx 2007-08-22 23:19:41 UTC (rev 6194)
@@ -38,7 +38,7 @@
     <item value="3" text="C"/>
   </dataset>
   
- <simplecombobox x="100" id="scbox" itemdatapath="ds1:/"/>
+ <simplecombobox x="100" id="scbox" itemdatapath="ds1:/item"/>
   
   <TestSuite>
 
@@ -50,7 +50,7 @@
         <method name="testBadSelectionIndex">
             scbox.setValue(2);
             assertEquals( 2, scbox.getValue() );
- scbox._updateSelectionByIndex( -1, true, false);
+ scbox._updateSelectionByIndex( -1, false, false);
             // Changing the selection to -1 should make the value become undefined, or null,
             // but it shouldn't just keep the same value as before.
             assertFalse( 2 == scbox.getValue() );


_______________________________________________
Laszlo-checkins mailing list
Laszlo-checkins@openlaszlo.org
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Steve O'Sullivan - 23/Oct/07 04:15 PM
Tested in r6938. Windows IE7.

No errors are returned on running of test, however warnings are returned which Max accounts for. The following warnings are returned:

INFO: __LZgetNodes: p is null in LzDatapointer
INFO: __LZgetNodes: p is null in LzDatapointer
INFO: __LZgetNodes: p is null in LzDatapointer
INFO: __LZgetNodes: p is null in LzDatapointer
WARNING: LzLoadQueue.XMLOnDataHandler load failed from URL 'http://localhost:8080/lps-4.1.x/test/lzunit/Logger.jsp?logfile=lzunit%2Elog&msg=finish%5Ftestsuite%3A%20my%2Dapps%2FLPP%2D4530%2Flzunit%2Dbasedatacombobox%2Elzx%20failures%3A%200%0A', no data received.
WARNING: Failure to load data in serverless apps may be caused by Flash player security policies. Check your data server crossdomain.xml file