فهرست منبع

2005-09-07 Chris Toshok <[email protected]>

	* CalendarTest.cs (TestSelectedColorDefault): we need to split up
	the color tests since they're rendered in different orders by
	ms/us.


svn path=/trunk/mcs/; revision=49673
Chris Toshok 20 سال پیش
والد
کامیت
dc05aa54be

+ 2 - 1
mcs/class/System.Web/Test/System.Web.UI.WebControls/CalendarTest.cs

@@ -600,7 +600,8 @@ namespace MonoTests.System.Web.UI.WebControls
 			PokerCalendar p = new PokerCalendar ();
 			p.TodaysDate = new DateTime (2005, 8, 4);
 			p.SelectedDate = p.TodaysDate;
-			Assert.IsTrue (p.Render ().IndexOf ("color:White;background-color:Silver;")  != -1);
+			string s = p.Render();
+			Assert.IsTrue (s.IndexOf ("color:White") != 1 && s.IndexOf ("background-color:Silver") != -1, "A1");
 		}
 	}
 }

+ 6 - 0
mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,9 @@
+2005-09-07  Chris Toshok  <[email protected]>
+
+	* CalendarTest.cs (TestSelectedColorDefault): we need to split up
+	the color tests since they're rendered in different orders by
+	ms/us.
+
 2005-09-07  Chris Toshok  <[email protected]>
 
 	* ListControlTest.cs: add tests for the ControlState.