Author: gert
Date: 2007-05-11 19:59:35 -0400 (Fri, 11 May 2007)
New Revision: 77271

Added:
   trunk/gert/interactive/bug80729/
   trunk/gert/interactive/bug80729/MainForm.cs
   trunk/gert/interactive/bug80729/default.build
   trunk/gert/interactive/bug81603/
   trunk/gert/interactive/bug81603/MainForm.cs
   trunk/gert/interactive/bug81603/default.build
   trunk/gert/interactive/bug81604/
   trunk/gert/interactive/bug81604/MainForm.cs
   trunk/gert/interactive/bug81604/default.build
Log:
Added tests for bug #81603, #81604 and #80729.


Added: trunk/gert/interactive/bug80729/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug80729/MainForm.cs 2007-05-11 23:22:44 UTC (rev 
77270)
+++ trunk/gert/interactive/bug80729/MainForm.cs 2007-05-11 23:59:35 UTC (rev 
77271)
@@ -0,0 +1,193 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _rightPanel
+               // 
+               _rightPanel = new Panel ();
+               _rightPanel.Dock = DockStyle.Fill;
+               _rightPanel.Width = 100;
+               _rightPanel.TabIndex = 3;
+               Controls.Add (_rightPanel);
+               // 
+               // _treeSplitter
+               // 
+               _treeSplitter = new Splitter ();
+               _treeSplitter.ImeMode = ImeMode.NoControl;
+               _treeSplitter.Location = new Point (240, 0);
+               _treeSplitter.MinSize = 10;
+               _treeSplitter.Size = new Size (6, 545);
+               _treeSplitter.TabIndex = 2;
+               _treeSplitter.TabStop = false;
+               Controls.Add (_treeSplitter);
+               // 
+               // _leftPanel
+               // 
+               _leftPanel = new Panel ();
+               _leftPanel.Dock = DockStyle.Left;
+               _leftPanel.Width = 100;
+               _leftPanel.TabIndex = 4;
+               Controls.Add (_leftPanel);
+               // 
+               // _resultTabs
+               // 
+               _resultTabs = new ResultTabs ();
+               _resultTabs.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | 
AnchorStyles.Left | AnchorStyles.Right);
+               _resultTabs.Location = new Point (0, 120);
+               _resultTabs.Size = new Size (498, 425);
+               _resultTabs.TabIndex = 2;
+               _rightPanel.Controls.Add (_resultTabs);
+               // 
+               // _treeView
+               // 
+               _treeView = new TreeView ();
+               _treeView.Dock = DockStyle.Fill;
+               _treeView.TabIndex = 0;
+               _leftPanel.Controls.Add (_treeView);
+               // 
+               // _groupBox
+               // 
+               _groupBox = new GroupBox ();
+               _groupBox.Dock = DockStyle.Top;
+               _groupBox.Height = 120;
+               _groupBox.TabIndex = 0;
+               _groupBox.TabStop = false;
+               _rightPanel.Controls.Add (_groupBox);
+               // 
+               // _runButton
+               // 
+               _runButton = new Button ();
+               _runButton.ImeMode = ImeMode.NoControl;
+               _runButton.Location = new Point (8, 18);
+               _runButton.Size = new Size (88, 38);
+               _runButton.TabIndex = 3;
+               _runButton.Text = "&Run";
+               _groupBox.Controls.Add (_runButton);
+               // 
+               // MainForm
+               // 
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #80729";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               _treeView.Nodes.Add ("Test");
+
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       private Panel _leftPanel;
+       private TreeView _treeView;
+       private Splitter _treeSplitter;
+       private Panel _rightPanel;
+       private ResultTabs _resultTabs;
+       private GroupBox _groupBox;
+       private Button _runButton;
+
+       public class ResultTabs : UserControl
+       {
+               public ResultTabs ()
+               {
+                       // 
+                       // _tabControl
+                       // 
+                       _tabControl = new TabControl ();
+                       _tabControl.Dock = DockStyle.Fill;
+                       _tabControl.SelectedIndex = 0;
+                       _tabControl.TabIndex = 3;
+                       Controls.Add (_tabControl);
+                       // 
+                       // _tabPage
+                       // 
+                       _tabPage = new TabPage ();
+                       _tabPage.Text = "Tab";
+                       _tabControl.Controls.Add (_tabPage);
+               }
+
+               private TabControl _tabControl;
+               private TabPage _tabPage;
+       }
+}
+
+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. Focus is on the Run button.",
+                       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. Switch to the main form.{0}{0}" +
+                       "2. Press Tab key.{0}{0}" +
+                       "3. Press Tab key.{0}{0}" +
+                       "4. Press Tab key.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. On step 2, focus is on the TabControl.{0}{0}" +
+                       "2. On step 3, focus is on the Test node in the 
TreeView.{0}{0}" +
+                       "3. On step 4, focus is on the Run button.",
+                       Environment.NewLine);
+               // 
+               // _tabPage2
+               // 
+               _tabPage2 = new TabPage ();
+               _tabPage2.Text = "#2";
+               _tabPage2.Controls.Add (_bugDescriptionText2);
+               _tabControl.Controls.Add (_tabPage2);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (300, 280);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #80729";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TextBox _bugDescriptionText2;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+       private TabPage _tabPage2;
+}


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

