Sha256: dd237eac393b3fd7dbb1ae75398b98d1bb0f9deeb9cb82e150155ec2f5bba75d

Contents?: true

Size: 491 Bytes

Versions: 25

Compression:

Stored size: 491 Bytes

Contents

activity Java::THE_PACKAGE.SampleActivity

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ruboto-0.13.0.rc.0 assets/samples/sample_activity_test.rb
ruboto-0.12.0.rc.0 assets/samples/sample_activity_test.rb
ruboto-0.11.0 assets/samples/sample_activity_test.rb
ruboto-0.11.0.rc.1 assets/samples/sample_activity_test.rb
ruboto-0.11.0.rc.0 assets/samples/sample_activity_test.rb