Author: igorz
Date: 2006-10-18 10:57:27 -0400 (Wed, 18 Oct 2006)
New Revision: 66790

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs
Log:
2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>

        * FormView.cs: fixed: OnBubbleEvent returns true when event is handled.



Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-10-18 14:41:14 UTC (rev 66789)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-10-18 14:57:27 UTC (rev 66790)
@@ -1,5 +1,9 @@
 2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>
 
+       * FormView.cs: fixed: OnBubbleEvent returns true when event is handled.
+
+2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>
+
        * DetailsView.cs: fixed: OnBubbleEvent works properly.
 
 2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs    
2006-10-18 14:41:14 UTC (rev 66789)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs    
2006-10-18 14:57:27 UTC (rev 66790)
@@ -1120,6 +1120,7 @@
                        if (args != null) {
                                OnItemCommand (args);
                                ProcessEvent (args.CommandName, 
args.CommandArgument as string);
+                               return true;
                        }
                        return base.OnBubbleEvent (source, e);
                }

Modified: trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2006-10-18 14:41:14 UTC (rev 66789)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog 
2006-10-18 14:57:27 UTC (rev 66790)
@@ -1,5 +1,9 @@
 2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>
 
+       * FormViewTest.cs: added test
+                       
+2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>
+
        * DetailsViewTest.cs: removed NotWorking attributes
        * DetailsViewRowCollectionTest.cs: removed NotWorking attributes
                        

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs   
2006-10-18 14:41:14 UTC (rev 66789)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs   
2006-10-18 14:57:27 UTC (rev 66790)
@@ -907,7 +907,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Delete", null));
                        Assert.AreEqual (false, itemDeleting, 
"BeforeDeleteCommandBubbleEvent");
                        Assert.AreEqual (false, itemCommand, 
"BeforeDeleteBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Delete");
                        Assert.AreEqual (true, itemDeleting, 
"AfterDeleteBubbleEvent");
                        Assert.AreEqual (true, itemCommand, 
"AfterDeleteCommandBubbleEvent");
 
@@ -919,7 +919,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Insert", null));
                        Assert.AreEqual (false, itemCommand, 
"BeforeInsertCommandBubbleEvent");
                        Assert.AreEqual (false, itemInserting, 
"BeforeInsertBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Insert");
                        Assert.AreEqual (true, itemCommand, 
"AfterInsertCommandBubbleEvent");
                        Assert.AreEqual (true, itemInserting, 
"AfterInsertBubbleEvent");
 
@@ -931,7 +931,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Update", null));
                        Assert.AreEqual (false, itemUpdating, 
"BeforeUpdateEvent");
                        Assert.AreEqual (false, itemCommand, 
"BeforeUpdateCommandEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Update");
                        Assert.AreEqual (true, itemCommand, 
"AfterUpdateCommandBubbleEvent");
                        Assert.AreEqual (true, itemUpdating, 
"AfterUpdateBubbleEvent");
 
@@ -942,7 +942,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Cancel", null));
                        Assert.AreEqual (false, itemCommand, 
"BeforeCancelCommandBubbleEvent");
                        Assert.AreEqual (false, modeChanging, 
"BeforeCancelBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Cancel");
                        Assert.AreEqual (true, itemCommand, 
"AfterCancelCommandBubbleEvent");
                        Assert.AreEqual (true, modeChanging, 
"AfterCancelBubbleEvent");
 
@@ -952,7 +952,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Edit", null));
                        Assert.AreEqual (false, itemCommand, 
"BeforeEditCommandBubbleEvent");
                        Assert.AreEqual (false, modeChanging, 
"BeforeEditBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Edit");
                        Assert.AreEqual (true, itemCommand, 
"AfterEditCommandBubbleEvent");
                        Assert.AreEqual (true, modeChanging, 
"AfterEditBubbleEvent");
 
@@ -962,7 +962,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("New", null));
                        Assert.AreEqual (false, itemCommand, 
"BeforeNewCommandBubbleEvent");
                        Assert.AreEqual (false, modeChanging, 
"BeforeNewBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - New");
                        Assert.AreEqual (true, itemCommand, 
"AfterNewCommandBubbleEvent");
                        Assert.AreEqual (true, modeChanging, 
"AfterNewBubbleEvent");
 
@@ -972,7 +972,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Page", null));
                        Assert.AreEqual (false, itemCommand, 
"BeforePageCommandBubbleEvent");
                        Assert.AreEqual (false, pageIndexChanging, 
"BeforePageBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Page Index default");
                        Assert.AreEqual (true, itemCommand, 
"AfterPageCommandBubbleEvent");
                        Assert.AreEqual (true, pageIndexChanging, 
"AfterPageBubbleEvent");
                        Assert.AreEqual (-1, newPageIndex, "PageIndex");
@@ -983,7 +983,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Page", "Next"));
                        Assert.AreEqual (false, itemCommand, 
"BeforeNextPageCommandBubbleEvent");
                        Assert.AreEqual (false, pageIndexChanging, 
"BeforeNextPageBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Next Page");
                        Assert.AreEqual (true, itemCommand, 
"AfterNextPageCommandBubbleEvent");
                        Assert.AreEqual (true, pageIndexChanging, 
"AfterNextPageBubbleEvent");
                        Assert.AreEqual (1, newPageIndex, "NextPageIndex");
@@ -994,7 +994,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Page", "Prev"));
                        Assert.AreEqual (false, itemCommand, 
"BeforePrevPageCommandBubbleEvent");
                        Assert.AreEqual (false, pageIndexChanging, 
"BeforePrevPageBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Prev Page");
                        Assert.AreEqual (true, itemCommand, 
"AfterPrevPageCommandBubbleEvent");
                        Assert.AreEqual (true, pageIndexChanging, 
"AfterPrevPageBubbleEvent");
                        Assert.AreEqual (-1, newPageIndex, "PrevPageIndex");
@@ -1005,7 +1005,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Page", "First"));
                        Assert.AreEqual (false, itemCommand, 
"BeforeFirstPageCommandBubbleEvent");
                        Assert.AreEqual (false, pageIndexChanging, 
"BeforeFirstPageBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - First Page");
                        Assert.AreEqual (true, itemCommand, 
"AfterFirstPageCommandBubbleEvent");
                        Assert.AreEqual (true, pageIndexChanging, 
"AfterFirstPageBubbleEvent");
                        Assert.AreEqual (0, newPageIndex, "FirstPageIndex");
@@ -1016,7 +1016,7 @@
                        com = new FormViewCommandEventArgs (bt, new 
CommandEventArgs ("Page", "Last"));
                        Assert.AreEqual (false, itemCommand, 
"BeforeLastPageCommandBubbleEvent");
                        Assert.AreEqual (false, pageIndexChanging, 
"BeforeLastPageBubbleEvent");
-                       fv.DoOnBubbleEvent (bt, com);
+                       Assert.IsTrue (fv.DoOnBubbleEvent (bt, com), 
"OnBubbleEvent - Last Page");
                        Assert.AreEqual (true, itemCommand, 
"AfterLastPageCommandBubbleEvent");
                        Assert.AreEqual (true, pageIndexChanging, 
"AfterLastPageBubbleEvent");
                        Assert.AreEqual (5, newPageIndex, "FirstPageIndex");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to