From 32532792cd46929bc94280e82c13d42050366794 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 21 Aug 2009 16:06:12 +0200 Subject: [PATCH] tests: Use hex color codes for background_color --- testcases/t/01-tile.t | 3 +-- testcases/t/02-fullscreen.t | 3 +-- testcases/t/03-unmanaged.t | 2 +- testcases/t/04-floating.t | 4 ++-- testcases/t/08-focus-stack.t | 2 +- testcases/t/10-dock.t | 3 +-- testcases/t/lib/i3test.pm | 2 +- 7 files changed, 8 insertions(+), 11 deletions(-) diff --git a/testcases/t/01-tile.t b/testcases/t/01-tile.t index 297446ca..c80c5e15 100644 --- a/testcases/t/01-tile.t +++ b/testcases/t/01-tile.t @@ -17,8 +17,7 @@ my $original_rect = X11::XCB::Rect->new(x => 0, y => 0, width => 30, height => 3 my $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => $original_rect, - #override_redirect => 1, - background_color => 12632256 + background_color => '#C0C0C0', ); isa_ok($window, 'X11::XCB::Window'); diff --git a/testcases/t/02-fullscreen.t b/testcases/t/02-fullscreen.t index 74b1dbbf..b4ebd26b 100644 --- a/testcases/t/02-fullscreen.t +++ b/testcases/t/02-fullscreen.t @@ -20,8 +20,7 @@ my $original_rect = X11::XCB::Rect->new(x => 0, y => 0, width => 30, height => 3 my $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => $original_rect, - #override_redirect => 1, - background_color => 12632256 + background_color => '#C0C0C0', ); isa_ok($window, 'X11::XCB::Window'); diff --git a/testcases/t/03-unmanaged.t b/testcases/t/03-unmanaged.t index cf51bfe8..482c7645 100644 --- a/testcases/t/03-unmanaged.t +++ b/testcases/t/03-unmanaged.t @@ -18,7 +18,7 @@ my $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => $original_rect, override_redirect => 1, - background_color => 12632256 + background_color => '#C0C0C0', ); isa_ok($window, 'X11::XCB::Window'); diff --git a/testcases/t/04-floating.t b/testcases/t/04-floating.t index 79d216d0..369c656b 100644 --- a/testcases/t/04-floating.t +++ b/testcases/t/04-floating.t @@ -20,7 +20,7 @@ X11::XCB::Connection->connect(':0'); my $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => [ 0, 0, 30, 30], - background_color => 12632256, + background_color => '#C0C0C0', type => 'utility', ); @@ -43,7 +43,7 @@ $window->unmap; $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => [ 1, 1, 80, 90], - background_color => 12632256, + background_color => '#C0C0C0', type => 'utility', ); diff --git a/testcases/t/08-focus-stack.t b/testcases/t/08-focus-stack.t index 1ec0f7cb..e29b3eb7 100644 --- a/testcases/t/08-focus-stack.t +++ b/testcases/t/08-focus-stack.t @@ -42,7 +42,7 @@ my $focus = X11::XCB::Connection->input_focus; my $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => [ 1, 1, 30, 30], - background_color => 12632256, + background_color => '#C0C0C0', type => 'utility', ); diff --git a/testcases/t/10-dock.t b/testcases/t/10-dock.t index e2e313c8..a3824fb9 100644 --- a/testcases/t/10-dock.t +++ b/testcases/t/10-dock.t @@ -32,8 +32,7 @@ my $primary = first { $_->primary } @{$screens}; my $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => [ 0, 0, 30, 30], - #override_redirect => 1, - background_color => 12632256, + background_color => '#FF0000', type => 'dock', ); diff --git a/testcases/t/lib/i3test.pm b/testcases/t/lib/i3test.pm index ccba7ccd..8ca1cee4 100644 --- a/testcases/t/lib/i3test.pm +++ b/testcases/t/lib/i3test.pm @@ -18,7 +18,7 @@ sub open_standard_window { my $window = X11::XCB::Window->new( class => WINDOW_CLASS_INPUT_OUTPUT, rect => $original_rect, - background_color => 12632256, + background_color => '#C0C0C0', ); $window->create;