From b15666523635072162a7d3365f0789207f54c8a0 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Mon, 20 Apr 2015 09:17:32 +0000 Subject: [PATCH] Add #x_window_unmap to UAT helpers --- lib/uh/wm/testing/acceptance_helpers.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/uh/wm/testing/acceptance_helpers.rb b/lib/uh/wm/testing/acceptance_helpers.rb index be11f36..a1324b3 100644 --- a/lib/uh/wm/testing/acceptance_helpers.rb +++ b/lib/uh/wm/testing/acceptance_helpers.rb @@ -99,6 +99,11 @@ module Uh `xwininfo -id #{x_window_id options}`[/Map State: (\w+)/, 1] end + def x_window_unmap options + x_client(options).unmap + x_client(options).sync + end + def x_clients_ensure_stop @x_clients and @x_clients.any? and @x_clients.values.each &:terminate end @@ -165,6 +170,11 @@ module Uh window.map self end + + def unmap + window.unmap + self + end end end end