2008-05-04 Igor Zelmanovich <igorz@mainsoft.com>
authorIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Sun, 4 May 2008 14:53:55 +0000 (14:53 -0000)
committerIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Sun, 4 May 2008 14:53:55 +0000 (14:53 -0000)
* HtmlInputButtonTest.cs: use HtmlDiff properly.

svn path=/trunk/mcs/; revision=102467

mcs/class/System.Web/Test/System.Web.UI.HtmlControls/ChangeLog
mcs/class/System.Web/Test/System.Web.UI.HtmlControls/HtmlInputButtonTest.cs

index 6433cb40f6249259eed419567861ecb9bd1fb2a5..0d2497f60b3360b6ee5141688d096fd0a1118bdd 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-04 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * HtmlInputButtonTest.cs: use HtmlDiff properly.
+
 2008-04-03  Marek Habersack  <mhabersack@novell.com>
 
        * HtmlFormTest.cs: indirect test for bug #376352 is 2.0+ only.
index 289215eee70df4762b07b063fd4cea2f12e8bc58..74f7e2806e5b711821988a4077e0c29ddf57753f 100644 (file)
@@ -135,11 +135,13 @@ namespace MonoTests.System.Web.UI.HtmlControls {
                        Assert.AreEqual (2, p.Attributes.Count, "A1");
 #endif
 
+                       tw.WriteBeginTag ("dummy");
                        p.DoRenderAttributes (tw);
+                       tw.Write ('>');
 #if NET_2_0
-                       HtmlDiff.AssertAreEqual (" name type=\"button\" ValidationGroup=\"VG\" /", sw.ToString (), "A2");
+                       HtmlDiff.AssertAreEqual ("<dummy name type=\"button\" ValidationGroup=\"VG\" />", sw.ToString (), "A2");
 #else
-                       HtmlDiff.AssertAreEqual (" name type=\"button\" /", sw.ToString (), "A2");
+                       HtmlDiff.AssertAreEqual ("<dummy name type=\"button\" />", sw.ToString (), "A2");
 #endif
                }