Index: test/lztest/lztest-text.lzx
===================================================================
--- test/lztest/lztest-text.lzx	(revision 1728)
+++ test/lztest/lztest-text.lzx	(working copy)
@@ -74,6 +74,26 @@
     <text name="t4" font="mono" bgcolor="0xcccccc" width="66" multiline="true">1234567890</text>
   </view>
 
+  <!-- text10: font color -->
+    <view name="view10" options="ignorelayout" x="5" y="100">
+      <simplelayout axis="y"/>
+      <text name="t1" fgcolor="0xaa33aa">purple text with fgcolor attr</text>
+      <text name="t2">black text, set to purple at runtime</text>
+      <text name="t3"><font color="#aa33aa">purple text with html font color tag</font></text>      
+      <text name="t4">black text, set to purple at runtime with setFormat</text>      
+      <text name="t5">text set to purple with setAttribute('fgcolor', etc)</text>
+      <text name="t6">text set to purple with setAttribute('color', etc)</text>      
+    </view>
+    
+    <!-- text11: changing font style at runtime --> 
+    <view name="view11" options="ignorelayout" x="5" y="200">
+      <simplelayout axis="y"/>
+      <text name="t1" fontstyle="bold">bold text</text>
+      <text name="t2" fontstyle="italic">italic text</text>
+      <text name="t3" fontstyle="bolditalic">bolditalic text</text>
+      <text name="t4">plain text</text>      
+    </view>
+
 <script><![CDATA[
 
 var suite = new LzTestSuite("LzText Test Suite"); 
@@ -446,7 +466,44 @@
 //  }
 }
 
+// test10: font color 
+suite.test10 = function() {
+    LzTestManager.assertTrue( false, "These text fields must be visually inspected in each runtime. They must all be purple, 0xaa3300. They should also pass these tests on their data representation.");
+    
+    LzTestManager.assertEquals (0xaa33aa, view10.t1.getColor(), "view10.t1.getColor failure");    
+    
+    // Try using the setColor api
+    view10.t2.setColor(0xaa33aa); 
+    LzTestManager.assertEquals (0xaa33aa, view10.t2.getColor(), "view10.t2.setColor failure");        
+    
+    // Use nested html to specify format
+    LzTestManager.assertEquals (0xaa33aa, view10.t3.getColor(), "view10.t3.getColor failure");            
+    
+    // Use the setColor api
+    view10.t4.setColor(0xaa33aa); 
+    view10.t4.setFormat(); 
+    LzTestManager.assertEquals (0xaa33aa, view10.t4.getColor(), "view10.t4.setColor/setFormat failure");    
 
+    view10.t5.setAttribute("color", 0xaa33aa);
+    LzTestManager.assertEquals (0xaa33aa, view10.t5.getAttribute("color"), "view10.t5.setAttribute(color) failure");        
+    
+    view10.t6.setAttribute("fgcolor", 0xaa33aa);
+    LzTestManager.assertEquals (0xaa33aa, view10.t5.getAttribute("fgcolor"), "view10.t6.setAttribute(fgcolor) failure");        
+    
+}
+
+// test11: font style
+suite.test11 = function() {
+    LzTestManager.assertTrue( false, "These text fields must be visually inspected in each runtime. They should be bold, italic, bolditalic, and plain.");
+    LzTestManager.assertEquals( "bold", view11.t1.getAttribute("fontstyle"), "view11.t1 get fontstyle failure"); 
+    LzTestManager.assertEquals( "italic", view11.t2.getAttribute("fontstyle") ,"view11.t2 get fontstyle failure");      
+    LzTestManager.assertEquals( "bolditalic", view11.t3.getAttribute("fontstyle"), "view11.t3 get fontstyle failure"); 
+    LzTestManager.assertEquals( "plain", view11.t4.getAttribute("fontstyle"), "view11.t4 get fontstyle failure"); 
+}
+
+
+suite.addTest(suite.test11);
+suite.addTest(suite.test10);
 suite.addTest(suite.test9);
 suite.addTest(suite.test8);
 suite.addTest(suite.test7);
