Author: gert
Date: 2008-02-05 15:13:43 -0500 (Tue, 05 Feb 2008)
New Revision: 94937
Added:
trunk/gert/standalone/bug358742/
trunk/gert/standalone/bug358742/default.build
trunk/gert/standalone/bug358742/test.cs
trunk/gert/standalone/bug358742/web/
trunk/gert/standalone/bug358742/web/Default.aspx
trunk/gert/standalone/bug358742/web/Default.aspx.cs
trunk/gert/standalone/bug358742/web/MasterPage.master
trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx
trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx.cs
trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx
trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx.cs
Modified:
trunk/gert/standalone/known-issues
Log:
Added test for bug #358742.
Added: trunk/gert/standalone/bug358742/default.build
===================================================================
--- trunk/gert/standalone/bug358742/default.build 2008-02-05 20:06:33 UTC
(rev 94936)
+++ trunk/gert/standalone/bug358742/default.build 2008-02-05 20:13:43 UTC
(rev 94937)
@@ -0,0 +1,48 @@
+<project name="bug358742" default="rebuild">
+ <include buildfile="../../build/common.build" />
+
+ <target name="mono-2.0-init">
+ <property name="xsp.package" value="xsp-2" />
+ </target>
+
+ <target name="net-2.0-init">
+ <property name="xsp.package" value="xsp-2" />
+ </target>
+
+ <property name="frameworks" value="mono-2.0,net-2.0" />
+
+ <target name="clean">
+ <delete>
+ <fileset>
+ <include name="out" />
+ <include name="test.exe" />
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="compile" depends="init">
+ <csc target="exe" define="${csc.defines}" output="test.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="../../build/common/Assert.cs" />
+ <include name="test.cs" />
+ </sources>
+ <references>
+ <include name="System.Web.dll" />
+ </references>
+ </csc>
+ </target>
+
+ <target name="run-test" depends="compile">
+ <exec
program="${pkg-config::get-variable(xsp.package,'Executable')}" managed="true"
spawn="true" pidproperty="server.pid">
+ <arg value="--root" />
+ <arg dir="web" />
+ <arg value="--port" />
+ <arg value="8081" />
+ </exec>
+ <sleep milliseconds="1000" />
+ <exec program="test.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ <kill pid="${server.pid}" />
+ <sleep milliseconds="1000" />
+ </target>
+</project>
Property changes on: trunk/gert/standalone/bug358742/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug358742/test.cs
===================================================================
--- trunk/gert/standalone/bug358742/test.cs 2008-02-05 20:06:33 UTC (rev
94936)
+++ trunk/gert/standalone/bug358742/test.cs 2008-02-05 20:13:43 UTC (rev
94937)
@@ -0,0 +1,56 @@
+using System;
+using System.Globalization;
+using System.IO;
+using System.Net;
+using System.Text;
+using System.Threading;
+
+class Program
+{
+ static int Main ()
+ {
+ Thread.CurrentThread.CurrentCulture =
CultureInfo.InvariantCulture;
+ Thread.CurrentThread.CurrentUICulture =
CultureInfo.InvariantCulture;
+
+ HttpWebRequest 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 ();
+
+ int found = result.IndexOf ("<p>Select
Location</p>");
+ if (found == -1) {
+ Console.WriteLine (result);
+ return 1;
+ }
+ found = result.IndexOf ("<p>Select
Location</p>", found + 22);
+ if (found == -1) {
+ Console.WriteLine (result);
+ return 2;
+ }
+ found = result.IndexOf ("<p>Select
Location</p>", found + 22);
+ if (found == -1) {
+ Console.WriteLine (result);
+ return 3;
+ }
+ found = result.IndexOf ("<p>Select
Location</p>", found + 22);
+ if (found != -1) {
+ Console.WriteLine (result);
+ return 4;
+ }
+ }
+ response.Close ();
+ return 0;
+ } catch (WebException ex) {
+ HttpWebResponse response = (HttpWebResponse)
ex.Response;
+ if (response != null) {
+ using (StreamReader sr = new StreamReader
(response.GetResponseStream ())) {
+ Console.WriteLine (sr.ReadToEnd ());
+ }
+ }
+ return 2;
+ }
+ }
+}
Property changes on: trunk/gert/standalone/bug358742/test.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug358742/web/Default.aspx
===================================================================
--- trunk/gert/standalone/bug358742/web/Default.aspx 2008-02-05 20:06:33 UTC
(rev 94936)
+++ trunk/gert/standalone/bug358742/web/Default.aspx 2008-02-05 20:13:43 UTC
(rev 94937)
@@ -0,0 +1,10 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
Title="Untitled Page" %>
+<%@ Register TagPrefix="Loc" TagName="SelectLocation"
Src="~/SelectLocationForm.ascx" %>
+<%@ Register TagPrefix="MN" TagName="SelectManyLocations"
Src="~/SelectManyLocationsForm.ascx" %>
+<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
+ <div align="center">
+ <img alt="Doctor" src="Img/doctor1.jpg" border="0" />
+ <Loc:SelectLocation runat="server" />
+ <MN:SelectManyLocations ID="Many" runat="server" />
+ </div>
+</asp:Content>
Property changes on: trunk/gert/standalone/bug358742/web/Default.aspx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug358742/web/Default.aspx.cs
===================================================================
--- trunk/gert/standalone/bug358742/web/Default.aspx.cs 2008-02-05 20:06:33 UTC
(rev 94936)
+++ trunk/gert/standalone/bug358742/web/Default.aspx.cs 2008-02-05 20:13:43 UTC
(rev 94937)
@@ -0,0 +1,16 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+public partial class _Default : Page
+{
+ protected void Page_Load (object sender, EventArgs e)
+ {
+ }
+}
Property changes on: trunk/gert/standalone/bug358742/web/Default.aspx.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug358742/web/MasterPage.master
===================================================================
--- trunk/gert/standalone/bug358742/web/MasterPage.master 2008-02-05
20:06:33 UTC (rev 94936)
+++ trunk/gert/standalone/bug358742/web/MasterPage.master 2008-02-05
20:13:43 UTC (rev 94937)
@@ -0,0 +1,13 @@
+<%@ Master Language="C#" %>
+<!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">
+ <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
+ </asp:ContentPlaceHolder>
+ </form>
+</body>
+</html>
Added: trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx
===================================================================
--- trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx 2008-02-05
20:06:33 UTC (rev 94936)
+++ trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx 2008-02-05
20:13:43 UTC (rev 94937)
@@ -0,0 +1,2 @@
+<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="SelectLocationForm.ascx.cs" Inherits="SelectLocationForm" %>
+<p>Select Location</p>
Property changes on: trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx.cs
===================================================================
--- trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx.cs
2008-02-05 20:06:33 UTC (rev 94936)
+++ trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx.cs
2008-02-05 20:13:43 UTC (rev 94937)
@@ -0,0 +1,13 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+public partial class SelectLocationForm : System.Web.UI.UserControl
+{
+}
Property changes on:
trunk/gert/standalone/bug358742/web/SelectLocationForm.ascx.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx
===================================================================
--- trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx
2008-02-05 20:06:33 UTC (rev 94936)
+++ trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx
2008-02-05 20:13:43 UTC (rev 94937)
@@ -0,0 +1,6 @@
+<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="SelectManyLocationsForm.ascx.cs" Inherits="SelectManyLocationsForm" %>
+<%@ Register TagPrefix="VM" TagName="SelectLocationForm"
Src="SelectLocationForm.ascx" %>
+<asp:Panel runat="server">
+<VM:SelectLocationForm ID="A" runat="server" />
+<VM:SelectLocationForm ID="B" runat="server" />
+</asp:Panel>
Property changes on:
trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx.cs
===================================================================
--- trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx.cs
2008-02-05 20:06:33 UTC (rev 94936)
+++ trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx.cs
2008-02-05 20:13:43 UTC (rev 94937)
@@ -0,0 +1,13 @@
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+public partial class SelectManyLocationsForm : System.Web.UI.UserControl
+{
+}
Property changes on:
trunk/gert/standalone/bug358742/web/SelectManyLocationsForm.ascx.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues 2008-02-05 20:06:33 UTC (rev 94936)
+++ trunk/gert/standalone/known-issues 2008-02-05 20:13:43 UTC (rev 94937)
@@ -137,3 +137,4 @@
bug351740/**
bug353495/**
bug353537/**
+bug358742/**
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches