You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user