Exemple #1
0
        public void SheetEditorNavigationTests()
        {
            var systemWindow = new SystemWindow(800, 600)
            {
                Name = "Main Window",
            };

            Application.AddTextWidgetRightClickMenu();

            AutomationRunner.TimeToMoveMouse = .1;

            var theme     = ApplicationController.Instance.Theme;
            var container = new FlowLayoutWidget(FlowDirection.TopToBottom)
            {
                HAnchor = HAnchor.Stretch,
                VAnchor = VAnchor.Stretch,
            };

            systemWindow.AddChild(container);

            var sheetData         = new SheetData(5, 5);
            var undoBuffer        = new UndoBuffer();
            var sheetEditorWidget = new SheetEditorWidget(sheetData, null, undoBuffer, theme);

            container.AddChild(sheetEditorWidget);

            systemWindow.RunTest(testRunner =>
            {
                //testRunner.Delay(60);
                return(Task.CompletedTask);
            },
                                 2000);
        }