Author: gert
Date: 2007-09-18 10:02:39 -0400 (Tue, 18 Sep 2007)
New Revision: 85970

Added:
   trunk/gert/standalone/bug317761/
   trunk/gert/standalone/bug317761/default.build
   trunk/gert/standalone/bug317761/test.cs
   trunk/gert/standalone/bug317761/web/
   trunk/gert/standalone/bug317761/web/Default.aspx
   trunk/gert/standalone/bug317761/web/WebUserControl.ascx
   trunk/gert/standalone/bug317761/web/bin/
   trunk/gert/standalone/bug317761/web/bin/RTFBox.dll
Modified:
   trunk/gert/standalone/known-issues
Log:
Added test for bug #317761.


Added: trunk/gert/standalone/bug317761/default.build
===================================================================
--- trunk/gert/standalone/bug317761/default.build       2007-09-18 14:00:39 UTC 
(rev 85969)
+++ trunk/gert/standalone/bug317761/default.build       2007-09-18 14:02:39 UTC 
(rev 85970)
@@ -0,0 +1,58 @@
+<project name="bug317761" default="rebuild">
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-2.0,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="web/bin/test.exe" />
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Web.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/standalone/bug317761/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug317761/test.cs
===================================================================
--- trunk/gert/standalone/bug317761/test.cs     2007-09-18 14:00:39 UTC (rev 
85969)
+++ trunk/gert/standalone/bug317761/test.cs     2007-09-18 14:02:39 UTC (rev 
85970)
@@ -0,0 +1,41 @@
+using System;
+using System.IO;
+using System.Web;
+using System.Web.Hosting;
+
+class TinyHost : MarshalByRefObject
+{
+       static TinyHost CreateHost ()
+       {
+               string path = Path.Combine 
(AppDomain.CurrentDomain.BaseDirectory, "web");
+               string bin = Path.Combine (path, "bin");
+               string asm = Path.GetFileName (typeof 
(TinyHost).Assembly.Location);
+
+               Directory.CreateDirectory (bin);
+               File.Copy (asm, Path.Combine (bin, asm), true);
+
+               return (TinyHost) ApplicationHost.CreateApplicationHost (
+                       typeof (TinyHost), "/", path);
+       }
+
+       public void Execute (string page, TextWriter tw)
+       {
+               SimpleWorkerRequest req = new SimpleWorkerRequest (
+                       page, "", tw);
+               HttpRuntime.ProcessRequest (req);
+       }
+
+       static int Main ()
+       {
+               TinyHost h = CreateHost ();
+               StringWriter sw = new StringWriter ();
+               h.Execute ("Default.aspx", sw);
+               string result = sw.ToString ();
+               if (result.IndexOf 
("RTFEdit_WebUserControl1$RTFBox1.document.designMode='on';") == -1) {
+                       Console.WriteLine (result);
+                       return 1;
+               }
+
+               return 0;
+       }
+}


Property changes on: trunk/gert/standalone/bug317761/test.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug317761/web/Default.aspx
===================================================================
--- trunk/gert/standalone/bug317761/web/Default.aspx    2007-09-18 14:00:39 UTC 
(rev 85969)
+++ trunk/gert/standalone/bug317761/web/Default.aspx    2007-09-18 14:02:39 UTC 
(rev 85970)
@@ -0,0 +1,15 @@
+<%@ Page Language="C#" %>
+<%@ Register Src="WebUserControl.ascx" TagName="WebUserControl" 
TagPrefix="uc1" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml";>
+<head runat="server">
+       <title>Untitled Page</title>
+</head>
+<body>
+       <form id="form1" runat="server">
+               <div>
+                       <uc1:WebUserControl ID="WebUserControl1" runat="server" 
/>
+               </div>
+       </form>
+</body>
+</html>


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

Added: trunk/gert/standalone/bug317761/web/WebUserControl.ascx
===================================================================
--- trunk/gert/standalone/bug317761/web/WebUserControl.ascx     2007-09-18 
14:00:39 UTC (rev 85969)
+++ trunk/gert/standalone/bug317761/web/WebUserControl.ascx     2007-09-18 
14:02:39 UTC (rev 85970)
@@ -0,0 +1,6 @@
+<%@ Control Language="C#" ClassName="WebUserControl" %>
+<%@ Register Assembly="RTFBox" Namespace="HangamaHouse" TagPrefix="cc1" %>
+<cc1:rtfbox id="RTFBox1" runat="server"></cc1:rtfbox>
+<br />
+<br />
+Try to set cursor to message box!


Property changes on: trunk/gert/standalone/bug317761/web/WebUserControl.ascx
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug317761/web/bin/RTFBox.dll
===================================================================
(Binary files differ)


Property changes on: trunk/gert/standalone/bug317761/web/bin/RTFBox.dll
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues  2007-09-18 14:00:39 UTC (rev 85969)
+++ trunk/gert/standalone/known-issues  2007-09-18 14:02:39 UTC (rev 85970)
@@ -61,7 +61,6 @@
 bug82247/**
 bug82276/**
 bug82285/**
-bug82302/**
 bug82324/**
 bug82327/**
 bug82353/**

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

Reply via email to