Sha256: 4bb650a8584bf46934a276791042a5da377399509a57724b477323f51bef288b

Contents?: true

Size: 546 Bytes

Versions: 14

Compression:

Stored size: 546 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('initial setup') do |activity|
  assert_equal "What hath Matz wrought?", @text_view.text
end

test('option_menu changes text') do |activity|
  activity.window.performPanelIdentifierAction(android.view.Window::FEATURE_OPTIONS_PANEL, 0, 0)
  assert_equal "What hath Matz wrought!", @text_view.text
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ruboto-0.9.0 test/handle_activity/option_menu_activity_test.rb
ruboto-0.9.0.rc.1 test/handle_activity/option_menu_activity_test.rb
ruboto-0.9.0.rc.0 test/handle_activity/option_menu_activity_test.rb
ruboto-0.8.1 test/handle_activity/option_menu_activity_test.rb
ruboto-0.8.0 test/handle_activity/option_menu_activity_test.rb
ruboto-0.7.0 test/handle_activity/option_menu_activity_test.rb
ruboto-0.6.0 test/activity/option_menu_activity_test.rb
ruboto-0.5.4 test/activity/option_menu_activity_test.rb
ruboto-0.5.3 test/activity/option_menu_activity_test.rb
ruboto-0.5.2 test/activity/option_menu_activity_test.rb
ruboto-core-0.5.1 test/activity/option_menu_activity_test.rb
ruboto-core-0.4.1.rc.4 test/activity/option_menu_activity_test.rb
ruboto-core-0.4.0 test/activity/option_menu_activity_test.rb
ruboto-core-0.3.3 test/activity/option_menu_activity_test.rb