Sha256: 3723e1e76505325ad2849ab3c733b7b2e3907052e4f6dab259604ce36f3a6d4c

Contents?: true

Size: 505 Bytes

Versions: 22

Compression:

Stored size: 505 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)
  assert_equal 'What hath Matz wrought!', @text_view.text
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ruboto-1.6.1 test/activity/option_menu_activity_test.rb
ruboto-1.6.0 test/activity/option_menu_activity_test.rb
ruboto-1.5.0 test/activity/option_menu_activity_test.rb
ruboto-1.4.1 test/activity/option_menu_activity_test.rb
ruboto-1.4.0 test/activity/option_menu_activity_test.rb
ruboto-1.3.1 test/activity/option_menu_activity_test.rb
ruboto-1.3.0 test/activity/option_menu_activity_test.rb
ruboto-1.2.0 test/activity/option_menu_activity_test.rb
ruboto-1.1.2 test/activity/option_menu_activity_test.rb
ruboto-1.1.1 test/activity/option_menu_activity_test.rb
ruboto-1.1.0 test/activity/option_menu_activity_test.rb
ruboto-1.0.3 test/activity/option_menu_activity_test.rb
ruboto-1.0.2 test/activity/option_menu_activity_test.rb
ruboto-1.0.1 test/activity/option_menu_activity_test.rb
ruboto-1.0.0 test/activity/option_menu_activity_test.rb
ruboto-0.16.0 test/activity/option_menu_activity_test.rb
ruboto-0.15.0 test/activity/option_menu_activity_test.rb
ruboto-0.14.0 test/activity/option_menu_activity_test.rb
ruboto-0.13.0 test/activity/option_menu_activity_test.rb
ruboto-0.12.0 test/activity/option_menu_activity_test.rb