Author: gert
Date: 2008-01-12 04:58:39 -0500 (Sat, 12 Jan 2008)
New Revision: 92724

Added:
   trunk/gert/standalone/bug319016/web/Default.aspx
   trunk/gert/standalone/bug319016/web/DefaultPage.cs
Modified:
   trunk/gert/standalone/bug319016/test.cs
   trunk/gert/standalone/bug319016/web/Index.aspx
Log:
Improve test.


Modified: trunk/gert/standalone/bug319016/test.cs
===================================================================
--- trunk/gert/standalone/bug319016/test.cs     2008-01-12 09:52:20 UTC (rev 
92723)
+++ trunk/gert/standalone/bug319016/test.cs     2008-01-12 09:58:39 UTC (rev 
92724)
@@ -33,6 +33,27 @@
                        return 2;
                }
 
+               request = (HttpWebRequest) WebRequest.Create 
("http://localhost:8081/Default.aspx";);
+               request.Method = "GET";
+
+               try {
+                       HttpWebResponse response = (HttpWebResponse) 
request.GetResponse ();
+                       using (StreamReader sr = new StreamReader 
(response.GetResponseStream (), Encoding.UTF8, true)) {
+                               string result = sr.ReadToEnd ();
+                               if (result.IndexOf ("<span 
id=\"Label1\"></span>") == -1) {
+                                       Console.WriteLine (result);
+                                       return 3;
+                               }
+                       }
+                       response.Close ();
+               } catch (WebException ex) {
+                       if (ex.Response != null) {
+                               StreamReader sr = new StreamReader 
(ex.Response.GetResponseStream ());
+                               Console.WriteLine (sr.ReadToEnd ());
+                       }
+                       return 4;
+               }
+
                return 0;
        }
 }

Added: trunk/gert/standalone/bug319016/web/Default.aspx
===================================================================
--- trunk/gert/standalone/bug319016/web/Default.aspx    2008-01-12 09:52:20 UTC 
(rev 92723)
+++ trunk/gert/standalone/bug319016/web/Default.aspx    2008-01-12 09:58:39 UTC 
(rev 92724)
@@ -0,0 +1,4 @@
+<%@ Page language="c#" src="DefaultPage.cs" AutoEventWireup="false"%>
+<form id="frmMain" method="post" runat="server">
+       <asp:Label id="Label1" runat="server" />
+</form>


Property changes on: trunk/gert/standalone/bug319016/web/Default.aspx
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug319016/web/DefaultPage.cs
===================================================================
--- trunk/gert/standalone/bug319016/web/DefaultPage.cs  2008-01-12 09:52:20 UTC 
(rev 92723)
+++ trunk/gert/standalone/bug319016/web/DefaultPage.cs  2008-01-12 09:58:39 UTC 
(rev 92724)
@@ -0,0 +1,18 @@
+using System;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace test
+{
+       public class DefaultPage : Page
+       {
+               protected Label Label1;
+
+               protected override void OnLoad (EventArgs e)
+               {
+                       base.OnLoad (e);
+                       Label1.Text = "FINE";
+               }
+       }
+}


Property changes on: trunk/gert/standalone/bug319016/web/DefaultPage.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/standalone/bug319016/web/Index.aspx
===================================================================
--- trunk/gert/standalone/bug319016/web/Index.aspx      2008-01-12 09:52:20 UTC 
(rev 92723)
+++ trunk/gert/standalone/bug319016/web/Index.aspx      2008-01-12 09:58:39 UTC 
(rev 92724)
@@ -1,4 +1,4 @@
-<%@ Page language="c#" src="IndexPage.cs"  Inherits="test.IndexPage" 
AutoEventWireup="false"%>
+<%@ Page language="c#" src="IndexPage.cs" Inherits="test.IndexPage" 
AutoEventWireup="false"%>
 <form id="frmMain" method="post" runat="server">
        <asp:Label id="Label1" runat="server" />
-</form>
\ No newline at end of file
+</form>

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

Reply via email to