Author: igorz
Date: 2006-11-22 06:27:33 -0500 (Wed, 22 Nov 2006)
New Revision: 68340
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/CircleHotSpotTest.cs
Log:
2006-11-22 Igor Zelmanovich <[EMAIL PROTECTED]>
* CircleHotSpot.cs: fixed:
setting Radius with value <0 throws ArgumentOutOfRangeException.
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-11-22 11:25:16 UTC (rev 68339)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-11-22 11:27:33 UTC (rev 68340)
@@ -1,5 +1,10 @@
2006-11-22 Igor Zelmanovich <[EMAIL PROTECTED]>
+ * CircleHotSpot.cs: fixed:
+ setting Radius with value <0 throws ArgumentOutOfRangeException.
+
+2006-11-22 Igor Zelmanovich <[EMAIL PROTECTED]>
+
* CookieParameter.cs: fixed Evaluate method.
2006-11-22 Igor Zelmanovich <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs
2006-11-22 11:25:16 UTC (rev 68339)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs
2006-11-22 11:27:33 UTC (rev 68340)
@@ -48,7 +48,11 @@
[DefaultValueAttribute (0)]
public int Radius {
get { return ViewState.GetInt ("Radius", 0); }
- set { ViewState ["Radius"] = value; }
+ set {
+ if (value < 0)
+ throw new ArgumentOutOfRangeException
();
+ ViewState ["Radius"] = value;
+ }
}
[DefaultValueAttribute (0)]
Modified: trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
2006-11-22 11:25:16 UTC (rev 68339)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
2006-11-22 11:27:33 UTC (rev 68340)
@@ -1,5 +1,9 @@
2006-11-22 Igor Zelmanovich <[EMAIL PROTECTED]>
+ * CircleHotSpotTest.cs: removed NotWorking attributes.
+
+2006-11-22 Igor Zelmanovich <[EMAIL PROTECTED]>
+
* CookieParameterTest.cs: removed NotWorking attributes.
2006-11-22 Igor Zelmanovich <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/CircleHotSpotTest.cs
===================================================================
---
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/CircleHotSpotTest.cs
2006-11-22 11:25:16 UTC (rev 68339)
+++
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/CircleHotSpotTest.cs
2006-11-22 11:27:33 UTC (rev 68340)
@@ -65,8 +65,7 @@
}
[Test]
- [Category ("NotWorking")]
- [ExpectedException(typeof(ArgumentOutOfRangeException))]
+ [ExpectedException (typeof (ArgumentOutOfRangeException))]
public void CircleHotSpot_ExpRadius()
{
// The specified value is less than 0
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches