mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixed many tests
This commit is contained in:
@@ -611,7 +611,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Assert.True (btn1.ProcessKey (new KeyEvent (Key.Enter, new KeyModifiers ())));
|
||||
} else if (iterations == 1) {
|
||||
expected = @"
|
||||
┌ Hey ─────────────────────────────────────────────────────────────┐
|
||||
┌┤Hey├─────────────────────────────────────────────────────────────┐
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
@@ -637,7 +637,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Assert.True (btn2.ProcessKey (new KeyEvent (Key.Enter, new KeyModifiers ())));
|
||||
} else if (iterations == 2) {
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ Hey ─────────────────────────────────────────────────────────────┐
|
||||
┌┤Hey├─────────────────────────────────────────────────────────────┐
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
@@ -645,7 +645,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ┌ hey ─────────────────────────────────────────┐ │
|
||||
│ ┌┤hey├─────────────────────────────────────────┐ │
|
||||
│ │ ya │ │
|
||||
│ │ │ │
|
||||
│ │ [◦ ok ◦] │ │
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
} else if (iterations == 1) {
|
||||
Application.Refresh ();
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ Title ───────────────────────────────────────┐
|
||||
┌┤Title├───────────────────────────────────────┐
|
||||
│ Message │
|
||||
│ │
|
||||
│ │
|
||||
@@ -73,7 +73,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
} else if (iterations == 1) {
|
||||
Application.Refresh ();
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ About UI Catalog ──────────────────────────────────────────┐
|
||||
┌┤About UI Catalog├──────────────────────────────────────────┐
|
||||
│ A comprehensive sample library for │
|
||||
│ │
|
||||
│ _______ _ _ _____ _ │
|
||||
@@ -142,7 +142,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
} else if (iterations == 1) {
|
||||
Application.Refresh ();
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ Title ──┐
|
||||
┌┤Title├──┐
|
||||
│ Message │
|
||||
│ │
|
||||
│[◦ Ok ◦] │
|
||||
@@ -172,7 +172,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
} else if (iterations == 1) {
|
||||
Application.Refresh ();
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ mywindow ────────────────────────────────────────────────────────────────────┐
|
||||
┌┤mywindow├────────────────────────────────────────────────────────────────────┐
|
||||
│ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff│
|
||||
│ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff│
|
||||
│ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff│
|
||||
@@ -225,7 +225,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
} else if (iterations == 1) {
|
||||
Application.Refresh ();
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ mywindow ────────────────────────────────────────────────────────────────────┐
|
||||
┌┤mywindow├────────────────────────────────────────────────────────────────────┐
|
||||
│ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff │
|
||||
│ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff │
|
||||
│ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff │
|
||||
@@ -340,7 +340,7 @@ ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
} else if (iterations == 1) {
|
||||
Application.Refresh ();
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ mywindow ────────────────────────────────────┐
|
||||
┌┤mywindow├────────────────────────────────────┐
|
||||
│ │
|
||||
│ │
|
||||
│ [◦ ok ◦] │
|
||||
|
||||
@@ -705,11 +705,11 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
|
||||
} else if (iterations == 1) TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
File
|
||||
┌ Window ──────────────────────────────┐
|
||||
┌┤Window├──────────────────────────────┐
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ┌ About ───────────────┐ │
|
||||
│ ┌┤About├───────────────┐ │
|
||||
│ │ Hello Word │ │
|
||||
│ │ │ │
|
||||
│ │ [◦ Ok ◦] │ │
|
||||
@@ -754,11 +754,11 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
File
|
||||
┌ Window ──────────────────────────────┐
|
||||
┌┤Window├──────────────────────────────┐
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ ┌ About ───────────────┐ │
|
||||
│ ┌┤About├───────────────┐ │
|
||||
│ │ Hello Word │ │
|
||||
│ │ │ │
|
||||
│ │ [◦ Ok ◦] │ │
|
||||
@@ -790,10 +790,10 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
File
|
||||
┌ Window ──────────────────────────────┐
|
||||
┌┤Window├──────────────────────────────┐
|
||||
│ │
|
||||
│ │
|
||||
│ ┌ About ───────────────┐ │
|
||||
│ ┌┤About├───────────────┐ │
|
||||
│ │ Hello Word │ │
|
||||
│ │ │ │
|
||||
│ │ [◦ Ok ◦] │ │
|
||||
@@ -1111,7 +1111,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
▲
|
||||
┬
|
||||
│
|
||||
┌ Window ───────────────────────────┴
|
||||
┌┤Window├───────────────────────────┴
|
||||
│ ░
|
||||
│ ░
|
||||
│ ░
|
||||
@@ -1156,7 +1156,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
┴
|
||||
░
|
||||
░
|
||||
┌ Window ────────────────────────░
|
||||
┌┤Window├────────────────────────░
|
||||
│ ░
|
||||
│ ░
|
||||
│ ░
|
||||
@@ -1183,7 +1183,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
▲
|
||||
┬
|
||||
┌ Window ────────────────────────────│
|
||||
┌┤Window├────────────────────────────│
|
||||
│ ┴
|
||||
│ ░
|
||||
│ ░
|
||||
@@ -1244,7 +1244,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
File
|
||||
|
||||
|
||||
┌ Dialog ──────────┐
|
||||
┌┤Dialog├──────────┐
|
||||
│ [ Ok ] │
|
||||
└──────────────────┘
|
||||
|
||||
@@ -1279,7 +1279,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Assert.Equal (new Rect (0, 1, 20, 3), dialog.Frame);
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
File
|
||||
┌ Dialog ──────────┐
|
||||
┌┤Dialog├──────────┐
|
||||
│ [ Ok ] │
|
||||
└──────────────────┘
|
||||
|
||||
@@ -1305,7 +1305,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Assert.Equal (new Rect (0, 1, 20, 3), dialog.Frame);
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
File
|
||||
┌ Dialog ──────────┐
|
||||
┌┤Dialog├──────────┐
|
||||
│ [ Ok ] │
|
||||
└──────────────────┘
|
||||
CTRL-N New ", output);
|
||||
@@ -1386,7 +1386,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Assert.Null (Application.MouseGrabView);
|
||||
Assert.Equal (new Rect (25, 7, 30, 10), dialog.Frame);
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ Single smaller Dialog ─────┐
|
||||
┌┤Single smaller Dialog├─────┐
|
||||
│ How should I've to react. │
|
||||
│Cleaning all chunk trails or│
|
||||
│ setting the 'Cols' and │
|
||||
@@ -1411,7 +1411,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
|
||||
Assert.Equal (new Rect (25, 7, 30, 10), dialog.Frame);
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ Single smaller Dialog ─────┐
|
||||
┌┤Single smaller Dialog├─────┐
|
||||
│ How should I've to react. │
|
||||
│Cleaning all chunk trails or│
|
||||
│ setting the 'Cols' and │
|
||||
@@ -1436,7 +1436,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
Assert.Equal (dialog, Application.MouseGrabView);
|
||||
Assert.Equal (new Rect (20, 10, 30, 10), dialog.Frame);
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌ Single smaller Dialog ─────┐
|
||||
┌┤Single smaller Dialog├─────┐
|
||||
│ How should I've to react. │
|
||||
│Cleaning all chunk trails or│
|
||||
│ setting the 'Cols' and │
|
||||
|
||||
@@ -189,7 +189,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌──────────────────┐
|
||||
│ File Edit │
|
||||
│┌ Frame View ────┐│
|
||||
│┌┤Frame View├────┐│
|
||||
││ ││
|
||||
││ ││
|
||||
││ ││
|
||||
@@ -203,7 +203,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌──────────────────────────────────────┐
|
||||
│ File Edit │
|
||||
│┌ Frame View ────────────────────────┐│
|
||||
│┌┤Frame View├────────────────────────┐│
|
||||
││ ││
|
||||
││ ││
|
||||
││ ││
|
||||
@@ -227,7 +227,7 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (@"
|
||||
┌──────────────────┐
|
||||
│ File Edit │
|
||||
│┌ Frame View ────┐│
|
||||
│┌┤Frame View├────┐│
|
||||
││ ││
|
||||
││ ││
|
||||
││ ││
|
||||
|
||||
Reference in New Issue
Block a user