Sha256: cb5e7898e30f652cc33d8165ad594fdeac5050df6cc7396bee6c3e94029b5c15

Contents?: true

Size: 505 Bytes

Versions: 15

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

15 entries across 15 versions & 1 rubygems

Version Path
ruboto-0.11.0 test/activity/option_menu_activity_test.rb
ruboto-0.11.0.rc.1 test/activity/option_menu_activity_test.rb
ruboto-0.11.0.rc.0 test/activity/option_menu_activity_test.rb
ruboto-0.10.2 test/activity/option_menu_activity_test.rb
ruboto-0.10.2.rc.0 test/activity/option_menu_activity_test.rb
ruboto-0.10.1 test/activity/option_menu_activity_test.rb
ruboto-0.10.0 test/activity/option_menu_activity_test.rb
ruboto-0.10.0.rc.1 test/activity/option_menu_activity_test.rb
ruboto-0.10.0.rc.0 test/activity/option_menu_activity_test.rb
ruboto-0.9.0 test/activity/option_menu_activity_test.rb
ruboto-0.9.0.rc.1 test/activity/option_menu_activity_test.rb
ruboto-0.9.0.rc.0 test/activity/option_menu_activity_test.rb
ruboto-0.8.1 test/activity/option_menu_activity_test.rb
ruboto-0.8.0 test/activity/option_menu_activity_test.rb
ruboto-0.7.0 test/activity/option_menu_activity_test.rb