Sha256: 87ac305ef3479cf44616dfc7ac44c0717cf66f1b854f229acd793f95e03d591f

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

activity Java::org.ruboto.test_app.OptionMenuActivity

setup do |activity|
  start = Time.now
  loop do
    @text_view = activity.findViewById(42)
    break if @text_view || (Time.now - start > 60)
    sleep 1
  end
  assert @text_view
end

test('option_menu changes text') do |activity|
  assert_equal "What hath Matz wrought?", @text_view.text
  activity.window.performPanelIdentifierAction(android.view.Window::FEATURE_OPTIONS_PANEL, 0, 0)
  # FIXME(rscottm): Does not work in Ruby 1.9 mode
  assert_equal("What hath Matz wrought!", @text_view.text) if RUBY_VERSION < '1.9'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruboto-0.7.0 test/block_def_activity/option_menu_activity_test.rb