Author: yonik
Date: 2006-11-01 08:07:32 -0500 (Wed, 01 Nov 2006)
New Revision: 67212

Modified:
   trunk/mcs/class/System.Web/Test/System.Web.Hosting/ApplicationHostTest.cs
   
trunk/mcs/class/System.Web/Test/System.Web.Security/FormsAuthenticationTest.cs
   
trunk/mcs/class/System.Web/Test/System.Web.UI.HtmlControls/HtmlTextAreaTest.cs
   trunk/mcs/class/System.Web/Test/System.Web/HttpContext.cs
   trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs
   trunk/mcs/class/System.Web/Test/System.Web/HttpResponseTest.cs
Log:
Added a NotDotNet category attribute for tests that pass on mono and do not 
pass on .NET, yet the difference in behavior is reasonable.



Modified: trunk/mcs/class/System.Web/Test/System.Web/HttpContext.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web/HttpContext.cs   2006-11-01 
12:42:08 UTC (rev 67211)
+++ trunk/mcs/class/System.Web/Test/System.Web/HttpContext.cs   2006-11-01 
13:07:32 UTC (rev 67212)
@@ -43,16 +43,22 @@
 
                        return c;
                }
-                       
-               [Test] public void Properties ()
+               
+               
+               [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
+               public void Properties ()
                {
                        HttpContext c;
 
                        c = Cook (10);
                        Assert.AreEqual (null, c.AllErrors, "P1");
                }
+
                
-               [Test] public void Validation_Test_Cookies ()
+               [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
+               public void Validation_Test_Cookies ()
                {
                        HttpContext c;
 
@@ -60,7 +66,10 @@
                        
                }
 
-               [Test] public void Items ()
+               
+               [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
+               public void Items ()
                {
                        HttpContext c = Cook (10);
 
@@ -70,6 +79,7 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void NullConstructor ()
                {
                        HttpContext ctx = new HttpContext (null);

Modified: trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs       
2006-11-01 12:42:08 UTC (rev 67211)
+++ trunk/mcs/class/System.Web/Test/System.Web/HttpRequestTest.cs       
2006-11-01 13:07:32 UTC (rev 67212)
@@ -854,6 +854,7 @@
                HttpContext context = null;
 
                [SetUp]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void SetUp()
                {
                        HttpWorkerRequest workerRequest = new 
FakeHttpWorkerRequest();
@@ -861,19 +862,21 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void ContentLength()
                {
                        Assert.AreEqual(7, context.Request.ContentLength);
                }
 
                [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void Form_Count()
                {
                        Assert.AreEqual(1, context.Request.Form.Count);
                }
 
                [Test]
-               [Category ("NotDotNet")]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void Form_Item()
                {
                        // I would have expected the extra two characters to be 
stripped
@@ -917,6 +920,7 @@
                HttpContext context = null;
 
                [SetUp]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void SetUp()
                {
                        HttpWorkerRequest workerRequest = new 
FakeHttpWorkerRequest();
@@ -924,12 +928,14 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void Form_Count()
                {
                        Assert.AreEqual(1, context.Request.Form.Count);
                }
 
                [Test]
+               [Category ("NotDotNet")] // Cannot be runned on .net with no 
web context
                public void Form_Item()
                {
                        Assert.AreEqual("b\xE1r", context.Request.Form["foo"]);

Modified: trunk/mcs/class/System.Web/Test/System.Web/HttpResponseTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web/HttpResponseTest.cs      
2006-11-01 12:42:08 UTC (rev 67211)
+++ trunk/mcs/class/System.Web/Test/System.Web/HttpResponseTest.cs      
2006-11-01 13:07:32 UTC (rev 67212)
@@ -166,6 +166,9 @@
        [TestFixture]
        public class HttpResponseTest {
 
+               // NOTE : This test cannot be runned on .net with no web 
context ....
+               // ONLY MONO TESTS
+
                HttpContext Cook (int re, out FakeHttpWorkerRequest2 f)
                {
                        f = new FakeHttpWorkerRequest2 (re);
@@ -173,7 +176,8 @@
 
                        return c;
                }
-               
+
+               [Category ("NotDotNet")] //This test cannot be runned on .net 
with no web context ....
                [Test] public void Test_Response ()
                {
                        FakeHttpWorkerRequest2 f;
@@ -194,7 +198,7 @@
                }
 
                [Test]
-               [Category ("NotDotNet")]
+               [Category ("NotDotNet")]  //This test cannot be runned on .net 
with no web context ....
                public void TestResponse_Chunked ()
                {
                        FakeHttpWorkerRequest2 f;
@@ -211,6 +215,7 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] //This test cannot be runned on .net 
with no web context ....
                public void Status1 ()
                {
                        FakeHttpWorkerRequest2 f;
@@ -239,6 +244,7 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] //This test cannot be runned on .net 
with no web context ....
                [ExpectedException (typeof (HttpException))]
                public void Status2 ()
                {
@@ -250,6 +256,7 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] //This test cannot be runned on .net 
with no web context ....
                [ExpectedException (typeof (HttpException))]
                public void Status3 ()
                {
@@ -261,6 +268,7 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] //This test cannot be runned on .net 
with no web context ....
                public void Status4 ()
                {
                        FakeHttpWorkerRequest2 f;
@@ -289,6 +297,7 @@
                //`
 
                [Test]
+               [Category ("NotDotNet")] //This test cannot be runned on .net 
with no web context ....
                public void SetCacheability ()
                {
                        FakeHttpWorkerRequest2 f;
@@ -321,6 +330,7 @@
                // "no-cache" from the spec is also allowed
                //
                [Test]
+               [Category ("NotDotNet")] //This test cannot be runned on .net 
with no web context ....
                public void CacheControl ()
                {
                        FakeHttpWorkerRequest2 f;

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.Hosting/ApplicationHostTest.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/System.Web.Hosting/ApplicationHostTest.cs   
2006-11-01 12:42:08 UTC (rev 67211)
+++ trunk/mcs/class/System.Web/Test/System.Web.Hosting/ApplicationHostTest.cs   
2006-11-01 13:07:32 UTC (rev 67212)
@@ -141,6 +141,7 @@
                }
                
                [Test]
+               [Category ("NotDotNet")] // D2 and D3 asserts will fail in 
windows on because file system environment 
                public void ConstructorTest ()
                {
                        object o = ApplicationHost.CreateApplicationHost 
(typeof (MBR), "/app", Environment.CurrentDirectory);

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.Security/FormsAuthenticationTest.cs
===================================================================
--- 
trunk/mcs/class/System.Web/Test/System.Web.Security/FormsAuthenticationTest.cs  
    2006-11-01 12:42:08 UTC (rev 67211)
+++ 
trunk/mcs/class/System.Web/Test/System.Web.Security/FormsAuthenticationTest.cs  
    2006-11-01 13:07:32 UTC (rev 67212)
@@ -22,10 +22,8 @@
        public class FormsAuthenticationTest {
 
                [Test]
+               [Category ("NotDotNet")] // Dot.net url must include Namespace 
name
                [Category("NunitWeb")]
-#if TARGET_JVM
-               [Category ("NotWorking")]
-#endif
                public void DefaultValues ()
                {
                        new WebTest(new HandlerInvoker 
(DefaultValues_delegate)).Run ();
@@ -50,10 +48,8 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] // Dot.net url must include Namespace 
name
                [Category("NunitWeb")]
-#if TARGET_JVM
-               [Category ("NotWorking")]
-#endif
                public void Initialize ()
                {
                        new WebTest(new HandlerInvoker 
(Initialize_delegate)).Run ();

Modified: 
trunk/mcs/class/System.Web/Test/System.Web.UI.HtmlControls/HtmlTextAreaTest.cs
===================================================================
--- 
trunk/mcs/class/System.Web/Test/System.Web.UI.HtmlControls/HtmlTextAreaTest.cs  
    2006-11-01 12:42:08 UTC (rev 67211)
+++ 
trunk/mcs/class/System.Web/Test/System.Web.UI.HtmlControls/HtmlTextAreaTest.cs  
    2006-11-01 13:07:32 UTC (rev 67212)
@@ -33,7 +33,7 @@
 using System.Web;
 using System.Web.UI;
 using System.Web.UI.HtmlControls;
-
+using MonoTests.stand_alone.WebHarness;
 using NUnit.Framework;
 
 namespace MonoTests.System.Web.UI.HtmlControls {
@@ -197,11 +197,13 @@
                }
 
                [Test]
+               [Category ("NotDotNet")] // Implementation details changes : 
Control name will diffrent.
                public void RenderName1 ()
                {
                        UserControl ctrl = new UserControl ();
                        ctrl.ID = "UC";
                        Page page = new Page ();
+                       page.EnableEventValidation = false;
                        TestHtmlTextArea ta = new TestHtmlTextArea ();
                        page.Controls.Add (ctrl);
                        ctrl.Controls.Add (ta);

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

Reply via email to