Author: ptw
Date: 2007-08-08 07:53:09 -0700 (Wed, 08 Aug 2007)
New Revision: 5965
Modified:
openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx
Log:
Change 20070808-ptw-b by [EMAIL PROTECTED] on 2007-08-08 10:51:57 EDT
in /Users/ptw/OpenLaszlo/wafflecone
for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone
Summary: Test case for LPP-4451
Modified: openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx
===================================================================
--- openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx
2007-08-08 14:26:39 UTC (rev 5964)
+++ openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx
2007-08-08 14:53:09 UTC (rev 5965)
@@ -41,10 +41,12 @@
</class>
<!-- This box should be green with an inner view of lime. -->
- <class name="otherlassbox" extends="happystyledbox" bgcolor="green">
+ <class name="otherlassbox" extends="happystyledbox" bgcolor="green"
width="88">
<attribute name="innerColor" value="lime" />
</class>
+ <class name="lpp_4451" extends="happystyledbox" width="${parent.width/2}"
/>
+
<happystyledbox id="sb0" />
<!-- This box is maroon with an inner view of red -->
@@ -52,9 +54,11 @@
<subclassbox id="sb2" />
<otherlassbox id="sb3" width="$style{'stylewidth'}"/>
-
- <subclassbox id="sb4" />
+ <subclassbox id="sb4" />
+
+ <lpp_4451 id="sb5" width="$style{'stylewidth'}"/>
+
<class name="CSSSubclassingTestCase" extends="TestCase" >
<method name="testClassConstraint">
@@ -68,12 +72,16 @@
</method>
<method name="testSubclassOverrideConstraint">
+ <![CDATA[
this.assertEquals("150", sb2.getAttribute("width"));
this.assertEquals(navy, sb2.getAttribute("bgcolor")); // fails!
[2007.05.28 bshine]
this.assertEquals(blue, sb2.inner.getAttribute("bgcolor"));
this.assertEquals(green, sb3.getAttribute("bgcolor")); // fails!
[2007.05.28 bshine]
this.assertEquals(999, sb3.getAttribute("width"));
this.assertEquals(lime, sb3.inner.getAttribute("bgcolor"));
+ // FIXME: [2007-08-08 ptw] (LPP-4451) Uncomment when fixed
+ // this.assertEquals(999, sb5.width, "LPP-4451");
+ ]]>
</method>
</class>
</library>
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins