Author: yonik
Date: 2006-09-18 04:24:44 -0400 (Mon, 18 Sep 2006)
New Revision: 65562

Added:
   trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/MappingUrlTest.cs
   trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping.aspx
   trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping1.aspx
   trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/WebMapping.config
Modified:
   trunk/mcs/class/System.Web/ChangeLog
   trunk/mcs/class/System.Web/Makefile
   trunk/mcs/class/System.Web/System.Web_test.dll.sources
   trunk/mcs/class/System.Web/Test/mainsoft/ChangeLog
Log:


Modified: trunk/mcs/class/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/ChangeLog        2006-09-18 07:38:24 UTC (rev 
65561)
+++ trunk/mcs/class/System.Web/ChangeLog        2006-09-18 08:24:44 UTC (rev 
65562)
@@ -1,3 +1,11 @@
+2006-09-18 Yoni Klain <[EMAIL PROTECTED]>
+
+    * System.Web_test.dll.sources: add new 
\System.Web.UI.WebControls\MappingUrlTest.cs
+    * MakeFile: add new resources for MappingUrlTest.cs :
+    Test/mainsoft/NunitWebResources/Mapping.aspx ;
+       Test/mainsoft/NunitWebResources/Mapping1.aspx ;
+       Test/mainsoft/NunitWebResources/WebMapping.config
+
 2006-09-17 Yoni Klain <[EMAIL PROTECTED]>
 
     * System.Web_test.dll.sources: add new 
\System.Web.UI\TemplateControlTest.cs

Modified: trunk/mcs/class/System.Web/Makefile
===================================================================
--- trunk/mcs/class/System.Web/Makefile 2006-09-18 07:38:24 UTC (rev 65561)
+++ trunk/mcs/class/System.Web/Makefile 2006-09-18 08:24:44 UTC (rev 65562)
@@ -108,6 +108,9 @@
        Test/mainsoft/NunitWebResources/ClientScript.js \
        Test/mainsoft/NunitWebResources/EvalTest.aspx \
        Test/mainsoft/NunitWebResources/TemplateUserControl.ascx \
+       Test/mainsoft/NunitWebResources/WebMapping.config \
+       Test/mainsoft/NunitWebResources/Mapping.aspx \
+       Test/mainsoft/NunitWebResources/Mapping1.aspx \
        Test/mainsoft/MainsoftWebTest/nunitweb_config.xml 
 
 NUNIT_RESOURCE_FILES = $(TEST_RESOURCE_FILES)

Modified: trunk/mcs/class/System.Web/System.Web_test.dll.sources
===================================================================
--- trunk/mcs/class/System.Web/System.Web_test.dll.sources      2006-09-18 
07:38:24 UTC (rev 65561)
+++ trunk/mcs/class/System.Web/System.Web_test.dll.sources      2006-09-18 
08:24:44 UTC (rev 65562)
@@ -199,6 +199,7 @@
 System.Web.UI.WebControls/LoginStatusTest.cs
 System.Web.UI.WebControls/LoginTest.cs
 System.Web.UI.WebControls/LoginViewTest.cs
+System.Web.UI.WebControls/MappingUrlTest.cs
 System.Web.UI.WebControls/MasterPageTest.cs
 System.Web.UI.WebControls/MonthChangedEventArgsTest.cs
 System.Web.UI.WebControls/MultiViewTest.cs

