File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -236,14 +236,27 @@ def test_split_pane_size(session: Session) -> None:
236
236
short_pane = pane .split (size = 10 )
237
237
assert short_pane .pane_height == "10"
238
238
239
+ assert short_pane .at_left
240
+ assert short_pane .at_right
241
+ assert not short_pane .at_top
242
+ assert short_pane .at_bottom
243
+
239
244
narrow_pane = pane .split (direction = PaneDirection .Right , size = 10 )
240
245
assert narrow_pane .pane_width == "10"
241
246
247
+ assert not narrow_pane .at_left
248
+ assert narrow_pane .at_right
249
+ assert narrow_pane .at_top
250
+ assert not narrow_pane .at_bottom
251
+
242
252
new_pane = pane .split (size = "10%" )
243
253
assert new_pane .pane_height == "8"
244
254
245
255
new_pane = short_pane .split (direction = PaneDirection .Right , size = "10%" )
246
256
assert new_pane .pane_width == "10"
257
+
258
+ assert not new_pane .at_left
259
+ assert new_pane .at_right
247
260
else :
248
261
window_height_before = (
249
262
int (window .window_height ) if isinstance (window .window_height , str ) else 0
You can’t perform that action at this time.
0 commit comments