chore: audit components
This commit is contained in:
@@ -3,7 +3,7 @@ use gpui::{
|
||||
VisualTestContext, Window, div, px,
|
||||
};
|
||||
use gpui_native_core::separator::{Separator, SeparatorOrientation};
|
||||
use gpui_native_theme::Theme;
|
||||
use gpui_native_theme::{BORDER_WIDTH, Theme};
|
||||
|
||||
struct Harness {
|
||||
orientation: SeparatorOrientation,
|
||||
@@ -47,7 +47,7 @@ fn the_horizontal_rule_spans_its_container_at_hairline_height() {
|
||||
.debug_bounds("test-separator")
|
||||
.expect("horizontal separator rendered");
|
||||
assert_eq!(bounds.size.width, px(200.));
|
||||
assert_eq!(bounds.size.height, px(1.));
|
||||
assert_eq!(bounds.size.height, BORDER_WIDTH);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -56,6 +56,6 @@ fn the_vertical_rule_spans_its_container_at_hairline_width() {
|
||||
let bounds = visual
|
||||
.debug_bounds("test-separator")
|
||||
.expect("vertical separator rendered");
|
||||
assert_eq!(bounds.size.width, px(1.));
|
||||
assert_eq!(bounds.size.width, BORDER_WIDTH);
|
||||
assert_eq!(bounds.size.height, px(50.));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user