Method: Rtml::Test::Screen#timeout
- Defined in:
- lib/rtml/test/screen.rb
#timeout ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/rtml/test/screen.rb', line 69 def timeout return @screen['timeout'].to_i if @screen['timeout'] nxt = ((@screen / "next") || []).shift if nxt return nxt['timeout'].to_i if nxt['timeout'] ((nxt / "variant") || []).each do |var| return var['timeout'].to_i if var['timeout'] end end 0 end |