Author: andrews
Date: 2006-11-07 07:48:26 -0500 (Tue, 07 Nov 2006)
New Revision: 67447
Modified:
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DetailsViewTest.cs
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
Log:
TARGET_JVM and test message
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-07 12:27:48 UTC (rev 67446)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/ChangeLog
2006-11-07 12:48:26 UTC (rev 67447)
@@ -1,3 +1,8 @@
+2006-11-07 Andrew Skiba <[EMAIL PROTECTED]>
+
+ * DetailsViewTest.cs: TARGET_JVM and test message
+ * FormViewTest.cs, GridViewTest.cs: TARGET_JVM
+
2006-11-06 Igor Zelmanovich <[EMAIL PROTECTED]>
* FormViewTest.cs: added tests, removed NotWorking attributes.
Modified:
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DetailsViewTest.cs
===================================================================
---
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DetailsViewTest.cs
2006-11-07 12:27:48 UTC (rev 67446)
+++
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/DetailsViewTest.cs
2006-11-07 12:48:26 UTC (rev 67447)
@@ -371,6 +371,9 @@
[Test]
+#if TARGET_JVM //probably dependant on BUG #6489
+ [Category ("NotWorking")]
+#endif
public void DetailsView_DefaultProperties ()
{
PokerDetailsView dv = new PokerDetailsView ();
@@ -425,7 +428,10 @@
Assert.AreEqual (null, dv.TopPagerRow, "TopPagerRow");
}
- [Test]
+ [Test]
+#if TARGET_JVM //probably dependant on BUG #6489
+ [Category ("NotWorking")]
+#endif
public void DetailsView_AssignToDefaultProperties ()
{
PokerDetailsView dv = new PokerDetailsView ();
@@ -635,7 +641,10 @@
Assert.AreEqual (DetailsViewMode.ReadOnly,
dv.CurrentMode, "ChangeModeReadOnly");
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_DataBind ()
{
PokerDetailsView dv = new PokerDetailsView ();
@@ -675,7 +684,10 @@
private bool isDeleted = false;
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void DetailsView_DeleteItemHandler ()
{
PokerDetailsView dv = new PokerDetailsView ();
@@ -827,7 +839,10 @@
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void DetailsView_CreateChildControls ()
{
PokerDetailsView dv = new PokerDetailsView ();
@@ -1012,7 +1027,10 @@
//Not implemented
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void DetailsView_InitializePager ()
{
PokerDetailsView dv = new PokerDetailsView ();
@@ -1882,40 +1900,40 @@
DetailsView dv = new DetailsView ();
dv.Page = new Page ();
IButtonControl btn = new Button ();
- btn.CausesValidation = false;
- Assert.IsFalse (btn.CausesValidation);
- Assert.AreEqual (String.Empty, btn.CommandName);
- Assert.AreEqual (String.Empty, btn.CommandArgument);
- Assert.AreEqual (String.Empty, btn.PostBackUrl);
- Assert.AreEqual (String.Empty, btn.ValidationGroup);
- PostBackOptions options = ((IPostBackContainer)
dv).GetPostBackOptions (btn);
- Assert.IsFalse (options.PerformValidation);
- Assert.IsFalse (options.AutoPostBack);
- Assert.IsFalse (options.TrackFocus);
- Assert.IsTrue (options.ClientSubmit);
- Assert.IsTrue (options.RequiresJavaScriptProtocol);
- Assert.AreEqual ("$", options.Argument);
- Assert.AreEqual (null, options.ActionUrl);
- Assert.AreEqual (null, options.ValidationGroup);
+ btn.CausesValidation = false;
+ Assert.IsFalse (btn.CausesValidation,
"DetailsView_GetPostBackOptions #1");
+ Assert.AreEqual (String.Empty, btn.CommandName,
"DetailsView_GetPostBackOptions #2");
+ Assert.AreEqual (String.Empty, btn.CommandArgument,
"DetailsView_GetPostBackOptions #3");
+ Assert.AreEqual (String.Empty, btn.PostBackUrl,
"DetailsView_GetPostBackOptions #4");
+ Assert.AreEqual (String.Empty, btn.ValidationGroup,
"DetailsView_GetPostBackOptions #5");
+ PostBackOptions options = ((IPostBackContainer)
dv).GetPostBackOptions (btn);
+ Assert.IsFalse (options.PerformValidation,
"DetailsView_GetPostBackOptions #6");
+ Assert.IsFalse (options.AutoPostBack,
"DetailsView_GetPostBackOptions #7");
+ Assert.IsFalse (options.TrackFocus,
"DetailsView_GetPostBackOptions #8");
+ Assert.IsTrue (options.ClientSubmit,
"DetailsView_GetPostBackOptions #9");
+ Assert.IsTrue (options.RequiresJavaScriptProtocol,
"DetailsView_GetPostBackOptions #10");
+ Assert.AreEqual ("$", options.Argument,
"DetailsView_GetPostBackOptions #11");
+ Assert.AreEqual (null, options.ActionUrl,
"DetailsView_GetPostBackOptions #12");
+ Assert.AreEqual (null, options.ValidationGroup,
"DetailsView_GetPostBackOptions #13");
btn.ValidationGroup = "VG";
btn.CommandName = "CMD";
btn.CommandArgument = "ARG";
- btn.PostBackUrl = "Page.aspx";
- Assert.IsFalse (btn.CausesValidation);
- Assert.AreEqual ("CMD", btn.CommandName);
- Assert.AreEqual ("ARG", btn.CommandArgument);
- Assert.AreEqual ("Page.aspx", btn.PostBackUrl);
- Assert.AreEqual ("VG", btn.ValidationGroup);
- options = ((IPostBackContainer) dv).GetPostBackOptions
(btn);
- Assert.IsFalse (options.PerformValidation);
- Assert.IsFalse (options.AutoPostBack);
- Assert.IsFalse (options.TrackFocus);
- Assert.IsTrue (options.ClientSubmit);
- Assert.IsTrue (options.RequiresJavaScriptProtocol);
- Assert.AreEqual ("CMD$ARG", options.Argument);
- Assert.AreEqual (null, options.ActionUrl);
- Assert.AreEqual (null, options.ValidationGroup);
+ btn.PostBackUrl = "Page.aspx";
+ Assert.IsFalse (btn.CausesValidation,
"DetailsView_GetPostBackOptions #14");
+ Assert.AreEqual ("CMD", btn.CommandName,
"DetailsView_GetPostBackOptions #15");
+ Assert.AreEqual ("ARG", btn.CommandArgument,
"DetailsView_GetPostBackOptions #16");
+ Assert.AreEqual ("Page.aspx", btn.PostBackUrl,
"DetailsView_GetPostBackOptions #17");
+ Assert.AreEqual ("VG", btn.ValidationGroup,
"DetailsView_GetPostBackOptions #18");
+ options = ((IPostBackContainer) dv).GetPostBackOptions
(btn);
+ Assert.IsFalse (options.PerformValidation,
"DetailsView_GetPostBackOptions #19");
+ Assert.IsFalse (options.AutoPostBack,
"DetailsView_GetPostBackOptions #20");
+ Assert.IsFalse (options.TrackFocus,
"DetailsView_GetPostBackOptions #21");
+ Assert.IsTrue (options.ClientSubmit,
"DetailsView_GetPostBackOptions #22");
+ Assert.IsTrue (options.RequiresJavaScriptProtocol,
"DetailsView_GetPostBackOptions #23");
+ Assert.AreEqual ("CMD$ARG", options.Argument,
"DetailsView_GetPostBackOptions #24");
+ Assert.AreEqual (null, options.ActionUrl,
"DetailsView_GetPostBackOptions #25");
+ Assert.AreEqual (null, options.ValidationGroup,
"DetailsView_GetPostBackOptions #26");
}
[Test]
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-11-07 12:27:48 UTC (rev 67446)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs
2006-11-07 12:48:26 UTC (rev 67447)
@@ -500,6 +500,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_ItemsProperties ()
{
Poker p = new Poker ();
@@ -578,6 +581,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_InitializePager ()
{
Poker fv = new Poker ();
@@ -593,6 +599,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_CreateRow ()
{
Poker fv = new Poker ();
@@ -616,6 +625,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_CreateTable ()
{
Poker fv = new Poker ();
@@ -784,6 +796,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_DataBind ()
{
Poker fv = new Poker ();
@@ -801,6 +816,9 @@
private bool isDeleted = false;
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_DeleteItem ()
{
Poker fv = new Poker ();
@@ -841,6 +859,9 @@
private bool updateItem = false;
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_UpdateItem ()
{
Poker fv = new Poker ();
@@ -955,6 +976,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_BubbleEvent ()
{
FormViewCommandEventArgs com;
@@ -1834,6 +1858,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void FormView_GetPostBackOptions () {
FormView fv = new FormView ();
fv.Page = new Page ();
@@ -1900,7 +1927,7 @@
public class TestMyData
{
- static IList<int> str = (IList<int>) new int[] { 1, 2, 3, 4, 5,
6 };
+ static IList<int> str = new List<int> (new int[] { 1, 2, 3, 4,
5, 6 });
public static IList<int> GetMyList ()
Modified:
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
2006-11-07 12:27:48 UTC (rev 67446)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/GridViewTest.cs
2006-11-07 12:48:26 UTC (rev 67447)
@@ -506,6 +506,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_Sort_and_DataSourceSelectArguments () {
DataSourceView view;
DataSourceSelectArguments arg;
@@ -551,6 +554,9 @@
// contains the arguments passed to the data source. In this
implementation,
// the DataSourceSelectArguments object contains the arguments
for paging operations.
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_CreateDataSourceSelectArguments () {
DataSourceView view;
Page p = new Page ();
@@ -632,7 +638,10 @@
Assert.AreEqual (SortDirection.Descending,
e.SortDirection, "GridViewSortEventArgs.SortDirection");
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_DataBind()
{
PokerGridView g = new PokerGridView ();
@@ -752,6 +761,9 @@
}
[Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_CreateChildControls ()
{
PokerGridView g = new PokerGridView ();
@@ -824,7 +836,10 @@
}
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_InitializePager ()
{
PokerGridView gv = new PokerGridView ();
@@ -1219,7 +1234,10 @@
pageIndexChanged = true;
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_PerformDataBiding ()
{
PokerGridView gv = new PokerGridView ();
@@ -1227,7 +1245,10 @@
Assert.AreEqual (6, gv.Rows.Count,
"PerformDataBiding_Rows");
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_PrepareControlHierarchy ()
{
PokerGridView gv = new PokerGridView ();
@@ -1272,7 +1293,10 @@
Assert.AreEqual(-1 ,b.Render().IndexOf("table"),
"RenderViewState");
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_Render ()
{
PokerGridView b = new PokerGridView ();
@@ -1301,7 +1325,10 @@
HtmlDiff.AssertAreEqual (OriginControlHtml,
RenderedControlHtml, "Rendering");
}
- [Test]
+ [Test]
+#if TARGET_JVM //BUG #6484
+ [Category ("NotWorking")]
+#endif
public void GridView_RenderAllowPaging ()
{
string RenderedPageHtml = new WebTest
(PageInvoker.CreateOnLoad (RenderAllowPaging)).Run ();
@@ -1845,6 +1872,9 @@
///////////////////////////////////////////////////////
[Test]
+#if TARGET_JVM //BUG #6497
+ [Category ("NotWorking")]
+#endif
public void GridView_GetPostBackOptions () {
GridView gv = new GridView ();
gv.Page = new Page ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches