forked from reya/gpui-native-kit
fix: make full titlebar strip draggable in dock and sidebar
This commit is contained in:
@@ -98,8 +98,14 @@ fn the_pill_bar_pads_for_traffic_lights_when_it_leads_the_window() {
|
||||
bounds(&mut visual, "test-dock-pane-0-tabs-tab-overview").expect("tab missing");
|
||||
let padded_inset = padded_tab.left() - padded_bar.left();
|
||||
|
||||
// The bare bar keeps the standard leading padding; the padded bar clears
|
||||
// the traffic lights.
|
||||
assert!(
|
||||
padded_inset - bare_inset >= px(TRAFFIC_LIGHT_PAD) - px(1.),
|
||||
bare_inset < px(TRAFFIC_LIGHT_PAD),
|
||||
"the bare bar must not reserve the traffic-light pad (bare {bare_inset:?})"
|
||||
);
|
||||
assert!(
|
||||
padded_inset >= px(TRAFFIC_LIGHT_PAD) - px(1.),
|
||||
"the pad must clear the traffic lights (bare {bare_inset:?}, padded {padded_inset:?})"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user