Author: max
Date: 2007-08-07 16:47:40 -0700 (Tue, 07 Aug 2007)
New Revision: 5958

Modified:
   openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx
Log:
+ update testcase - validates ptw's assertion 'if I have a superclass attribute 
with a simple value that a subclass and instance can override that simple value 
with a style constraint'

Modified: openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx
===================================================================
--- openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx       
2007-08-07 21:44:57 UTC (rev 5957)
+++ openlaszlo/branches/wafflecone/test/style/constraints/subclassing.lzx       
2007-08-07 23:47:40 UTC (rev 5958)
@@ -10,6 +10,7 @@
     <stylesheet>
         happystyledbox {
             stylebgcolor : purple;
+            stylewidth : 999;
             styleinnercolor : attr(myInnerColor);
         }
     </stylesheet>
@@ -50,7 +51,7 @@
     <happystyledbox id="sb1" bgcolor="maroon" innerColor="red" />
 
     <subclassbox id="sb2" />
-    <otherlassbox id="sb3" />
+    <otherlassbox id="sb3" width="$style{'stylewidth'}"/>
     
     <subclassbox id="sb4" />    
 
@@ -71,6 +72,7 @@
              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"));
          </method>
      </class>


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to