Ver código fonte

2008-11-07 Marek Habersack <[email protected]>

	* HtmlFormTest.cs: added a test for the undocumented Action
	property.

svn path=/trunk/mcs/; revision=118211
Marek Habersack 17 anos atrás
pai
commit
f078cd6349

+ 5 - 0
mcs/class/System.Web/Test/System.Web.UI.HtmlControls/ChangeLog

@@ -1,3 +1,8 @@
+2008-11-07  Marek Habersack  <[email protected]>
+
+	* HtmlFormTest.cs: added a test for the undocumented Action
+	property.
+
 2008-10-07  Christian Hergert  <[email protected]>
 
 	* HtmlImageTest.cs: Add test to make sure the src attribute is not

+ 13 - 0
mcs/class/System.Web/Test/System.Web.UI.HtmlControls/HtmlFormTest.cs

@@ -216,6 +216,19 @@ namespace MonoTests.System.Web.UI.HtmlControls {
 			Assert.AreEqual (" method=\"post\" action=\"?q=1&amp;q2=2\"", attrs, "A1");
 		}
 #endif
+
+		[Test]
+		public void Undocumented_ActionProperty ()
+		{
+			TestPage p = new TestPage ();
+			p.SetContext ();
+			FormPoker form = new FormPoker ();
+			form.Page = p;
+			form.Action = "someactionfile.aspx";
+			string attrs = form.RenderAttributes ();
+
+			Assert.AreEqual (" method=\"post\" action=\"someactionfile.aspx\"", attrs, "A1");
+		}
 #endif
 		
 		[Test]