Sha256: 4c1674a96a923509de84eeba2f9fb0bcc3036b4c7f682ab1d20376296025bd7a

Contents?: true

Size: 662 Bytes

Versions: 15

Compression:

Stored size: 662 Bytes

Contents

activity Java::org.ruboto.test_app.ImageButtonAndButtonActivity

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

test('button changes text') do |activity|
  assert_equal "What hath Matz wrought?", @text_view.text
  activity.find_view_by_id(44).perform_click
  assert_equal 'Button pressed', @text_view.text
end

test('image button changes text') do |activity|
  assert_equal "What hath Matz wrought?", @text_view.text
  activity.find_view_by_id(43).perform_click
  assert_equal 'Image button pressed', @text_view.text
end

Version data entries

15 entries across 15 versions & 1 rubygems

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