Author: gert
Date: 2007-05-31 15:30:04 -0400 (Thu, 31 May 2007)
New Revision: 78368

Added:
   trunk/gert/interactive/bug80453/
   trunk/gert/interactive/bug80453/MainForm.cs
   trunk/gert/interactive/bug80453/default.build
   trunk/gert/interactive/bug80647/
   trunk/gert/interactive/bug80647/MainForm.cs
   trunk/gert/interactive/bug80647/default.build
   trunk/gert/interactive/bug81784/
   trunk/gert/interactive/bug81784/MainForm.cs
   trunk/gert/interactive/bug81784/default.build
Modified:
   trunk/gert/interactive/known_issues
Log:
Added few tests.


Added: trunk/gert/interactive/bug80453/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug80453/MainForm.cs 2007-05-31 19:29:37 UTC (rev 
78367)
+++ trunk/gert/interactive/bug80453/MainForm.cs 2007-05-31 19:30:04 UTC (rev 
78368)
@@ -0,0 +1,101 @@
+using System;
+using System.Data;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+       public MainForm ()
+       {
+               SuspendLayout ();
+               // 
+               // _dataGrid
+               // 
+               _dataGrid = new DataGrid ();
+               _dataGrid.DataMember = "";
+               _dataGrid.Dock = DockStyle.Top;
+               _dataGrid.Height = 200;
+               _dataGrid.TabIndex = 0;
+               Controls.Add (_dataGrid);
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Bottom;
+               _tabControl.Height = 300;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click inside the \"A\" cell of the first 
row.{0}{0}" +
+                       "2. Press Tab key until you're in the \"F\" 
cell.{0}{0}" +
+                       "3. Press Shift+Tab until you're in the \"A\" 
cell.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The content of visible cells is:{0}{0}" +
+                       "   A = Miguel de Icaza (cut off){0}" +
+                       "   B = 2007-01-05{0}" +
+                       "   C = 00000000000000{0}" +
+                       "   D = Mono / .NET{0}" +
+                       "   E = Linux / Windows{0}" +
+                       "   ...", Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (400, 530);
+               StartPosition = FormStartPosition.CenterScreen;
+               Text = "bug #80453";
+               Load += new EventHandler (MainForm_Load);
+               ResumeLayout (false);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               System.Data.DataSet dataSet = new DataSet ();
+
+               DataTable table = new DataTable ();
+               dataSet.Tables.Add (table);
+
+               table.Columns.Add (new DataColumn ("A"));
+               table.Columns.Add (new DataColumn ("B"));
+               table.Columns.Add (new DataColumn ("C"));
+               table.Columns.Add (new DataColumn ("D"));
+               table.Columns.Add (new DataColumn ("E"));
+               table.Columns.Add (new DataColumn ("F"));
+
+               DataRow row = table.NewRow ();
+               row ["A"] = "Miguel de Icaza";
+               row ["B"] = "2007-01-05";
+               row ["C"] = "000000000000000";
+               row ["D"] = "Mono / .NET";
+               row ["E"] = "Linux / Windows";
+               row ["F"] = "CSharp";
+               table.Rows.Add (row);
+
+               _dataGrid.DataSource = dataSet;
+               _dataGrid.DataMember = dataSet.Tables [0].TableName;
+       }
+
+       private DataGrid _dataGrid;
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


Property changes on: trunk/gert/interactive/bug80453/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug80453/default.build
===================================================================
--- trunk/gert/interactive/bug80453/default.build       2007-05-31 19:29:37 UTC 
(rev 78367)
+++ trunk/gert/interactive/bug80453/default.build       2007-05-31 19:30:04 UTC 
(rev 78368)
@@ -0,0 +1,63 @@
+<project name="bug80453" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <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-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <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="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Data.dll" />
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.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/interactive/bug80453/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug80647/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug80647/MainForm.cs 2007-05-31 19:29:37 UTC (rev 
78367)
+++ trunk/gert/interactive/bug80647/MainForm.cs 2007-05-31 19:30:04 UTC (rev 
78368)
@@ -0,0 +1,109 @@
+using System;
+using System.Data;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _dataGrid
+               // 
+               _dataGrid = new DataGrid ();
+               _dataGrid.Dock = DockStyle.Fill;
+               Controls.Add (_dataGrid);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (200, 200);
+               Location = new Point (300, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #80647";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               DataTable t = new DataTable ();
+               t.Columns.Add ();
+               t.Columns.Add ();
+               DataRow row = t.NewRow ();
+               row [0] = "111111";
+               row [1] = "222222";
+               t.Rows.Add (row);
+               _dataGrid.DataSource = t;
+
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       protected override void OnActivated (EventArgs e)
+       {
+               base.OnActivated (e);
+               if (_done)
+                       return;
+
+               Control o = ActiveForm;
+               while (o is ContainerControl) {
+                       ContainerControl oContainer = (ContainerControl) o;
+                       o = oContainer.ActiveControl;
+               }
+               if (o != null && o is TextBox)
+                       ((TextBox) o).Cut ();
+               SendKeys.SendWait ("{TAB}");
+               _done = true;
+       }
+
+       private DataGrid _dataGrid;
+       private bool _done;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Expected result on start-up:{0}{0}" +
+                       "1. The cell in the first column is empty.{0}{0}" +
+                       "2. The text cursor is located at the end of the 
content in the " +
+                       "second column.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (300, 130);
+               Location = new Point (550, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #80647";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


Property changes on: trunk/gert/interactive/bug80647/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug80647/default.build
===================================================================
--- trunk/gert/interactive/bug80647/default.build       2007-05-31 19:29:37 UTC 
(rev 78367)
+++ trunk/gert/interactive/bug80647/default.build       2007-05-31 19:30:04 UTC 
(rev 78368)
@@ -0,0 +1,63 @@
+<project name="bug80647" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <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-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <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="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Data.dll" />
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.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/interactive/bug80647/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug81784/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81784/MainForm.cs 2007-05-31 19:29:37 UTC (rev 
78367)
+++ trunk/gert/interactive/bug81784/MainForm.cs 2007-05-31 19:30:04 UTC (rev 
78368)
@@ -0,0 +1,127 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _openFileButton
+               // 
+               _openFileButton = new Button ();
+               _openFileButton.Location = new System.Drawing.Point (60, 28);
+               _openFileButton.Text = "Open File";
+               _openFileButton.Click += new System.EventHandler 
(OpenFileButton_Click);
+               Controls.Add (_openFileButton);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (200, 80);
+               Location = new Point (300, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #81784";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       void OpenFileButton_Click (object sender, EventArgs e)
+       {
+               OpenFileDialog ofd = new OpenFileDialog ();
+               ofd.Filter = "Text files (*.txt)|*.txt|Source files 
(*.cs)|*.cs|Application files (*.exe)|*.exe|All files (*.*)|*.*";
+               ofd.FilterIndex = 2;
+               ofd.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory;
+               ofd.ShowDialog ();
+
+               MessageBox.Show (string.Format (CultureInfo.InvariantCulture,
+                       "FilterIndex: {0}", ofd.FilterIndex));
+
+               ofd.Dispose ();
+       }
+
+       private Button _openFileButton;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Open File button.{0}{0}" +
+                       "2. Select the \"Application files (*.exe)\" entry in 
the " +
+                       "\"Files of type\" ComboBox.{0}{0}" +
+                       "3. Select the \"test.exe\" file in the 
ListView.{0}{0}" +
+                       "4. Click the Open button.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. A message box stating \"FilterIndex: 3\" is 
displayed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // _bugDescriptionText2
+               // 
+               _bugDescriptionText2 = new TextBox ();
+               _bugDescriptionText2.Multiline = true;
+               _bugDescriptionText2.Dock = DockStyle.Fill;
+               _bugDescriptionText2.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Open File button.{0}{0}" +
+                       "2. Select the \"Application files (*.exe)\" entry in 
the " +
+                       "\"Files of type\" ComboBox.{0}{0}" +
+                       "3. Select the \"test.exe\" file in the 
ListView.{0}{0}" +
+                       "4. Click the Cancel button.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. A message box stating \"FilterIndex: 2\" is 
displayed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage2
+               // 
+               _tabPage2 = new TabPage ();
+               _tabPage2.Text = "#2";
+               _tabPage2.Controls.Add (_bugDescriptionText2);
+               _tabControl.Controls.Add (_tabPage2);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (340, 230);
+               Location = new Point (550, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #81784";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TextBox _bugDescriptionText2;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+       private TabPage _tabPage2;
+}


Property changes on: trunk/gert/interactive/bug81784/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug81784/default.build
===================================================================
--- trunk/gert/interactive/bug81784/default.build       2007-05-31 19:29:37 UTC 
(rev 78367)
+++ trunk/gert/interactive/bug81784/default.build       2007-05-31 19:30:04 UTC 
(rev 78368)
@@ -0,0 +1,62 @@
+<project name="bug81784" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <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-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <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="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.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/interactive/bug81784/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/interactive/known_issues
===================================================================
--- trunk/gert/interactive/known_issues 2007-05-31 19:29:37 UTC (rev 78367)
+++ trunk/gert/interactive/known_issues 2007-05-31 19:30:04 UTC (rev 78368)
@@ -22,6 +22,7 @@
 bug79964/**
 bug79970/**
 bug81267/**
+bug81389/**
 bug81402/**
 bug81422/**
 bug81423/**

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

Reply via email to