Sha256: 4b7e3039ff7afb684cc8c873ce49b79f5f2d94b26f0e3c5c35617d9e086a0913

Contents?: true

Size: 691 Bytes

Versions: 20

Compression:

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

test('button changes text') do |activity|
  button = activity.find_view_by_id 44
  button.perform_click
  assert_equal 'Button pressed', @text_view.text
end

test('image button changes text') do |activity|
  image_button = activity.find_view_by_id 43
  image_button.perform_click
  assert_equal 'Image button pressed', @text_view.text
end

Version data entries

20 entries across 14 versions & 2 rubygems

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