You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -180,7 +180,6 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
p.DataSource = new Object();
|
||||
Assert.AreEqual (true, p.ValidateDataSourceCalled);
|
||||
}
|
||||
#if NET_4_0
|
||||
[Test]
|
||||
public void SupportsDisabledAttribute ()
|
||||
{
|
||||
@@ -194,6 +193,5 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
Assert.AreEqual (ver35, p.RenderingCompatibility, "#A2-1");
|
||||
Assert.IsTrue (p.SupportsDisabledAttribute, "#A2-2");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -802,7 +802,6 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
// and junk
|
||||
Assert.IsFalse (BaseDataList.IsBindableType (this.GetType ()), "this");
|
||||
}
|
||||
#if NET_4_0
|
||||
[Test]
|
||||
public void SupportsDisabledAttribute ()
|
||||
{
|
||||
@@ -816,6 +815,5 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
Assert.AreEqual (ver35, p.RenderingCompatibility, "#A2-1");
|
||||
Assert.IsTrue (p.SupportsDisabledAttribute, "#A2-2");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -130,11 +130,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test (Description="Bug 646505")]
|
||||
public void BoundField_Bug646505 ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string originalHtml = "<div>\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\n\t\t<tr>\n\t\t\t<th scope=\"col\"> </th><th scope=\"col\"> </th>\n\t\t</tr><tr>\n\t\t\t<td><a href=\"javascript:__doPostBack('gridView$ctl02$ctl00','')\">Update</a> <a href=\"javascript:__doPostBack('gridView','Cancel$0')\">Cancel</a></td><td><input name=\"gridView$ctl02$ctl02\" type=\"text\" value=\"False\" /></td>\n\t\t</tr><tr>\n\t\t\t<td><a href=\"javascript:__doPostBack('gridView','Edit$1')\">Edit</a></td><td>False</td>\n\t\t</tr>\n\t</table>\n</div>\n";
|
||||
#else
|
||||
string originalHtml = "<div>\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\n\t\t<tr>\n\t\t\t<th scope=\"col\"> </th><th scope=\"col\"> </th>\n\t\t</tr><tr>\n\t\t\t<td><a href=\"javascript:__doPostBack('gridView$ctl02$ctl00','')\">Update</a> <a href=\"javascript:__doPostBack('gridView','Cancel$0')\">Cancel</a></td><td><input name=\"gridView$ctl02$ctl02\" type=\"text\" value=\"False\" /></td>\n\t\t</tr><tr>\n\t\t\t<td><a href=\"javascript:__doPostBack('gridView','Edit$1')\">Edit</a></td><td>False</td>\n\t\t</tr>\n\t</table>\n</div>\n";
|
||||
#endif
|
||||
WebTest t = new WebTest ("BoundField_Bug646505.aspx");
|
||||
t.Run ();
|
||||
|
||||
@@ -371,11 +367,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
Assert.IsTrue (bf.DoSupportsHtmlEncode, "#A1-3");
|
||||
|
||||
bf.DataFormatString = formatString;
|
||||
#if NET_4_0
|
||||
Assert.AreEqual ("<script>alert ('<test>');</script>", bf.DoFormatDataValue ("<test>", true), "#A2");
|
||||
#else
|
||||
Assert.AreEqual ("<script>alert ('<test>');</script>", bf.DoFormatDataValue ("<test>", true), "#A2");
|
||||
#endif
|
||||
Assert.AreEqual (String.Format (formatString, "<test>"), bf.DoFormatDataValue ("<test>", false), "#A3");
|
||||
|
||||
bf.HtmlEncodeFormatString = false;
|
||||
@@ -383,11 +375,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
|
||||
var ec = new EncodingTest ();
|
||||
bf.HtmlEncodeFormatString = true;
|
||||
#if NET_4_0
|
||||
Assert.AreEqual ("<script>alert ('<EncodingTest>&');</script>", bf.DoFormatDataValue (ec, true), "#A4");
|
||||
#else
|
||||
Assert.AreEqual ("<script>alert ('<EncodingTest>&');</script>", bf.DoFormatDataValue (ec, true), "#A4");
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@@ -823,7 +823,6 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
RequiredFieldValidator rfv = cp.ChangePasswordTemplateContainer.FindControl ("text1required") as RequiredFieldValidator;
|
||||
Assert.IsNotNull (rfv, "#A2");
|
||||
}
|
||||
#if NET_4_0
|
||||
[Test]
|
||||
public void RenderOuterTableForbiddenStyles ()
|
||||
{
|
||||
@@ -890,7 +889,6 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
[TestFixtureTearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
|
@@ -127,11 +127,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test (Description="Bug 595568 #0")]
|
||||
public void CheckBoxField_Bug595568_0 ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><span title=\"Dummy\"><input id=\"gridView_ctl00_0\" type=\"checkbox\" name=\"gridView$ctl02$ctl00\" checked=\"checked\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><span title=\"Dummy\"><input id=\"gridView_ctl00_1\" type=\"checkbox\" name=\"gridView$ctl03$ctl00\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><span title=\"Dummy\"><input id=\"gridView_ctl00_2\" type=\"checkbox\" name=\"gridView$ctl04$ctl00\" /></span></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#else
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><span title=\"Dummy\"><input id=\"gridView_ctl02_ctl00\" type=\"checkbox\" name=\"gridView$ctl02$ctl00\" checked=\"checked\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><span title=\"Dummy\"><input id=\"gridView_ctl03_ctl00\" type=\"checkbox\" name=\"gridView$ctl03$ctl00\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><span title=\"Dummy\"><input id=\"gridView_ctl04_ctl00\" type=\"checkbox\" name=\"gridView$ctl04$ctl00\" /></span></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#endif
|
||||
WebTest t = new WebTest ("CheckBoxField_Bug595568_0.aspx");
|
||||
string pageHtml = t.Run ();
|
||||
string renderedHtml = HtmlDiff.GetControlFromPageHtml (pageHtml);
|
||||
@@ -142,11 +138,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test (Description="Bug 595568 #1")]
|
||||
public void CheckBoxField_Bug595568_1 ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl02$ctl00\">\r\n\r\n\t\t\t</select><span title=\"Dummy\"><input id=\"gridView_ctl01_0\" type=\"checkbox\" name=\"gridView$ctl02$ctl01\" checked=\"checked\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl03$ctl00\">\r\n\r\n\t\t\t</select><span title=\"Dummy\"><input id=\"gridView_ctl01_1\" type=\"checkbox\" name=\"gridView$ctl03$ctl01\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl04$ctl00\">\r\n\r\n\t\t\t</select><span title=\"Dummy\"><input id=\"gridView_ctl01_2\" type=\"checkbox\" name=\"gridView$ctl04$ctl01\" /></span></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#else
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl02$ctl00\">\r\n\r\n\t\t\t</select><span title=\"Dummy\"><input id=\"gridView_ctl02_ctl01\" type=\"checkbox\" name=\"gridView$ctl02$ctl01\" checked=\"checked\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl03$ctl00\">\r\n\r\n\t\t\t</select><span title=\"Dummy\"><input id=\"gridView_ctl03_ctl01\" type=\"checkbox\" name=\"gridView$ctl03$ctl01\" /></span></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl04$ctl00\">\r\n\r\n\t\t\t</select><span title=\"Dummy\"><input id=\"gridView_ctl04_ctl01\" type=\"checkbox\" name=\"gridView$ctl04$ctl01\" /></span></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#endif
|
||||
WebTest t = new WebTest ("CheckBoxField_Bug595568_1.aspx");
|
||||
string pageHtml = t.Run ();
|
||||
string renderedHtml = HtmlDiff.GetControlFromPageHtml (pageHtml);
|
||||
@@ -157,11 +149,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test (Description="Bug 595568 #2")]
|
||||
public void CheckBoxField_Bug595568_2 ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl00_0\" type=\"checkbox\" name=\"gridView$ctl02$ctl00\" /><span title=\"Dummy\"><input id=\"gridView_ctl01_0\" type=\"checkbox\" name=\"gridView$ctl02$ctl01\" checked=\"checked\" /></span><input id=\"gridView_ctl02_0\" type=\"checkbox\" name=\"gridView$ctl02$ctl02\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl00_1\" type=\"checkbox\" name=\"gridView$ctl03$ctl00\" /><span title=\"Dummy\"><input id=\"gridView_ctl01_1\" type=\"checkbox\" name=\"gridView$ctl03$ctl01\" /></span><input id=\"gridView_ctl02_1\" type=\"checkbox\" name=\"gridView$ctl03$ctl02\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl00_2\" type=\"checkbox\" name=\"gridView$ctl04$ctl00\" /><span title=\"Dummy\"><input id=\"gridView_ctl01_2\" type=\"checkbox\" name=\"gridView$ctl04$ctl01\" /></span><input id=\"gridView_ctl02_2\" type=\"checkbox\" name=\"gridView$ctl04$ctl02\" /></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#else
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl02_ctl00\" type=\"checkbox\" name=\"gridView$ctl02$ctl00\" /><span title=\"Dummy\"><input id=\"gridView_ctl02_ctl01\" type=\"checkbox\" name=\"gridView$ctl02$ctl01\" checked=\"checked\" /></span><input id=\"gridView_ctl02_ctl02\" type=\"checkbox\" name=\"gridView$ctl02$ctl02\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl03_ctl00\" type=\"checkbox\" name=\"gridView$ctl03$ctl00\" /><span title=\"Dummy\"><input id=\"gridView_ctl03_ctl01\" type=\"checkbox\" name=\"gridView$ctl03$ctl01\" /></span><input id=\"gridView_ctl03_ctl02\" type=\"checkbox\" name=\"gridView$ctl03$ctl02\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl04_ctl00\" type=\"checkbox\" name=\"gridView$ctl04$ctl00\" /><span title=\"Dummy\"><input id=\"gridView_ctl04_ctl01\" type=\"checkbox\" name=\"gridView$ctl04$ctl01\" /></span><input id=\"gridView_ctl04_ctl02\" type=\"checkbox\" name=\"gridView$ctl04$ctl02\" /></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#endif
|
||||
|
||||
WebTest t = new WebTest ("CheckBoxField_Bug595568_2.aspx");
|
||||
string pageHtml = t.Run ();
|
||||
@@ -185,11 +173,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test (Description="Bug 595568 #6")]
|
||||
public void CheckBoxField_Bug595568_6 ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl02$ctl00\">\r\n\r\n\t\t\t</select><input id=\"gridView_ctl01_0\" type=\"checkbox\" name=\"gridView$ctl02$ctl01\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl03$ctl00\">\r\n\r\n\t\t\t</select><input id=\"gridView_ctl01_1\" type=\"checkbox\" name=\"gridView$ctl03$ctl01\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl04$ctl00\">\r\n\r\n\t\t\t</select><input id=\"gridView_ctl01_2\" type=\"checkbox\" name=\"gridView$ctl04$ctl01\" /></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#else
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl02$ctl00\">\r\n\r\n\t\t\t</select><input id=\"gridView_ctl02_ctl01\" type=\"checkbox\" name=\"gridView$ctl02$ctl01\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl03$ctl00\">\r\n\r\n\t\t\t</select><input id=\"gridView_ctl03_ctl01\" type=\"checkbox\" name=\"gridView$ctl03$ctl01\" /></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><select size=\"4\" name=\"gridView$ctl04$ctl00\">\r\n\r\n\t\t\t</select><input id=\"gridView_ctl04_ctl01\" type=\"checkbox\" name=\"gridView$ctl04$ctl01\" /></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#endif
|
||||
|
||||
WebTest t = new WebTest ("CheckBoxField_Bug595568_6.aspx");
|
||||
string pageHtml = t.Run ();
|
||||
@@ -201,11 +185,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test (Description="Bug 595568 #7")]
|
||||
public void CheckBoxField_Bug595568_7 ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl00_0\" type=\"checkbox\" name=\"gridView$ctl02$ctl00\" /><select size=\"4\" name=\"gridView$ctl02$ctl01\">\r\n\r\n\t\t\t</select></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl00_1\" type=\"checkbox\" name=\"gridView$ctl03$ctl00\" /><select size=\"4\" name=\"gridView$ctl03$ctl01\">\r\n\r\n\t\t\t</select></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl00_2\" type=\"checkbox\" name=\"gridView$ctl04$ctl00\" /><select size=\"4\" name=\"gridView$ctl04$ctl01\">\r\n\r\n\t\t\t</select></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#else
|
||||
string originalHtml = "<div>\r\n\t<table cellspacing=\"0\" rules=\"all\" border=\"1\" id=\"gridView\" style=\"border-collapse:collapse;\">\r\n\t\t<tr>\r\n\t\t\t<th scope=\"col\"> </th>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl02_ctl00\" type=\"checkbox\" name=\"gridView$ctl02$ctl00\" /><select size=\"4\" name=\"gridView$ctl02$ctl01\">\r\n\r\n\t\t\t</select></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl03_ctl00\" type=\"checkbox\" name=\"gridView$ctl03$ctl00\" /><select size=\"4\" name=\"gridView$ctl03$ctl01\">\r\n\r\n\t\t\t</select></td>\r\n\t\t</tr><tr>\r\n\t\t\t<td><input id=\"gridView_ctl04_ctl00\" type=\"checkbox\" name=\"gridView$ctl04$ctl00\" /><select size=\"4\" name=\"gridView$ctl04$ctl01\">\r\n\r\n\t\t\t</select></td>\r\n\t\t</tr>\r\n\t</table>\r\n</div>";
|
||||
#endif
|
||||
WebTest t = new WebTest ("CheckBoxField_Bug595568_7.aspx");
|
||||
string pageHtml = t.Run ();
|
||||
string renderedHtml = HtmlDiff.GetControlFromPageHtml (pageHtml);
|
||||
|
@@ -160,13 +160,8 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
{
|
||||
WebTest t = new WebTest ("CheckBoxList_Bug377703_1.aspx");
|
||||
t.Invoker = PageInvoker.CreateOnInit (CheckBoxList_Bug377703_1_OnInit);
|
||||
#if NET_4_0
|
||||
string origHtmlFirst = "<table id=\"cbxl1\">\r\n\t<tr>\r\n\t\t<td><input id=\"cbxl1_0\" type=\"checkbox\" name=\"cbxl1$0\" value=\"x\" /><label for=\"cbxl1_0\">x</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_1\" type=\"checkbox\" name=\"cbxl1$1\" value=\"y\" /><label for=\"cbxl1_1\">y</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_2\" type=\"checkbox\" name=\"cbxl1$2\" value=\"z\" /><label for=\"cbxl1_2\">z</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlSecond = "<table id=\"cbxl1\">\r\n\t<tr>\r\n\t\t<td><input id=\"cbxl1_0\" type=\"checkbox\" name=\"cbxl1$0\" checked=\"checked\" value=\"x\" /><label for=\"cbxl1_0\">x</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_1\" type=\"checkbox\" name=\"cbxl1$1\" value=\"y\" /><label for=\"cbxl1_1\">y</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_2\" type=\"checkbox\" name=\"cbxl1$2\" value=\"z\" /><label for=\"cbxl1_2\">z</label></td>\r\n\t</tr>\r\n</table>";
|
||||
#else
|
||||
string origHtmlFirst = "<table id=\"cbxl1\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><input id=\"cbxl1_0\" type=\"checkbox\" name=\"cbxl1$0\" /><label for=\"cbxl1_0\">x</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_1\" type=\"checkbox\" name=\"cbxl1$1\" /><label for=\"cbxl1_1\">y</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_2\" type=\"checkbox\" name=\"cbxl1$2\" /><label for=\"cbxl1_2\">z</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlSecond = "<table id=\"cbxl1\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><input id=\"cbxl1_0\" type=\"checkbox\" name=\"cbxl1$0\" checked=\"checked\" /><label for=\"cbxl1_0\">x</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_1\" type=\"checkbox\" name=\"cbxl1$1\" /><label for=\"cbxl1_1\">y</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl1_2\" type=\"checkbox\" name=\"cbxl1$2\" /><label for=\"cbxl1_2\">z</label></td>\r\n\t</tr>\r\n</table>";
|
||||
#endif
|
||||
string html = t.Run ();
|
||||
string listHtml = HtmlDiff.GetControlFromPageHtml (html);
|
||||
|
||||
@@ -215,15 +210,9 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
{
|
||||
WebTest t = new WebTest ("CheckBoxList_Bug377703_2.aspx");
|
||||
t.Invoker = PageInvoker.CreateOnInit (CheckBoxList_Bug377703_2_OnInit);
|
||||
#if NET_4_0
|
||||
string origHtmlFirst = "<table id=\"cbxl2\">\r\n\t<tr>\r\n\t\t<td><input id=\"cbxl2_0\" type=\"checkbox\" name=\"cbxl2$0\" value=\"x\" /><label for=\"cbxl2_0\">x</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl2_1\" type=\"checkbox\" name=\"cbxl2$1\" value=\"y\" /><label for=\"cbxl2_1\">y</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl2_2\" type=\"checkbox\" name=\"cbxl2$2\" value=\"z\" /><label for=\"cbxl2_2\">z</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlSecond = "<table id=\"cbxl2\" class=\"aspNetDisabled\">\r\n\t<tr>\r\n\t\t<td><span class=\"aspNetDisabled\"><input id=\"cbxl2_0\" type=\"checkbox\" name=\"cbxl2$0\" checked=\"checked\" disabled=\"disabled\" value=\"x\" /><label for=\"cbxl2_0\">x</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span class=\"aspNetDisabled\"><input id=\"cbxl2_1\" type=\"checkbox\" name=\"cbxl2$1\" disabled=\"disabled\" value=\"y\" /><label for=\"cbxl2_1\">y</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span class=\"aspNetDisabled\"><input id=\"cbxl2_2\" type=\"checkbox\" name=\"cbxl2$2\" checked=\"checked\" disabled=\"disabled\" value=\"z\" /><label for=\"cbxl2_2\">z</label></span></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlThird = "<table id=\"cbxl2\" class=\"aspNetDisabled\">\r\n\t<tr>\r\n\t\t<td><span class=\"aspNetDisabled\"><input id=\"cbxl2_0\" type=\"checkbox\" name=\"cbxl2$0\" checked=\"checked\" disabled=\"disabled\" value=\"x\" /><label for=\"cbxl2_0\">x</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span class=\"aspNetDisabled\"><input id=\"cbxl2_1\" type=\"checkbox\" name=\"cbxl2$1\" disabled=\"disabled\" value=\"y\" /><label for=\"cbxl2_1\">y</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span class=\"aspNetDisabled\"><input id=\"cbxl2_2\" type=\"checkbox\" name=\"cbxl2$2\" checked=\"checked\" disabled=\"disabled\" value=\"z\" /><label for=\"cbxl2_2\">z</label></span></td>\r\n\t</tr>\r\n</table>";
|
||||
#else
|
||||
string origHtmlFirst = "<table id=\"cbxl2\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><input id=\"cbxl2_0\" type=\"checkbox\" name=\"cbxl2$0\" /><label for=\"cbxl2_0\">x</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl2_1\" type=\"checkbox\" name=\"cbxl2$1\" /><label for=\"cbxl2_1\">y</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"cbxl2_2\" type=\"checkbox\" name=\"cbxl2$2\" /><label for=\"cbxl2_2\">z</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlSecond = "<table id=\"cbxl2\" disabled=\"disabled\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><span disabled=\"disabled\"><input id=\"cbxl2_0\" type=\"checkbox\" name=\"cbxl2$0\" checked=\"checked\" disabled=\"disabled\" /><label for=\"cbxl2_0\">x</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span disabled=\"disabled\"><input id=\"cbxl2_1\" type=\"checkbox\" name=\"cbxl2$1\" disabled=\"disabled\" /><label for=\"cbxl2_1\">y</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span disabled=\"disabled\"><input id=\"cbxl2_2\" type=\"checkbox\" name=\"cbxl2$2\" checked=\"checked\" disabled=\"disabled\" /><label for=\"cbxl2_2\">z</label></span></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlThird = "<table id=\"cbxl2\" disabled=\"disabled\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><span disabled=\"disabled\"><input id=\"cbxl2_0\" type=\"checkbox\" name=\"cbxl2$0\" checked=\"checked\" disabled=\"disabled\" /><label for=\"cbxl2_0\">x</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span disabled=\"disabled\"><input id=\"cbxl2_1\" type=\"checkbox\" name=\"cbxl2$1\" disabled=\"disabled\" /><label for=\"cbxl2_1\">y</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span disabled=\"disabled\"><input id=\"cbxl2_2\" type=\"checkbox\" name=\"cbxl2$2\" checked=\"checked\" disabled=\"disabled\" /><label for=\"cbxl2_2\">z</label></span></td>\r\n\t</tr>\r\n</table>";
|
||||
#endif
|
||||
string html = t.Run ();
|
||||
string listHtml = HtmlDiff.GetControlFromPageHtml (html);
|
||||
|
||||
@@ -276,11 +265,7 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
{
|
||||
WebTest t = new WebTest ("CheckBoxList_Bug578770.aspx");
|
||||
t.Invoker = PageInvoker.CreateOnInit (CheckBoxList_Bug578770_OnInit);
|
||||
#if NET_4_0
|
||||
string origHtml = "<table id=\"test\">\r\n\t<tr>\r\n\t\t<td><span class=\"aspNetDisabled\"><input id=\"test_0\" type=\"checkbox\" name=\"test$0\" disabled=\"disabled\" value=\"Sun\" /><label for=\"test_0\">Sun</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span><input id=\"test_1\" type=\"checkbox\" name=\"test$1\" value=\"Mon\" /><label for=\"test_1\">Mon</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span><input id=\"test_2\" type=\"checkbox\" name=\"test$2\" value=\"Tue\" /><label for=\"test_2\">Tue</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span><input id=\"test_3\" type=\"checkbox\" name=\"test$3\" value=\"Wed\" /><label for=\"test_3\">Wed</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span><input id=\"test_4\" type=\"checkbox\" name=\"test$4\" value=\"Thu\" /><label for=\"test_4\">Thu</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span><input id=\"test_5\" type=\"checkbox\" name=\"test$5\" value=\"Fri\" /><label for=\"test_5\">Fri</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><span><input id=\"test_6\" type=\"checkbox\" name=\"test$6\" value=\"Sat\" /><label for=\"test_6\">Sat</label></span></td>\r\n\t</tr>\r\n</table>";
|
||||
#else
|
||||
string origHtml = "<table id=\"test\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><span disabled=\"disabled\"><input id=\"test_0\" type=\"checkbox\" name=\"test$0\" disabled=\"disabled\" /><label for=\"test_0\">Sun</label></span></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"test_1\" type=\"checkbox\" name=\"test$1\" /><label for=\"test_1\">Mon</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"test_2\" type=\"checkbox\" name=\"test$2\" /><label for=\"test_2\">Tue</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"test_3\" type=\"checkbox\" name=\"test$3\" /><label for=\"test_3\">Wed</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"test_4\" type=\"checkbox\" name=\"test$4\" /><label for=\"test_4\">Thu</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"test_5\" type=\"checkbox\" name=\"test$5\" /><label for=\"test_5\">Fri</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"test_6\" type=\"checkbox\" name=\"test$6\" /><label for=\"test_6\">Sat</label></td>\r\n\t</tr>\r\n</table>";
|
||||
#endif
|
||||
string html = t.Run ();
|
||||
string listHtml = HtmlDiff.GetControlFromPageHtml (html);
|
||||
|
||||
@@ -300,15 +285,9 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
public void CheckBoxList_Bug600415 ()
|
||||
{
|
||||
WebTest t = new WebTest ("CheckBoxList_Bug600415.aspx");
|
||||
#if NET_4_0
|
||||
string origHtmlFirst = "<table id=\"checkBoxList\">\r\n\t<tr>\r\n\t\t<td><input id=\"checkBoxList_0\" type=\"checkbox\" name=\"checkBoxList$0\" checked=\"checked\" value=\"Item 1\" /><label for=\"checkBoxList_0\">Item 1</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_1\" type=\"checkbox\" name=\"checkBoxList$1\" value=\"Item 2\" /><label for=\"checkBoxList_1\">Item 2</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_2\" type=\"checkbox\" name=\"checkBoxList$2\" checked=\"checked\" value=\"Item 3\" /><label for=\"checkBoxList_2\">Item 3</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_3\" type=\"checkbox\" name=\"checkBoxList$3\" value=\"Item 4\" /><label for=\"checkBoxList_3\">Item 4</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlSecond = "<table id=\"checkBoxList\">\r\n\t<tr>\r\n\t\t<td><input id=\"checkBoxList_0\" type=\"checkbox\" name=\"checkBoxList$0\" value=\"Item 1\" /><label for=\"checkBoxList_0\">Item 1</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_1\" type=\"checkbox\" name=\"checkBoxList$1\" value=\"Item 2\" /><label for=\"checkBoxList_1\">Item 2</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_2\" type=\"checkbox\" name=\"checkBoxList$2\" value=\"Item 3\" /><label for=\"checkBoxList_2\">Item 3</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_3\" type=\"checkbox\" name=\"checkBoxList$3\" value=\"Item 4\" /><label for=\"checkBoxList_3\">Item 4</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlThird = "<table id=\"checkBoxList\">\r\n\t<tr>\r\n\t\t<td><input id=\"checkBoxList_0\" type=\"checkbox\" name=\"checkBoxList$0\" checked=\"checked\" value=\"Item 1\" /><label for=\"checkBoxList_0\">Item 1</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_1\" type=\"checkbox\" name=\"checkBoxList$1\" checked=\"checked\" value=\"Item 2\" /><label for=\"checkBoxList_1\">Item 2</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_2\" type=\"checkbox\" name=\"checkBoxList$2\" checked=\"checked\" value=\"Item 3\" /><label for=\"checkBoxList_2\">Item 3</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_3\" type=\"checkbox\" name=\"checkBoxList$3\" checked=\"checked\" value=\"Item 4\" /><label for=\"checkBoxList_3\">Item 4</label></td>\r\n\t</tr>\r\n</table>";
|
||||
#else
|
||||
string origHtmlFirst = "<table id=\"checkBoxList\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><input id=\"checkBoxList_0\" type=\"checkbox\" name=\"checkBoxList$0\" checked=\"checked\" /><label for=\"checkBoxList_0\">Item 1</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_1\" type=\"checkbox\" name=\"checkBoxList$1\" /><label for=\"checkBoxList_1\">Item 2</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_2\" type=\"checkbox\" name=\"checkBoxList$2\" checked=\"checked\" /><label for=\"checkBoxList_2\">Item 3</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_3\" type=\"checkbox\" name=\"checkBoxList$3\" /><label for=\"checkBoxList_3\">Item 4</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlSecond = "<table id=\"checkBoxList\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><input id=\"checkBoxList_0\" type=\"checkbox\" name=\"checkBoxList$0\" /><label for=\"checkBoxList_0\">Item 1</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_1\" type=\"checkbox\" name=\"checkBoxList$1\" /><label for=\"checkBoxList_1\">Item 2</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_2\" type=\"checkbox\" name=\"checkBoxList$2\" /><label for=\"checkBoxList_2\">Item 3</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_3\" type=\"checkbox\" name=\"checkBoxList$3\" /><label for=\"checkBoxList_3\">Item 4</label></td>\r\n\t</tr>\r\n</table>";
|
||||
string origHtmlThird = "<table id=\"checkBoxList\" border=\"0\">\r\n\t<tr>\r\n\t\t<td><input id=\"checkBoxList_0\" type=\"checkbox\" name=\"checkBoxList$0\" checked=\"checked\" /><label for=\"checkBoxList_0\">Item 1</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_1\" type=\"checkbox\" name=\"checkBoxList$1\" checked=\"checked\" /><label for=\"checkBoxList_1\">Item 2</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_2\" type=\"checkbox\" name=\"checkBoxList$2\" checked=\"checked\" /><label for=\"checkBoxList_2\">Item 3</label></td>\r\n\t</tr><tr>\r\n\t\t<td><input id=\"checkBoxList_3\" type=\"checkbox\" name=\"checkBoxList$3\" checked=\"checked\" /><label for=\"checkBoxList_3\">Item 4</label></td>\r\n\t</tr>\r\n</table>";
|
||||
#endif
|
||||
string html = t.Run ();
|
||||
string listHtml = HtmlDiff.GetControlFromPageHtml (html);
|
||||
|
||||
@@ -386,13 +365,8 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Test]
|
||||
public void RenderItem ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml1 = "<input id=\"0\" type=\"checkbox\" name=\"0\" value=\"value1\" /><label for=\"0\">item1</label>";
|
||||
string origHtml2 = "<input id=\"1\" type=\"checkbox\" name=\"1\" value=\"value2\" /><label for=\"1\">item2</label>";
|
||||
#else
|
||||
string origHtml1 = "<input id=\"0\" type=\"checkbox\" name=\"0\" /><label for=\"0\">item1</label>";
|
||||
string origHtml2 = "<input id=\"1\" type=\"checkbox\" name=\"1\" /><label for=\"1\">item2</label>";
|
||||
#endif
|
||||
CheckBoxListPoker c = new CheckBoxListPoker ();
|
||||
ListItem l1 = new ListItem ("item1", "value1");
|
||||
ListItem l2 = new ListItem ("item2", "value2");
|
||||
@@ -561,11 +535,7 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Test]
|
||||
public void RepeatInfoRenderItem ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<input id=\"0\" type=\"checkbox\" name=\"0\" value=\"one\" /><label for=\"0\">one</label>";
|
||||
#else
|
||||
string origHtml = "<input id=\"0\" type=\"checkbox\" name=\"0\" /><label for=\"0\">one</label>";
|
||||
#endif
|
||||
StringWriter sw = new StringWriter ();
|
||||
HtmlTextWriter tw = new HtmlTextWriter (sw);
|
||||
CheckBoxList c = new CheckBoxList ();
|
||||
@@ -640,13 +610,8 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Category("NotDotNet")] // MS's implementation throws NRE's from these
|
||||
public void Render ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml1 = "<table>\n\t<tr>\n\t\t<td><input id=\"0\" name=\"0\" type=\"checkbox\" value=\"foo\"/><label for=\"0\">foo</label></td>\n\t</tr>\n</table>";
|
||||
string origHtml2 = "<table>\n\t<tr>\n\t\t<td><input id=\"0\" name=\"0\" type=\"checkbox\" value=\"foo\"/><label for=\"0\">foo</label></td>\n\t</tr>\n</table>";
|
||||
#else
|
||||
string origHtml1 = "<table border=\"0\">\n\t<tr>\n\t\t<td><input id=\"0\" name=\"0\" type=\"checkbox\" /><label for=\"0\">foo</label></td>\n\t</tr>\n</table>";
|
||||
string origHtml2 = "<table border=\"0\">\n\t<tr>\n\t\t<td><input id=\"0\" name=\"0\" type=\"checkbox\" /><label for=\"0\">foo</label></td>\n\t</tr>\n</table>";
|
||||
#endif
|
||||
CheckBoxList c;
|
||||
c = new CheckBoxList ();
|
||||
c.Items.Add ("foo");
|
||||
@@ -666,19 +631,11 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
CheckBoxList c = new CheckBoxList ();
|
||||
c.TabIndex = 5;
|
||||
c.Items.Add ("Item1");
|
||||
#if NET_4_0
|
||||
string exp = @"<table>
|
||||
<tr>
|
||||
<td><input id=""0"" name=""0"" tabindex=""5"" type=""checkbox"" value=""Item1""/><label for=""0"">Item1</label></td>
|
||||
</tr>
|
||||
</table>";
|
||||
#else
|
||||
string exp = @"<table border=""0"">
|
||||
<tr>
|
||||
<td><input id=""0"" name=""0"" tabindex=""5"" type=""checkbox"" /><label for=""0"">Item1</label></td>
|
||||
</tr>
|
||||
</table>";
|
||||
#endif
|
||||
Render (c, exp, "B1");
|
||||
}
|
||||
|
||||
@@ -690,19 +647,11 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
CheckBoxList c = new CheckBoxList ();
|
||||
c.Enabled = false;
|
||||
c.Items.Add ("Item1");
|
||||
#if NET_4_0
|
||||
string exp = @"<table class=""aspNetDisabled"">
|
||||
<tr>
|
||||
<td><span class=""aspNetDisabled""><input disabled=""disabled"" id=""0"" name=""0"" type=""checkbox"" value=""Item1""/><label for=""0"">Item1</label></span></td>
|
||||
</tr>
|
||||
</table>";
|
||||
#else
|
||||
string exp = @"<table border=""0"" disabled=""disabled"">
|
||||
<tr>
|
||||
<td><span disabled=""disabled""><input disabled=""disabled"" id=""0"" name=""0"" type=""checkbox"" /><label for=""0"">Item1</label></span></td>
|
||||
</tr>
|
||||
</table>";
|
||||
#endif
|
||||
Render (c, exp, "C1");
|
||||
}
|
||||
class TestCheckBoxList : CheckBoxList
|
||||
|
@@ -186,11 +186,7 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
c.InputAttributes.Add ("value", "value1");
|
||||
c.Text = "Title";
|
||||
c.Checked = true;
|
||||
#if NET_4_0
|
||||
string origHtml = "<input id=\"\" type=\"checkbox\" checked=\"checked\" value=\"value1\" /><label for=\"\">Title</label>";
|
||||
#else
|
||||
string origHtml = "<input type=\"checkbox\" checked=\"checked\" value=\"value1\" /><label for>Title</label>";
|
||||
#endif
|
||||
string html = c.Render ();
|
||||
HtmlDiff.AssertAreEqual (origHtml, html, "#A1");
|
||||
}
|
||||
|
2255
mcs/class/System.Web/Test/System.Web.UI.WebControls/DataGridTest.cs
Normal file
2255
mcs/class/System.Web/Test/System.Web.UI.WebControls/DataGridTest.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
1e1daa9a8a28a4f12bc766e426f50b17ce6bf6ae
|
@@ -67,7 +67,6 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
Assert.AreEqual (2, iDictionary.Count, "AllValuesReferringToKey#1");
|
||||
Assert.AreEqual ("value1", iDictionary[1], "ValueReferringToKey#1");
|
||||
}
|
||||
#if NET_4_0
|
||||
[Test]
|
||||
public void DataKey_Equals ()
|
||||
{
|
||||
@@ -229,6 +228,5 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
Assert.IsFalse (key1.Equals (key2), "#A17-1");
|
||||
Assert.IsFalse (key2.Equals (key1), "#A17-2");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -241,17 +241,10 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Test]
|
||||
public void Controls_Table ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml3 = "<table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table>";
|
||||
string origHtml4 = "<span><table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table></span>";
|
||||
#else
|
||||
string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml3 = "<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table>";
|
||||
string origHtml4 = "<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table></span>";
|
||||
#endif
|
||||
TestDataListItem dli = new TestDataListItem (0, ListItemType.Item);
|
||||
dli.Controls.Add (GetTable ("mono"));
|
||||
|
||||
@@ -271,17 +264,10 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Test]
|
||||
public void Controls_Table_Dual ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml3 = "<table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table>\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table>";
|
||||
string origHtml4 = "<span><table>\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table>\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table></span>";
|
||||
#else
|
||||
string origHtml1 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml2 = "<tr>\n\t<td>mono</td>\n</tr>";
|
||||
string origHtml3 = "<table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table>";
|
||||
string origHtml4 = "<span><table border=\"0\">\n\t<tr>\n\t\t<td>mono</td>\n\t</tr>\n</table><table border=\"0\">\n\t<tr>\n\t\t<td>monkey</td>\n\t</tr>\n</table></span>";
|
||||
#endif
|
||||
TestDataListItem dli = new TestDataListItem (0, ListItemType.Item);
|
||||
dli.Controls.Add (GetTable ("mono"));
|
||||
dli.Controls.Add (GetTable ("monkey"));
|
||||
@@ -315,7 +301,6 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
Assert.AreEqual ("mono", dli.Render (false, true), "Render-Empty-F-T");
|
||||
Assert.AreEqual ("<span>mono</span>", dli.Render (false, false), "Render-Empty-F-F");
|
||||
}
|
||||
#if NET_4_0
|
||||
[Test]
|
||||
public void SupportsDisabledAttribute ()
|
||||
{
|
||||
@@ -329,6 +314,5 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
Assert.AreEqual (ver35, p.RenderingCompatibility, "#A2-1");
|
||||
Assert.IsTrue (p.SupportsDisabledAttribute, "#A2-2");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -322,7 +322,6 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
|
||||
Assert.AreEqual (0, dl.Attributes.Count, "Attributes.Count-2");
|
||||
}
|
||||
#if NET_4_0
|
||||
[Test]
|
||||
public void RepeatLayout_Lists ()
|
||||
{
|
||||
@@ -336,7 +335,6 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
dl.RepeatLayout = RepeatLayout.UnorderedList;
|
||||
}, "#A2");
|
||||
}
|
||||
#endif
|
||||
[Test]
|
||||
public void CleanProperties ()
|
||||
{
|
||||
|
@@ -76,11 +76,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
public void DataSourceControl_DefaultProperty ()
|
||||
{
|
||||
PokerDataSource ds = new PokerDataSource ();
|
||||
#if NET_4_0
|
||||
Assert.AreEqual (String.Empty, ds.ClientID, "ClientID");
|
||||
#else
|
||||
Assert.AreEqual (null, ds.ClientID, "ClientID");
|
||||
#endif
|
||||
Assert.IsNotNull (ds.Controls, "Controls#1");
|
||||
Assert.AreEqual ( 0 , ds.Controls.Count , "Controls#2");
|
||||
Assert.AreEqual (false, ds.Visible, "Visible");
|
||||
|
@@ -1 +1 @@
|
||||
5813d894d5739d2826a5f32486fa6c849c81cddc
|
||||
12a7ab9e97bc4ad43efdca1e7f12435ee44c417c
|
@@ -121,11 +121,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test]
|
||||
public void InitializeCell ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<table><tr><td> </td><td> </td><td>one</td><td>two</td><td>three</td></tr><tr><td><a>Edit</a></td><td><input name=\"sucker$ctl02$ctl00\" type=\"submit\" value=\"Bearbeiten\" /></td><td>1</td><td>2</td><td>3</td></tr><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr></table>";
|
||||
#else
|
||||
string origHtml = "<table border=\"0\"><tr><td> </td><td> </td><td>one</td><td>two</td><td>three</td></tr><tr><td><a>Edit</a></td><td><input name=\"sucker$ctl02$ctl00\" type=\"submit\" value=\"Bearbeiten\" /></td><td>1</td><td>2</td><td>3</td></tr><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr></table>";
|
||||
#endif
|
||||
DataGridTest p = new DataGridTest ();
|
||||
DataTable table = new DataTable ();
|
||||
EditCommandColumn e;
|
||||
@@ -170,11 +166,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test]
|
||||
public void ThisIsADGTest ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<table id=\"sucker_tbl\"><tr><td> </td><td> </td><td>one</td><td>two</td><td>three</td></tr><tr><td><a>Edit</a></td><td><input name=\"sucker$ctl02$ctl00\" type=\"submit\" value=\"Bearbeiten\" /></td><td>1</td><td>2</td><td>3</td></tr><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr></table>";
|
||||
#else
|
||||
string origHtml = "<table border=\"0\" id=\"sucker_tbl\"><tr><td> </td><td> </td><td>one</td><td>two</td><td>three</td></tr><tr><td><a>Edit</a></td><td><input name=\"sucker$ctl02$ctl00\" type=\"submit\" value=\"Bearbeiten\" /></td><td>1</td><td>2</td><td>3</td></tr><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr></table>";
|
||||
#endif
|
||||
DataGridTest p = new DataGridTest ();
|
||||
DataTable table = new DataTable ();
|
||||
EditCommandColumn e;
|
||||
@@ -228,11 +220,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test]
|
||||
public void InitializeEditCell ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<table><tr><td> </td><td> </td><td>one</td><td>two</td><td>three</td></tr><tr><td><a>Update</a> <a>Cancel</a></td><td><input name=\"sucker$ctl02$ctl00\" type=\"submit\" value=\"Refresh\" /> <input name=\"sucker$ctl02$ctl01\" type=\"submit\" value=\"Abbrechen\" /></td><td><input name=\"sucker$ctl02$ctl02\" type=\"text\" value=\"1\" /></td><td><input name=\"sucker$ctl02$ctl03\" type=\"text\" value=\"2\" /></td><td><input name=\"sucker$ctl02$ctl04\" type=\"text\" value=\"3\" /></td></tr><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr></table>";
|
||||
#else
|
||||
string origHtml = "<table border=\"0\"><tr><td> </td><td> </td><td>one</td><td>two</td><td>three</td></tr><tr><td><a>Update</a> <a>Cancel</a></td><td><input name=\"sucker$ctl02$ctl00\" type=\"submit\" value=\"Refresh\" /> <input name=\"sucker$ctl02$ctl01\" type=\"submit\" value=\"Abbrechen\" /></td><td><input name=\"sucker$ctl02$ctl02\" type=\"text\" value=\"1\" /></td><td><input name=\"sucker$ctl02$ctl03\" type=\"text\" value=\"2\" /></td><td><input name=\"sucker$ctl02$ctl04\" type=\"text\" value=\"3\" /></td></tr><tr><td> </td><td> </td><td> </td><td> </td><td> </td></tr></table>";
|
||||
#endif
|
||||
DataGridTest p = new DataGridTest ();
|
||||
DataTable table = new DataTable ();
|
||||
EditCommandColumn e;
|
||||
|
2628
mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs
Normal file
2628
mcs/class/System.Web/Test/System.Web.UI.WebControls/FormViewTest.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
b4d8d304db7540d11f79acbf97c5c27983983838
|
@@ -1 +1 @@
|
||||
2f38ba4b556ad9983b3585b4831ef907f227fc94
|
||||
7561fd84425b70a803d0918521917d5d9deb3e8c
|
@@ -81,11 +81,7 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Test]
|
||||
public void ImageUrlWithoutText ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<a><img src=\"http://www.mono-project.com/stylesheets/images.wiki.png\" alt=\"\" /></a>";
|
||||
#else
|
||||
string origHtml = "<a><img src=\"http://www.mono-project.com/stylesheets/images.wiki.png\" style=\"border-width:0px;\" /></a>";
|
||||
#endif
|
||||
TestHyperLink hl = new TestHyperLink ();
|
||||
hl.ImageUrl = imageUrl;
|
||||
Assert.AreEqual (imageUrl, hl.ImageUrl, "ImageUrl");
|
||||
@@ -101,11 +97,7 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Test]
|
||||
public void ImageUrlWithoutText_ToolTip ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<a title=\"Some message\"><img title=\"Some message\" src=\"http://www.mono-project.com/stylesheets/images.wiki.png\" alt=\"\" /></a>";
|
||||
#else
|
||||
string origHtml = "<a title=\"Some message\"><img title=\"Some message\" src=\"http://www.mono-project.com/stylesheets/images.wiki.png\" style=\"border-width:0px;\" /></a>";
|
||||
#endif
|
||||
TestHyperLink hl = new TestHyperLink ();
|
||||
hl.ImageUrl = imageUrl;
|
||||
hl.ToolTip = "Some message";
|
||||
@@ -136,11 +128,7 @@ namespace MonoTests.System.Web.UI.WebControls {
|
||||
[Test]
|
||||
public void ImageUrl_NO_ResolveUrl ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<a><img src=\"~/ben.jpeg\" alt=\"\" /></a>";
|
||||
#else
|
||||
string origHtml = "<a><img src=\"~/ben.jpeg\" style=\"border-width:0px;\" /></a>";
|
||||
#endif
|
||||
TestHyperLink hl = new TestHyperLink ();
|
||||
hl.ImageUrl = "~/ben.jpeg";
|
||||
Assert.AreEqual ("~/ben.jpeg", hl.ImageUrl, "ImageUrl");
|
||||
|
@@ -237,11 +237,7 @@ namespace MonoTests.System.Web.UI.WebControls
|
||||
[Test]
|
||||
public void Text ()
|
||||
{
|
||||
#if NET_4_0
|
||||
string origHtml = "<input type=\"image\" src=\"\" alt=\"MyText\" />";
|
||||
#else
|
||||
string origHtml = "<input type=\"image\" src=\"\" alt=\"MyText\" style=\"border-width:0px;\" />";
|
||||
#endif
|
||||
PokerImageButton b = new PokerImageButton ();
|
||||
b.Text = "MyText";
|
||||
string html = b.Render ();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user