[Laszlo-dev] For Review: Change 20070102-ptw-s Summary: Better typing for styles

Frisco Del Rosario frisco at laszlosystems.com
Tue Jan 2 22:22:19 PST 2007


Tucker: 0xFFFFFF gives the debugger warning as planned, but #FFFFFF 
doesn't work yet.


>>>> Changeset: 
>>>> http://svn.openlaszlo.org/openlaszlo/patches/20070102-ptw- s.tar


<canvas debug="true">
<include href="lzunit"/>
<simplelayout axis="x" spacing="10"/>

<stylesheet>

#poundView {
	bgcolor : '#0000FF';
	}

#zeroxView {
	bgcolor : '0xFF0000';
	}

</stylesheet>

<view id="poundView" height="150" width="150" 
bgcolor="$style{'bgcolor'}">
	<text fgcolor="white" text="#0000FF"/>
</view>

<view id="zeroxView" height="150" width="150" 
bgcolor="$style{'bgcolor'}">
	<text fgcolor="white" text="0xFF0000"/>
</view>

<TestSuite>
	<TestCase>
		<method name="testLPP3356">
			assertEquals('#0000FF', poundView.bgcolor);
			assertEquals('0xFF0000', zeroxView.bgcolor);
		</method>
	</TestCase>	
</TestSuite>

</canvas>



More information about the Laszlo-dev mailing list