diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-11 12:54:41 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-11 12:59:27 +0300 |
commit | 2c116527563269da1e6a40db009073d81a98639c (patch) | |
tree | b15d00b9c1cbc2c24c87e486d228dbe04a822e28 /main/src/addins/NUnit | |
parent | e34ab0a517527a4b87db71b79354d6cc8be41a3b (diff) |
Make the pad sticky while the tests are runnig, so the results pad is
always visible (even if minimized). That's required since when running
in debug mode, the layout is automatically switched to debug.
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Services/NUnitService.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/src/addins/NUnit/Services/NUnitService.cs b/main/src/addins/NUnit/Services/NUnitService.cs index a4e319aed9..e2e25dedd9 100644 --- a/main/src/addins/NUnit/Services/NUnitService.cs +++ b/main/src/addins/NUnit/Services/NUnitService.cs @@ -152,9 +152,20 @@ namespace MonoDevelop.NUnit resultsPad = IdeApp.Workbench.ShowPad (new TestResultsPad (), "MonoDevelop.NUnit.TestResultsPad", GettextCatalog.GetString ("Test results"), "Bottom", "md-solution"); } + // Make the pad sticky while the tests are runnig, so the results pad is always visible (even if minimized) + // That's required since when running in debug mode, the layout is automatically switched to debug. + + resultsPad.Sticky = true; resultsPad.BringToFront (); + TestSession session = new TestSession (test, context, (TestResultsPad) resultsPad.Content); + + session.Completed += delegate { + resultsPad.Sticky = false; + }; + session.Start (); + return session; } |