Added: trunk/gert/interactive/bug80729/default.build
===================================================================
--- trunk/gert/interactive/bug80729/default.build       2007-05-11 23:22:44 UTC 
(rev 77270)
+++ trunk/gert/interactive/bug80729/default.build       2007-05-11 23:59:35 UTC 
(rev 77271)
@@ -0,0 +1,62 @@
+<project name="bug80729" 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/bug80729/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug81603/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81603/MainForm.cs 2007-05-11 23:22:44 UTC (rev 
77270)
+++ trunk/gert/interactive/bug81603/MainForm.cs 2007-05-11 23:59:35 UTC (rev 
77271)
@@ -0,0 +1,83 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _treeView
+               // 
+               _treeView = new TreeView ();
+               _treeView.Dock = DockStyle.Fill;
+               _treeView.TabIndex = 0;
+               Controls.Add (_treeView);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (200, 50);
+               Location = new Point (300, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #81603";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               _treeView.Nodes.Add ("A");
+
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       private TreeView _treeView;
+}
+
+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. TreeView node A is highlighted.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (300, 100);
+               Location = new Point (550, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #81603";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


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

Added: trunk/gert/interactive/bug81603/default.build
===================================================================
--- trunk/gert/interactive/bug81603/default.build       2007-05-11 23:22:44 UTC 
(rev 77270)
+++ trunk/gert/interactive/bug81603/default.build       2007-05-11 23:59:35 UTC 
(rev 77271)
@@ -0,0 +1,62 @@
+<project name="bug81603" 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/bug81603/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug81604/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81604/MainForm.cs 2007-05-11 23:22:44 UTC (rev 
77270)
+++ trunk/gert/interactive/bug81604/MainForm.cs 2007-05-11 23:59:35 UTC (rev 
77271)
@@ -0,0 +1,88 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _treeView
+               // 
+               _treeView = new TreeView ();
+               _treeView.Dock = DockStyle.Fill;
+               _treeView.TabIndex = 0;
+               Controls.Add (_treeView);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (200, 50);
+               Location = new Point (300, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #81604";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               _treeView.Nodes.Add ("A");
+               _treeView.Nodes.Add ("B");
+               _treeView.Nodes.Add ("C");
+               _treeView.Nodes.Add ("D");
+               _treeView.Nodes.Add ("E");
+
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       private TreeView _treeView;
+}
+
+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. TreeView node A is highlighted.{0}{0}" +
+                       "2. The scrollbar is positioned at the top.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (300, 120);
+               Location = new Point (550, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #81604";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


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

Added: trunk/gert/interactive/bug81604/default.build
===================================================================
--- trunk/gert/interactive/bug81604/default.build       2007-05-11 23:22:44 UTC 
(rev 77270)
+++ trunk/gert/interactive/bug81604/default.build       2007-05-11 23:59:35 UTC 
(rev 77271)
@@ -0,0 +1,62 @@
+<project name="bug81603" 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/bug81604/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

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

Reply via email to