Sha256: b0af989fdf84297152c09e8d919061aca2c1463587a31ad76997d3ae9660a480

Contents?: true

Size: 665 Bytes

Versions: 11

Compression:

Stored size: 665 Bytes

Contents

Then /^the HTML tab (should say|says) "([^"]*)"$/ do |_, needle|
  limit = 5
  contents = nil
  started = false
  
  thread = Thread.new do
    started = true
    start = Time.now
    contents = get_browser_contents
    while !contents.match(needle) && Time.now - start < limit
      contents = get_browser_contents
      sleep 0.1
    end    
  end
  
  Redcar.gui.yield_until { started && !thread.alive? }
  
  # For now, just skip on windows. We can't get browser exec results
  # on current version of SWT and XulRunner. More info at:
  # https://bugs.eclipse.org/bugs/show_bug.cgi?id=259687
  contents.should match needle unless Redcar.platform == :windows
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
redcar-0.6.1 plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.6 plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.6.1dev plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5.1 plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5 plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5.6dev plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5.5dev plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5.4dev plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5.3dev plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5.2dev plugins/html_view/features/step_definitions/html_view_steps.rb
redcar-0.5.1dev plugins/html_view/features/step_definitions/html_view_steps.rb