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

Key: LPP-4109
Type: Bug Bug
Status: Verified Verified
Resolution: Fixed
Priority: -- --
Assignee: Mamye Kratt
Reporter: P T Withington
Votes: 0
Watchers: 1
Operations

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

DHTML Smokecheck - output is erased, so you can't tell if it succeeded

Created: 07/Jun/07 12:04 PM   Updated: 02/Jul/07 02:13 PM
Component/s: Test System
Affects Version/s: 4.0.2
Fix Version/s: Legals, 4.0.3

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 5,560
Runtime: N/A
Fix in hand: False


 Description  « Hide
If you run smokecheck.lzx in DHTML, one of the tests appears to cause the progress bar and test status to be erased. When the suite is done, you can't tell if it passed or failed.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Benjamin Shine - 21/Jun/07 02:33 PM
I've trimmed this down to an interaction between two test cases -- this is the smallest test suite I can find that causes the lzunit output to go offscreen.

<canvas debug="true">
  <!-- Debugger parameters, if invoked with debug=true -->
  <debug height="50%" y="50%" width="100%" x="0"/>

  <include href="lzunit" />
  <class name="bug_1062" extends="TestCase">
      <view name="view1"/>
      <view name="view2"
          onfocus="trace = trace.concat('onfocus')"
          onblur="trace = trace.concat('onblur')">
          <attribute name="trace" value="[]"/>
      </view>
      <method name="assertArrayEquals" args="a, b">
          if (a.length != b.length) return false;
          for (var i in a)
          if (a[i] != b[i])
          return false;
          return true;
      </method>
      <method name="testNode">
          LzFocus.setFocus(view1)
          LzFocus.setFocus(view2)
          LzFocus.setFocus(view2)
          LzFocus.setFocus(view2)
          LzFocus.setFocus(view1)
          assertArrayEquals(['onfocus', 'onblur'], view2.trace)
      </method>
  </class>
  
  <dataset name="bug1314" nsprefix='false'>
      <root>some text</root>
  </dataset>
  <class name="bug_1314" extends="TestCase">
      <inputtext id="dv" datapath="bug1314:/root/text()"/>
      
      <method name="testDMap">
          dv.updateData();
          assertEquals(41 , bug1314.getPointer().serialize().length);
      </method>
  </class>
  
  
  <TestSuite>
      <!-- these two bugs together cause the canvas to shift so that the test view is not visible -->
    <bug_1062/>
    <bug_1314/>
  </TestSuite>

</canvas>


Benjamin Shine - 21/Jun/07 02:49 PM
Commenting out the test for bug_1062 in smokecheck.lzx makes the lzunit output and progress bar stay visible.

Benjamin Shine - 21/Jun/07 03:43 PM
Patch sent for review, openlaszlo/patches/20070621-ben-x.tar

Benjamin Shine - 29/Jun/07 02:55 PM
Fix merged to branches/4.0.3 in r5561