Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2009-07-06 22:02:16 +0400
committerRaja R Harinath <harinath@hurrynot.org>2009-07-06 22:02:16 +0400
commitbccd4d4e3ad14d5b272a0cbbc9f6a25acf618678 (patch)
tree39ccfd42c2a640776ccc467e986986f8e801ea78 /mcs/class/SystemWebTestShim
parent09ff251a3af9872543ff7170a5c021009c1220b6 (diff)
* HtmlFormTest.cs: Derive from SystemWebTestShim.Page to make
explicit the dependence on the internals of the Page class. svn path=/trunk/mcs/; revision=137436
Diffstat (limited to 'mcs/class/SystemWebTestShim')
-rw-r--r--mcs/class/SystemWebTestShim/ChangeLog4
-rw-r--r--mcs/class/SystemWebTestShim/SystemWebTestShim.dll.sources1
-rw-r--r--mcs/class/SystemWebTestShim/SystemWebTestShim/Page.cs47
3 files changed, 52 insertions, 0 deletions
diff --git a/mcs/class/SystemWebTestShim/ChangeLog b/mcs/class/SystemWebTestShim/ChangeLog
index bcac639d3f1..afcc420b83d 100644
--- a/mcs/class/SystemWebTestShim/ChangeLog
+++ b/mcs/class/SystemWebTestShim/ChangeLog
@@ -1,5 +1,9 @@
2009-07-06 Raja R Harinath <harinath@hurrynot.org>
+ * SystemWebTestShim.dll.sources: Add Page.cs.
+
+2009-07-06 Raja R Harinath <harinath@hurrynot.org>
+
* SystemWebTestShim.dll.sources: Add HttpCapabilitiesBase.cs.
2009-07-06 Raja R Harinath <harinath@hurrynot.org>
diff --git a/mcs/class/SystemWebTestShim/SystemWebTestShim.dll.sources b/mcs/class/SystemWebTestShim/SystemWebTestShim.dll.sources
index 21f2df97e0f..48dd62d9674 100644
--- a/mcs/class/SystemWebTestShim/SystemWebTestShim.dll.sources
+++ b/mcs/class/SystemWebTestShim/SystemWebTestShim.dll.sources
@@ -1,4 +1,5 @@
Assembly/AssemblyInfo.cs
SystemWebTestShim/BuildManager.cs
SystemWebTestShim/HttpCapabilitiesBase.cs
+SystemWebTestShim/Page.cs
../../build/common/Consts.cs
diff --git a/mcs/class/SystemWebTestShim/SystemWebTestShim/Page.cs b/mcs/class/SystemWebTestShim/SystemWebTestShim/Page.cs
new file mode 100644
index 00000000000..8726ddc4f26
--- /dev/null
+++ b/mcs/class/SystemWebTestShim/SystemWebTestShim/Page.cs
@@ -0,0 +1,47 @@
+//
+// SystemWebTestShim/Page.cs
+//
+// Author:
+// Raja R Harinath (harinath@hurrynot.org)
+//
+// (C) 2009 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using Orig = System.Web.UI;
+using System.Web;
+
+namespace SystemWebTestShim {
+ public class Page : Orig.Page {
+#if NET_2_0
+ public new string RawViewState {
+ set { base.RawViewState = value; }
+ }
+
+ public new void SetContext (HttpContext ctx)
+ {
+ base.SetContext (ctx);
+ }
+#endif
+ }
+}