Fix editor test to clearly show trailing whitespace
Adjsut default dock size to be a multiple of 16
This commit is contained in:
parent
718052bb72
commit
daed75096e
2 changed files with 11 additions and 7 deletions
|
@ -2353,12 +2353,16 @@ async fn test_clipboard(cx: &mut gpui::TestAppContext) {
|
||||||
e.paste(&Paste, cx);
|
e.paste(&Paste, cx);
|
||||||
e.handle_input(") ", cx);
|
e.handle_input(") ", cx);
|
||||||
});
|
});
|
||||||
cx.assert_editor_state(indoc! {"
|
cx.assert_editor_state(
|
||||||
( one✅
|
&([
|
||||||
three
|
"( one✅ ",
|
||||||
five ) ˇtwo one✅ four three six five ( one✅
|
"three ",
|
||||||
three
|
"five ) ˇtwo one✅ four three six five ( one✅ ",
|
||||||
five ) ˇ"});
|
"three ",
|
||||||
|
"five ) ˇ",
|
||||||
|
]
|
||||||
|
.join("\n")),
|
||||||
|
);
|
||||||
|
|
||||||
// Cut with three selections, one of which is full-line.
|
// Cut with three selections, one of which is full-line.
|
||||||
cx.set_state(indoc! {"
|
cx.set_state(indoc! {"
|
||||||
|
|
|
@ -282,7 +282,7 @@ export default function workspace(colorScheme: ColorScheme) {
|
||||||
},
|
},
|
||||||
dock: {
|
dock: {
|
||||||
initialSizeRight: 640,
|
initialSizeRight: 640,
|
||||||
initialSizeBottom: 300,
|
initialSizeBottom: 304,
|
||||||
wash_color: withOpacity(background(colorScheme.highest), 0.5),
|
wash_color: withOpacity(background(colorScheme.highest), 0.5),
|
||||||
panel: {
|
panel: {
|
||||||
border: border(colorScheme.middle),
|
border: border(colorScheme.middle),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue