541-resize-set-tiling.t: fix "my" variable mask warnings
This commit is contained in:
parent
423e20b960
commit
f28c50b631
|
@ -51,7 +51,7 @@ cmp_float($nodes->[1]->{percent}, 0.80, 'right window got 80%');
|
||||||
# resize vertically
|
# resize vertically
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
my $tmp = fresh_workspace;
|
$tmp = fresh_workspace;
|
||||||
|
|
||||||
cmd 'split v';
|
cmd 'split v';
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ is($x->input_focus, $bottom->id, 'Bottom window focused');
|
||||||
|
|
||||||
cmd 'resize set 0 ppt 75 ppt';
|
cmd 'resize set 0 ppt 75 ppt';
|
||||||
|
|
||||||
my ($nodes, $focus) = get_ws_content($tmp);
|
($nodes, $focus) = get_ws_content($tmp);
|
||||||
|
|
||||||
cmp_float($nodes->[0]->{percent}, 0.25, 'top window got only 25%');
|
cmp_float($nodes->[0]->{percent}, 0.25, 'top window got only 25%');
|
||||||
cmp_float($nodes->[1]->{percent}, 0.75, 'bottom window got 75%');
|
cmp_float($nodes->[1]->{percent}, 0.75, 'bottom window got 75%');
|
||||||
|
@ -81,10 +81,10 @@ cmp_float($nodes->[1]->{percent}, 0.80, 'bottom window got 80%');
|
||||||
# resize horizontally and vertically
|
# resize horizontally and vertically
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
my $tmp = fresh_workspace;
|
$tmp = fresh_workspace;
|
||||||
|
|
||||||
cmd 'split h';
|
cmd 'split h';
|
||||||
my $left = open_window;
|
$left = open_window;
|
||||||
my $top_right = open_window;
|
my $top_right = open_window;
|
||||||
cmd 'split v';
|
cmd 'split v';
|
||||||
my $bottom_right = open_window;
|
my $bottom_right = open_window;
|
||||||
|
@ -95,7 +95,7 @@ is($x->input_focus, $bottom_right->id, 'Bottom-right window focused');
|
||||||
|
|
||||||
cmd 'resize set 75 ppt 75 ppt';
|
cmd 'resize set 75 ppt 75 ppt';
|
||||||
|
|
||||||
my ($nodes, $focus) = get_ws_content($tmp);
|
($nodes, $focus) = get_ws_content($tmp);
|
||||||
|
|
||||||
cmp_float($nodes->[0]->{percent}, 0.25, 'left container got 25%');
|
cmp_float($nodes->[0]->{percent}, 0.25, 'left container got 25%');
|
||||||
cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
|
cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
|
||||||
|
@ -107,11 +107,11 @@ cmp_float($nodes->[1]->{nodes}->[1]->{percent}, 0.75, 'bottom-right window got 7
|
||||||
# resize from inside a tabbed container
|
# resize from inside a tabbed container
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
my $tmp = fresh_workspace;
|
$tmp = fresh_workspace;
|
||||||
|
|
||||||
cmd 'split h';
|
cmd 'split h';
|
||||||
|
|
||||||
my $left = open_window;
|
$left = open_window;
|
||||||
my $right1 = open_window;
|
my $right1 = open_window;
|
||||||
|
|
||||||
cmd 'split h';
|
cmd 'split h';
|
||||||
|
@ -125,7 +125,7 @@ is($x->input_focus, $right2->id, '2nd right window focused');
|
||||||
|
|
||||||
cmd 'resize set 75 ppt 0 ppt';
|
cmd 'resize set 75 ppt 0 ppt';
|
||||||
|
|
||||||
my ($nodes, $focus) = get_ws_content($tmp);
|
($nodes, $focus) = get_ws_content($tmp);
|
||||||
|
|
||||||
cmp_float($nodes->[0]->{percent}, 0.25, 'left container got 25%');
|
cmp_float($nodes->[0]->{percent}, 0.25, 'left container got 25%');
|
||||||
cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
|
cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
|
||||||
|
@ -135,17 +135,17 @@ cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
|
||||||
# resize from inside a stacked container
|
# resize from inside a stacked container
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
my $tmp = fresh_workspace;
|
$tmp = fresh_workspace;
|
||||||
|
|
||||||
cmd 'split h';
|
cmd 'split h';
|
||||||
|
|
||||||
my $left = open_window;
|
$left = open_window;
|
||||||
my $right1 = open_window;
|
$right1 = open_window;
|
||||||
|
|
||||||
cmd 'split h';
|
cmd 'split h';
|
||||||
cmd 'layout stacked';
|
cmd 'layout stacked';
|
||||||
|
|
||||||
my $right2 = open_window;
|
$right2 = open_window;
|
||||||
|
|
||||||
diag("left = " . $left->id . ", right1 = " . $right1->id . ", right2 = " . $right2->id);
|
diag("left = " . $left->id . ", right1 = " . $right1->id . ", right2 = " . $right2->id);
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ is($x->input_focus, $right2->id, '2nd right window focused');
|
||||||
|
|
||||||
cmd 'resize set 75 ppt 0 ppt';
|
cmd 'resize set 75 ppt 0 ppt';
|
||||||
|
|
||||||
my ($nodes, $focus) = get_ws_content($tmp);
|
($nodes, $focus) = get_ws_content($tmp);
|
||||||
|
|
||||||
cmp_float($nodes->[0]->{percent}, 0.25, 'left container got 25%');
|
cmp_float($nodes->[0]->{percent}, 0.25, 'left container got 25%');
|
||||||
cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
|
cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
|
||||||
|
|
Loading…
Reference in New Issue