The test compiles now, but does not pass.
<canvas debug="true">
<include href="lzunit"/>
<script>
Debug.write("This test file exercises compiler support for CSS
names with underscores and dashes.");
</script>
<stylesheet>
#gMax {
lzx\_bgcolor: #00FF00;
}
</stylesheet>
<debug/>
<class name="B" width="50" height="50" bgcolor="$style
{'lzx_bgcolor'}"/>
<B id="gMax" />
<TestSuite>
<TestCase>
<method name="testnamesuite">
assertEquals(0x00FF00, gMax.bgcolor);
</method>
</TestCase>
</TestSuite>
</canvas>
On Jan 9, 2007, at 12:14 AM, P T Withington wrote:
Tests:
Changing `lzx_bgcolor` to `lzx\_bgcolor` in
test/style/names/main_underscore.lzx makes the test work.
Files:
M WEB-INF/lps/server/src/org/openlaszlo/css/CSSHandler.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070108-
ptw-q.tar
--
Frisco Del Rosario
Tester, OpenLaszlo and IDE4Laszlo