tests: clean up/beautify all tests (code style / test style)
This commit is contained in:
@ -2,9 +2,8 @@
|
||||
# vim:ts=4:sw=4:expandtab
|
||||
# Regression test: when only having a floating window on a workspace, it should not be deleted.
|
||||
|
||||
use i3test tests => 6;
|
||||
use i3test;
|
||||
use X11::XCB qw(:all);
|
||||
use Time::HiRes qw(sleep);
|
||||
|
||||
BEGIN {
|
||||
use_ok('X11::XCB::Window');
|
||||
@ -12,8 +11,7 @@ BEGIN {
|
||||
|
||||
my $i3 = i3("/tmp/nestedcons");
|
||||
|
||||
my $tmp = get_unused_workspace();
|
||||
$i3->command("workspace $tmp")->recv;
|
||||
my $tmp = fresh_workspace;
|
||||
|
||||
#############################################################################
|
||||
# 1: open a floating window, get it mapped
|
||||
@ -47,8 +45,9 @@ ok($window->mapped, 'Window is mapped');
|
||||
|
||||
# switch to a different workspace, see if the window is still mapped?
|
||||
|
||||
my $otmp = get_unused_workspace();
|
||||
$i3->command("workspace $otmp")->recv;
|
||||
my $otmp = fresh_workspace;
|
||||
|
||||
ok(workspace_exists($otmp), "new workspace $otmp exists");
|
||||
ok(workspace_exists($tmp), "old workspace $tmp still exists");
|
||||
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user