Sha256: e31b54131f2762b6d6847b5193b28be4e1defec70adaefa1396705259dba85e4

Contents?: true

Size: 445 Bytes

Versions: 22

Compression:

Stored size: 445 Bytes

Contents

activity Java::org.ruboto.test_app.ImageButtonActivity

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('button changes text') do |activity|
  assert_equal 'What hath Matz wrought?', @text_view.text
  activity.findViewById(43).performClick
  assert_equal 'What hath Matz wrought!', @text_view.text
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ruboto-0.13.0.rc.0 test/activity/image_button_activity_test.rb
ruboto-0.12.0.rc.0 test/activity/image_button_activity_test.rb