Author: andrews
Date: 2006-07-19 10:39:44 -0400 (Wed, 19 Jul 2006)
New Revision: 62748

Modified:
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/TableStyleTest.cs
Log:
* TableStyleTest.cs: add a test for BackImageUrl rendering


Modified: trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2006-07-19 14:32:45 UTC (rev 62747)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2006-07-19 14:39:44 UTC (rev 62748)
@@ -1,5 +1,9 @@
-2006-07-19 Merav Sudri <[EMAIL PROTECTED]>
+2006-07-19 Andrew Skiba <[EMAIL PROTECTED]>
 
+       * TableStyleTest.cs: add a test for BackImageUrl rendering
+
+2006-07-19 Merav Sudri <[EMAIL PROTECTED]>
+
        * DetailsViewRowTest.cs: added new test
        * DetailsViewRowCollectionTest.cs: added new test
        * FormViewRowTest.cs: added new test

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/TableStyleTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/TableStyleTest.cs 
2006-07-19 14:32:45 UTC (rev 62747)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/TableStyleTest.cs 
2006-07-19 14:39:44 UTC (rev 62748)
@@ -425,5 +425,25 @@
                        Assert.AreEqual ("http://www.go-mono.com";, 
ts.BackImageUrl, "BackImageUrl");
                }
 #endif
+               [Test]
+               public void BackImageUrl ()
+               {
+                       TableStyle ts = new TableStyle ();
+                       ts.BackImageUrl = "test 1.jpg";
+                       StringWriter sw = new StringWriter ();
+                       sw.NewLine = "\n";
+                       HtmlTextWriter htw = new HtmlTextWriter (sw);
+                       ts.AddAttributesToRender (htw);
+                       htw.RenderBeginTag ("tagName");
+                       string res = htw.InnerWriter.ToString ();
+                       string expected = "<tagName 
style=\"background-image:url(";
+#if NET_2_0
+                       expected += "test%201.jpg";
+#else
+                       expected += "test 1.jpg";
+#endif
+                       expected += ");\">\n";
+                       Assert.AreEqual (expected, res);
+               }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to