Author: gert
Date: 2007-09-08 07:49:15 -0400 (Sat, 08 Sep 2007)
New Revision: 85516
Added:
trunk/gert/interactive/bug82723/
trunk/gert/interactive/bug82723/MainForm.cs
trunk/gert/interactive/bug82723/default.build
trunk/gert/interactive/bug82726/
trunk/gert/interactive/bug82726/AnimatedCompile.gif
trunk/gert/interactive/bug82726/MainForm.cs
trunk/gert/interactive/bug82726/default.build
trunk/gert/interactive/bug82727/
trunk/gert/interactive/bug82727/AnimatedCompile.gif
trunk/gert/interactive/bug82727/MainForm.cs
trunk/gert/interactive/bug82727/default.build
trunk/gert/interactive/bug82747/
trunk/gert/interactive/bug82747/MainForm.cs
trunk/gert/interactive/bug82747/default.build
trunk/gert/interactive/bug82749/
trunk/gert/interactive/bug82749/MainForm.cs
trunk/gert/interactive/bug82749/default.build
Modified:
trunk/gert/interactive/known_issues
Log:
Added tests.
Added: trunk/gert/interactive/bug82723/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82723/MainForm.cs 2007-09-08 08:45:55 UTC (rev
85515)
+++ trunk/gert/interactive/bug82723/MainForm.cs 2007-09-08 11:49:15 UTC (rev
85516)
@@ -0,0 +1,134 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _updateButton
+ //
+ _updateButton = new Button ();
+ _updateButton.Location = new Point (100, 25);
+ _updateButton.Text = "&Update";
+ _updateButton.Click += UpdateButton_Click;
+ Controls.Add (_updateButton);
+ //
+ // _statusScript
+ //
+ _statusScript = new StatusStrip ();
+ _statusScript.Dock = DockStyle.Bottom;
+ Controls.Add (_statusScript);
+ //
+ // _statusLabel
+ //
+ _statusLabel = new ToolStripStatusLabel ();
+ _statusLabel.Size = new Size (0, 17);
+ _statusScript.Items.Add (_statusLabel);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (300, 100);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #82723";
+ 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 UpdateButton_Click (object sender, EventArgs ea)
+ {
+ int cur = _buttonPhase;
+ _buttonPhase = (_buttonPhase + 1) % ButtonPhaseCount;
+
+ switch (cur) {
+ case 0:
+ _statusLabel.Text = new string ('c', 30);
+ break;
+ case 1:
+ _statusLabel.Text = new string ('b', 20);
+ break;
+ case 2:
+ _statusLabel.Text = new string ('a', 10);
+ break;
+ }
+ }
+
+ private Button _updateButton;
+ private StatusStrip _statusScript;
+ private ToolStripStatusLabel _statusLabel;
+ private int _buttonPhase;
+ private const int ButtonPhaseCount = 3;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Click the Update button.{0}{0}" +
+ "2. Click the Update button.{0}{0}" +
+ "3. Click the Update button.{0}{0}" +
+ "4. Click the Update button.{0}{0}" +
+ "5. Click the Update button.{0}{0}" +
+ "6. Click the Update button.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. On step 1, 30 c's are displayed in the label on " +
+ "statusstrip.{0}{0}" +
+ "2. On step 2, 20 b's are displayed in the label on " +
+ "statusstrip.{0}{0}" +
+ "3. On step 3, 10 a's are displayed in the label on " +
+ "statusstrip.{0}{0}" +
+ "4. On step 4, 30 c's are displayed in the label on " +
+ "statusstrip.{0}{0}" +
+ "5. On step 5, 20 b's are displayed in the label on " +
+ "statusstrip.{0}{0}" +
+ "6. On step 6, 10 a's are displayed in the label on " +
+ "statusstrip.",
+ Environment.NewLine);
+ //
+ // _tabPage1
+ //
+ _tabPage1 = new TabPage ();
+ _tabPage1.Text = "#1";
+ _tabPage1.Controls.Add (_bugDescriptionText1);
+ _tabControl.Controls.Add (_tabPage1);
+ //
+ // InstructionsForm
+ //
+ ClientSize = new Size (330, 410);
+ Location = new Point (600, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #82723";
+ }
+
+ private TextBox _bugDescriptionText1;
+ private TabControl _tabControl;
+ private TabPage _tabPage1;
+}
Property changes on: trunk/gert/interactive/bug82723/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82723/default.build
===================================================================
--- trunk/gert/interactive/bug82723/default.build 2007-09-08 08:45:55 UTC
(rev 85515)
+++ trunk/gert/interactive/bug82723/default.build 2007-09-08 11:49:15 UTC
(rev 85516)
@@ -0,0 +1,54 @@
+<project name="bug82723" 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-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="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/bug82723/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82726/AnimatedCompile.gif
===================================================================
(Binary files differ)
Property changes on: trunk/gert/interactive/bug82726/AnimatedCompile.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/gert/interactive/bug82726/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82726/MainForm.cs 2007-09-08 08:45:55 UTC (rev
85515)
+++ trunk/gert/interactive/bug82726/MainForm.cs 2007-09-08 11:49:15 UTC (rev
85516)
@@ -0,0 +1,91 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _statusScript
+ //
+ _statusScript = new StatusStrip ();
+ _statusScript.Dock = DockStyle.Bottom;
+ Controls.Add (_statusScript);
+ //
+ // _statusLabel
+ //
+ _statusLabel = new ToolStripStatusLabel ();
+ _statusLabel.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ _statusLabel.Image = Image.FromFile ("AnimatedCompile.gif");
+ _statusLabel.ImageScaling = ToolStripItemImageScaling.None;
+ _statusLabel.Margin = new Padding (2, 0, 2, 1);
+ _statusLabel.Size = new Size (15, 21);
+ _statusScript.Items.Add (_statusLabel);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (300, 100);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #82726";
+ 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 ();
+ }
+
+ private StatusStrip _statusScript;
+ private ToolStripStatusLabel _statusLabel;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Expected result on start-up:{0}{0}" +
+ "1. An animated icon is displayed in the statusstrip.",
+ 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 (600, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #82726";
+ }
+
+ private TextBox _bugDescriptionText1;
+ private TabControl _tabControl;
+ private TabPage _tabPage1;
+}
Property changes on: trunk/gert/interactive/bug82726/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82726/default.build
===================================================================
--- trunk/gert/interactive/bug82726/default.build 2007-09-08 08:45:55 UTC
(rev 85515)
+++ trunk/gert/interactive/bug82726/default.build 2007-09-08 11:49:15 UTC
(rev 85516)
@@ -0,0 +1,54 @@
+<project name="bug82726" 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-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="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/bug82726/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82727/AnimatedCompile.gif
===================================================================
(Binary files differ)
Property changes on: trunk/gert/interactive/bug82727/AnimatedCompile.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/gert/interactive/bug82727/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82727/MainForm.cs 2007-09-08 08:45:55 UTC (rev
85515)
+++ trunk/gert/interactive/bug82727/MainForm.cs 2007-09-08 11:49:15 UTC (rev
85516)
@@ -0,0 +1,133 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _visibleCheckBox
+ //
+ _visibleCheckBox = new CheckBox ();
+ _visibleCheckBox.Location = new Point (5, 5);
+ _visibleCheckBox.Text = "&Visible";
+ _visibleCheckBox.CheckedChanged +=
VisibleCheckBox_CheckedChanged;
+ Controls.Add (_visibleCheckBox);
+ //
+ // _statusScript
+ //
+ _statusScript = new StatusStrip ();
+ _statusScript.Dock = DockStyle.Bottom;
+ Controls.Add (_statusScript);
+ //
+ // _statusLabel
+ //
+ _statusLabel = new ToolStripStatusLabel ();
+ _statusLabel.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ _statusLabel.Image = Image.FromFile ("AnimatedCompile.gif");
+ _statusLabel.ImageScaling = ToolStripItemImageScaling.None;
+ _statusLabel.Margin = new Padding (2, 0, 2, 1);
+ _statusLabel.Size = new Size (15, 21);
+ _statusLabel.Visible = false;
+ _statusScript.Items.Add (_statusLabel);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (300, 100);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #82727";
+ 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 VisibleCheckBox_CheckedChanged (object sender, EventArgs ea)
+ {
+ _statusLabel.Visible = _visibleCheckBox.Checked;
+ }
+
+ private CheckBox _visibleCheckBox;
+ private StatusStrip _statusScript;
+ private ToolStripStatusLabel _statusLabel;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Expected result on start-up:{0}{0}" +
+ "1. No icon is displayed close to the left border of " +
+ "the statusstrip.",
+ Environment.NewLine);
+ //
+ // _tabPage1
+ //
+ _tabPage1 = new TabPage ();
+ _tabPage1.Text = "#1";
+ _tabPage1.Controls.Add (_bugDescriptionText1);
+ _tabControl.Controls.Add (_tabPage1);
+ //
+ // _bugDescriptionText2
+ //
+ _bugDescriptionText2 = new TextBox ();
+ _bugDescriptionText2.Dock = DockStyle.Fill;
+ _bugDescriptionText2.Multiline = true;
+ _bugDescriptionText2.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Check the Visible checkbox.{0}{0}" +
+ "2. Uncheck the Visible checkbox.{0}{0}" +
+ "3. Check the Visible checkbox.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. On step 1 and 3, an icon is displayed close to " +
+ "the left border of the statusstrip.{0}{0}" +
+ "1. On step 2, no icon is displayed close to the " +
+ "left border of the statusstrip.",
+ Environment.NewLine);
+ //
+ // _tabPage2
+ //
+ _tabPage2 = new TabPage ();
+ _tabPage2.Text = "#2";
+ _tabPage2.Controls.Add (_bugDescriptionText2);
+ _tabControl.Controls.Add (_tabPage2);
+ //
+ // InstructionsForm
+ //
+ ClientSize = new Size (330, 245);
+ Location = new Point (600, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #82727";
+ }
+
+ private TextBox _bugDescriptionText1;
+ private TextBox _bugDescriptionText2;
+ private TabControl _tabControl;
+ private TabPage _tabPage1;
+ private TabPage _tabPage2;
+}
Property changes on: trunk/gert/interactive/bug82727/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82727/default.build
===================================================================
--- trunk/gert/interactive/bug82727/default.build 2007-09-08 08:45:55 UTC
(rev 85515)
+++ trunk/gert/interactive/bug82727/default.build 2007-09-08 11:49:15 UTC
(rev 85516)
@@ -0,0 +1,54 @@
+<project name="bug82727" 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-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="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/bug82727/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82747/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82747/MainForm.cs 2007-09-08 08:45:55 UTC (rev
85515)
+++ trunk/gert/interactive/bug82747/MainForm.cs 2007-09-08 11:49:15 UTC (rev
85516)
@@ -0,0 +1,171 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _table
+ //
+ _table = new TableLayoutPanel ();
+ _table.ColumnCount = 1;
+ _table.ColumnStyles.Add (new ColumnStyle (SizeType.Percent,
100F));
+ _table.Dock = DockStyle.Top;
+ _table.Height = 160;
+ _table.RowCount = 2;
+ _table.RowStyles.Add (new RowStyle ());
+ _table.RowStyles.Add (new RowStyle ());
+ Controls.Add (_table);
+ //
+ // _toolStrip1
+ //
+ _toolStrip1 = new ToolStrip ();
+ _toolStrip1.AllowItemReorder = true;
+ _toolStrip1.Dock = DockStyle.Fill;
+ _toolStrip1.Margin = new Padding (5);
+ _toolStrip1.Stretch = true;
+ _toolStrip1.TabStop = false;
+ _table.Controls.Add (_toolStrip1, 0, 0);
+ //
+ // _toolStrip2
+ //
+ _toolStrip2 = new ToolStrip();
+ _toolStrip2.AllowItemReorder = true;
+ _toolStrip2.Dock = DockStyle.Fill;
+ _toolStrip2.Margin = new Padding (5);
+ _toolStrip2.Stretch = true;
+ _toolStrip2.TabStop = true;
+ _table.Controls.Add (_toolStrip2, 0, 1);
+ //
+ // _textBox1
+ //
+ _textBox1 = new ToolStripTextBox ();
+ _textBox1.AcceptsReturn = true;
+ _textBox1.AcceptsTab = true;
+ _textBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
+ _textBox1.AutoCompleteSource =
AutoCompleteSource.RecentlyUsedList;
+ _textBox1.AutoSize = false;
+ _textBox1.AutoToolTip = true;
+ _textBox1.Multiline = true;
+ _textBox1.Margin = new Padding (5);
+ _textBox1.Size = new Size(265, 60);
+ _textBox1.Text = "1";
+ _toolStrip1.Items.Add (_textBox1);
+ //
+ // _textBox2
+ //
+ _textBox2 = new ToolStripTextBox ();
+ _textBox2.AcceptsReturn = true;
+ _textBox2.AcceptsTab = true;
+ _textBox2.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
+ _textBox2.AutoCompleteSource =
AutoCompleteSource.RecentlyUsedList;
+ _textBox2.AutoSize = false;
+ _textBox2.AutoToolTip = true;
+ _textBox2.Multiline = true;
+ _textBox2.Margin = new Padding (5);
+ _textBox2.Size = new Size (265, 60);
+ _textBox2.Text = "2";
+ _toolStrip2.Items.Add (_textBox2);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (300, 165);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #82747";
+ 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 ();
+ }
+
+ private TableLayoutPanel _table;
+ private ToolStrip _toolStrip1;
+ private ToolStrip _toolStrip2;
+ private ToolStripTextBox _textBox1;
+ private ToolStripTextBox _textBox2;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Expected result on start-up:{0}{0}" +
+ "1. Two toolstrip are displayed with the same
size.{0}{0}" +
+ "2. A textbox containing a number fills each toolstrip
" +
+ "(with a small margin).{0}{0}" +
+ "3. The textbox 2 has focus.",
+ Environment.NewLine);
+ //
+ // _tabPage1
+ //
+ _tabPage1 = new TabPage ();
+ _tabPage1.Text = "#1";
+ _tabPage1.Controls.Add (_bugDescriptionText1);
+ _tabControl.Controls.Add (_tabPage1);
+ //
+ // _bugDescriptionText2
+ //
+ _bugDescriptionText2 = new TextBox ();
+ _bugDescriptionText2.Dock = DockStyle.Fill;
+ _bugDescriptionText2.Multiline = true;
+ _bugDescriptionText2.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Reduce the width of the form to a point where the "
+
+ "textboxes can no longer be fully displayed.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. The textboxes are no longer displayed.{0}{0}" +
+ "2. Each toolstrip now features a dropdown button which
" +
+ "can be used to displayed the textbox in a separate " +
+ "window.{0}{0}" +
+ "3. After increasing the width of the form, the " +
+ "textboxes are displayed in the toolstrips again (with
" +
+ "their original size).",
+ Environment.NewLine);
+ //
+ // _tabPage2
+ //
+ _tabPage2 = new TabPage ();
+ _tabPage2.Text = "#2";
+ _tabPage2.Controls.Add (_bugDescriptionText2);
+ _tabControl.Controls.Add (_tabPage2);
+ //
+ // InstructionsForm
+ //
+ ClientSize = new Size (330, 245);
+ Location = new Point (600, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #82747";
+ }
+
+ private TextBox _bugDescriptionText1;
+ private TextBox _bugDescriptionText2;
+ private TabControl _tabControl;
+ private TabPage _tabPage1;
+ private TabPage _tabPage2;
+}
Property changes on: trunk/gert/interactive/bug82747/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82747/default.build
===================================================================
--- trunk/gert/interactive/bug82747/default.build 2007-09-08 08:45:55 UTC
(rev 85515)
+++ trunk/gert/interactive/bug82747/default.build 2007-09-08 11:49:15 UTC
(rev 85516)
@@ -0,0 +1,54 @@
+<project name="bug82727" 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-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="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/bug82747/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82749/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82749/MainForm.cs 2007-09-08 08:45:55 UTC (rev
85515)
+++ trunk/gert/interactive/bug82749/MainForm.cs 2007-09-08 11:49:15 UTC (rev
85516)
@@ -0,0 +1,102 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+ public MainForm ()
+ {
+ //
+ // _textBox
+ //
+ _textBox = new TextBox ();
+ _textBox.Dock = DockStyle.Top;
+ _textBox.Height = 100;
+ _textBox.Multiline = true;
+ Controls.Add (_textBox);
+ //
+ // _multilineCheckBox
+ //
+ _multilineCheckBox = new CheckBox ();
+ _multilineCheckBox.Checked = true;
+ _multilineCheckBox.Location = new Point (8, 110);
+ _multilineCheckBox.Size = new Size (100, 20);
+ _multilineCheckBox.Text = "Multiline";
+ _multilineCheckBox.CheckedChanged += new EventHandler
(MultilineCheckBox_CheckedChanged);
+ Controls.Add (_multilineCheckBox);
+ //
+ // MainForm
+ //
+ ClientSize = new Size (300, 135);
+ Location = new Point (250, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "bug #82749";
+ 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 MultilineCheckBox_CheckedChanged (object sender, EventArgs e)
+ {
+ _textBox.Multiline = _multilineCheckBox.Checked;
+ }
+
+ private TextBox _textBox;
+ private CheckBox _multilineCheckBox;
+}
+
+public class InstructionsForm : Form
+{
+ public InstructionsForm ()
+ {
+ //
+ // _tabControl
+ //
+ _tabControl = new TabControl ();
+ _tabControl.Dock = DockStyle.Fill;
+ Controls.Add (_tabControl);
+ //
+ // _bugDescriptionText1
+ //
+ _bugDescriptionText1 = new TextBox ();
+ _bugDescriptionText1.Dock = DockStyle.Fill;
+ _bugDescriptionText1.Multiline = true;
+ _bugDescriptionText1.Text = string.Format
(CultureInfo.InvariantCulture,
+ "Steps to execute:{0}{0}" +
+ "1. Uncheck the Multiline checkbox.{0}{0}" +
+ "2. Check the Multiline checkbox.{0}{0}" +
+ "Expected result:{0}{0}" +
+ "1. On step 1, the height is the textbox is
reduced.{0}{0}" +
+ "1. On step 2, the original height is restored.",
+ Environment.NewLine);
+ //
+ // _tabPage1
+ //
+ _tabPage1 = new TabPage ();
+ _tabPage1.Text = "#1";
+ _tabPage1.Controls.Add (_bugDescriptionText1);
+ _tabControl.Controls.Add (_tabPage1);
+ //
+ // InstructionsForm
+ //
+ ClientSize = new Size (330, 195);
+ Location = new Point (600, 100);
+ StartPosition = FormStartPosition.Manual;
+ Text = "Instructions - bug #82749";
+ }
+
+ private TextBox _bugDescriptionText1;
+ private TabControl _tabControl;
+ private TabPage _tabPage1;
+}
Property changes on: trunk/gert/interactive/bug82749/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/interactive/bug82749/default.build
===================================================================
--- trunk/gert/interactive/bug82749/default.build 2007-09-08 08:45:55 UTC
(rev 85515)
+++ trunk/gert/interactive/bug82749/default.build 2007-09-08 11:49:15 UTC
(rev 85516)
@@ -0,0 +1,62 @@
+<project name="bug82749" 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/bug82749/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/gert/interactive/known_issues
===================================================================
--- trunk/gert/interactive/known_issues 2007-09-08 08:45:55 UTC (rev 85515)
+++ trunk/gert/interactive/known_issues 2007-09-08 11:49:15 UTC (rev 85516)
@@ -126,3 +126,5 @@
bug82653/**
bug82654/**
bug82722/**
+bug72747/**
+bug82749/**
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches