mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Refactored UI Catalog and added tons of unit tests
This commit is contained in:
@@ -66,7 +66,7 @@ namespace UICatalog {
|
||||
// Close after a short period of time
|
||||
var token = Application.MainLoop.AddTimeout (TimeSpan.FromMilliseconds (100), closeCallback);
|
||||
|
||||
scenario.Init (Application.Top, Colors.Base);
|
||||
scenario.Init (Colors.Base);
|
||||
scenario.Setup ();
|
||||
scenario.Run ();
|
||||
Application.Shutdown ();
|
||||
@@ -121,7 +121,7 @@ namespace UICatalog {
|
||||
Assert.Equal (Key.CtrlMask | Key.Q, args.KeyEvent.Key);
|
||||
};
|
||||
|
||||
generic.Init (Application.Top, Colors.Base);
|
||||
generic.Init (Colors.Base);
|
||||
generic.Setup ();
|
||||
// There is no need to call Application.Begin because Init already creates the Application.Top
|
||||
// If Application.RunState is used then the Application.RunLoop must also be used instead Application.Run.
|
||||
|
||||
Reference in New Issue
Block a user