Support usage of ICCCM compliant window in UAT
This commit is contained in:
		@@ -28,6 +28,10 @@ Around '@other_wm_running' do |_, block|
 | 
			
		||||
  with_other_wm { block.call }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
After '@icccm_window' do
 | 
			
		||||
  icccm_window_ensure_stop
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if ENV.key? 'TRAVIS'
 | 
			
		||||
  ENV['UHWMTEST_TIMEOUT'] = 8.to_s
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,19 @@ module Uh
 | 
			
		||||
        QUIT_KEYBINDING = 'alt+shift+q'.freeze
 | 
			
		||||
        LOG_READY       = 'Working events'.freeze
 | 
			
		||||
 | 
			
		||||
        def icccm_window_start
 | 
			
		||||
          @icccm_window = ChildProcess.build(*%w[xmessage window])
 | 
			
		||||
          @icccm_window.start
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        def icccm_window_ensure_stop
 | 
			
		||||
          @icccm_window.stop
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        def icccm_window_name
 | 
			
		||||
          'xmessage'
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        def uhwm_run options = '-v'
 | 
			
		||||
          command = %w[uhwm]
 | 
			
		||||
          command << options if options
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user