Author: gonzalo
Date: 2005-11-21 15:43:26 -0500 (Mon, 21 Nov 2005)
New Revision: 53322

Modified:
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonTest.cs
Log:
2005-11-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * RadioButtonTest.cs: more tests for the 'name' attribute.



Modified: trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2005-11-21 20:43:16 UTC (rev 53321)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2005-11-21 20:43:26 UTC (rev 53322)
@@ -1,3 +1,7 @@
+2005-11-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * RadioButtonTest.cs: more tests for the 'name' attribute.
+
 2005-10-24 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * LiteralTest.cs: Literal allows LiteralControl.

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonTest.cs
===================================================================
--- 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonTest.cs    
    2005-11-21 20:43:16 UTC (rev 53321)
+++ 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonTest.cs    
    2005-11-21 20:43:26 UTC (rev 53322)
@@ -158,5 +158,22 @@
                        s = r.Render ();
                        Assert.IsTrue (s.IndexOf ("/><label for") > 0, "text 
right");
                }
+
+               [Test]
+               public void NameAttr1 ()
+               {
+                       TestRadioButton b1 = new TestRadioButton ();
+                       b1.GroupName = "mono";
+                       TestRadioButton b2 = new TestRadioButton ();
+                       b2.GroupName = "mono";
+                       Page p = new Page ();
+                       p.ID = "MyPage";
+                       p.Controls.Add (b1);
+                       p.Controls.Add (b2);
+                       string t1 = b1.Render ();
+                       Assert.IsTrue (t1.IndexOf ("name=\"mono\"") != -1, 
"#01");
+                       string t2 = b2.Render ();
+                       Assert.IsTrue (t2.IndexOf ("name=\"mono\"") != -1, 
"#02");
+               }
        }
 }

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

Reply via email to