Added: 
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/MappingUrlTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/MappingUrlTest.cs 
2006-09-18 07:38:24 UTC (rev 65561)
+++ trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/MappingUrlTest.cs 
2006-09-18 08:24:44 UTC (rev 65562)
@@ -0,0 +1,75 @@
+//
+// Tests for MappingUrlTest.cs
+//
+// Author:
+//     Yoni Klein ([EMAIL PROTECTED])
+//
+//
+// Copyright (C) 2005 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.
+
+
+#if NET_2_0
+
+using System;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using NUnit.Framework;
+using MonoTests.stand_alone.WebHarness;
+using MonoTests.SystemWeb.Framework;
+
+namespace MonoTests.System.Web.UI.WebControls
+{
+       [TestFixture]
+       public class MappingUrlTest
+       {
+               [TestFixtureSetUp]
+               public void CopyTestResources ()
+               {
+#if DOT_NET
+                       WebTest.CopyResource (GetType (), 
"MonoTests.System.Web.UI.WebControls.Resources.Mapping.aspx", "Mapping.aspx");
+                       WebTest.CopyResource (GetType (), 
"MonoTests.System.Web.UI.WebControls.Resources.Mapping1.aspx", "Mapping1.aspx");
+                       WebTest.CopyResource (GetType (), 
"MonoTests.System.Web.UI.WebControls.Resources.WebMapping.config", 
"Web.config");
+#else
+                       WebTest.CopyResource (GetType (), "Mapping.aspx", 
"Mapping.aspx");
+                       WebTest.CopyResource (GetType (), "Mapping1.aspx", 
"Mapping1.aspx");
+                       WebTest.CopyResource (GetType (), "WebMapping.config", 
"Web.config");
+#endif
+               }
+
+               [Test]
+               public void MappingUrl()
+               {
+                       WebTest t = new WebTest ("Mapping.aspx");
+                       string result = t.Run ();
+                       if (result.IndexOf ("Default from mapping") < 0)
+                               Assert.Fail ("Mapping URL Fail");
+               }
+
+               [TestFixtureTearDown]
+               public void Unload ()
+               {
+                       WebTest.Unload ();
+               }
+       }
+}
+#endif

Modified: trunk/mcs/class/System.Web/Test/mainsoft/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/ChangeLog  2006-09-18 07:38:24 UTC 
(rev 65561)
+++ trunk/mcs/class/System.Web/Test/mainsoft/ChangeLog  2006-09-18 08:24:44 UTC 
(rev 65562)
@@ -1,3 +1,10 @@
+2006-09-18 Yoni Klain <[EMAIL PROTECTED]>
+
+       * new resources : 
+       Test/mainsoft/NunitWebResources/Mapping.aspx ;
+       Test/mainsoft/NunitWebResources/Mapping1.aspx ;
+       Test/mainsoft/NunitWebResources/WebMapping.config
+
 2006-09-17 Yoni Klain <[EMAIL PROTECTED]>
 
        * new resources : EvalTest.aspx;TemplateUserControl.ascx

Added: trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping.aspx
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping.aspx     
2006-09-18 07:38:24 UTC (rev 65561)
+++ trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping.aspx     
2006-09-18 08:24:44 UTC (rev 65562)
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" EnableEventValidation="false" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+
+<html xmlns="http://www.w3.org/1999/xhtml"; >
+<head runat="server">
+    <title>Untitled Page</title>
+</head>
+<body>
+    <form id="form1" runat="server">
+    <div>
+        Default page
+    </div>
+    </form>
+</body>
+</html>

Added: trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping1.aspx
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping1.aspx    
2006-09-18 07:38:24 UTC (rev 65561)
+++ trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/Mapping1.aspx    
2006-09-18 08:24:44 UTC (rev 65562)
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+
+<html xmlns="http://www.w3.org/1999/xhtml"; >
+<head runat="server">
+    <title>Untitled Page</title>
+</head>
+<body>
+    <form id="form1" runat="server">
+    <div>
+        Default from mapping
+    </div>
+    </form>
+</body>
+</html>

Added: 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/WebMapping.config
===================================================================
--- 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/WebMapping.config    
    2006-09-18 07:38:24 UTC (rev 65561)
+++ 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWebResources/WebMapping.config    
    2006-09-18 08:24:44 UTC (rev 65562)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+  <system.web>
+    <urlMappings enabled="true">
+      <add url="~/Mapping.aspx" mappedUrl="~/Mapping1.aspx"/>
+    </urlMappings>
+  </system.web>
+</configuration>

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

Reply via email to