2
0
Эх сурвалжийг харах

* TextBoxTest: More of these tests work now.

svn path=/trunk/mcs/; revision=68994
Jackson Harper 19 жил өмнө
parent
commit
47613a0dc9

+ 4 - 0
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog

@@ -1,3 +1,7 @@
+2006-12-04  Jackson Harper  <[email protected]>
+
+	* TextBoxTest: More of these tests work now.
+
 2006-12-04  Chris Toshok  <[email protected]>
 
 	* PrintDialogTest.cs: add [Category("Printing")] to all these

+ 2 - 3
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs

@@ -166,6 +166,7 @@ namespace MonoTests.System.Windows.Forms
 		public void AppendText_Multiline_LF ()
 		{
 			TextBox textBox = new TextBox ();
+			textBox.Multiline = true;
 			textBox.Text = "ha";
 			textBox.AppendText ("hi\n\n");
 			textBox.AppendText ("ho\n");
@@ -201,7 +202,6 @@ namespace MonoTests.System.Windows.Forms
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void ClearUndoTest ()
 		{
 			textBox.Text = "TextBox1";
@@ -266,7 +266,6 @@ namespace MonoTests.System.Windows.Forms
 		}
 
 		[Test]
-		[Category ("NotWorking")]
 		public void UndoTest1 ()
 		{
 			textBox.Text = "ABCDE";
@@ -274,6 +273,7 @@ namespace MonoTests.System.Windows.Forms
 			textBox.Copy ();
 			textBox.SelectionStart = textBox.SelectionStart + textBox.SelectionLength;
 			textBox.Paste ();
+			Console.WriteLine ("pre paste text:  {0}", textBox.Text);
 			textBox.Undo ();
 			Assert.AreEqual ("ABCDE", textBox.Text, "#36");
 		}
@@ -297,7 +297,6 @@ namespace MonoTests.System.Windows.Forms
 		}
 
 		[Test] // bug #79909
-		[Category ("NotWorking")]
 		public void MultilineText ()
 		{
 			string text = "line1\n\nline2\nline3\r\nline4";