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-1.6.1 assets/samples/sample_activity_test.rb
ruboto-1.6.0 assets/samples/sample_activity_test.rb
ruboto-1.5.0 assets/samples/sample_activity_test.rb
ruboto-1.4.1 assets/samples/sample_activity_test.rb
ruboto-1.4.0 assets/samples/sample_activity_test.rb
ruboto-1.3.1 assets/samples/sample_activity_test.rb
ruboto-1.3.0 assets/samples/sample_activity_test.rb
ruboto-1.2.0 assets/samples/sample_activity_test.rb
ruboto-1.1.2 assets/samples/sample_activity_test.rb
ruboto-1.1.1 assets/samples/sample_activity_test.rb
ruboto-1.1.0 assets/samples/sample_activity_test.rb
ruboto-1.0.3 assets/samples/sample_activity_test.rb
ruboto-1.0.2 assets/samples/sample_activity_test.rb
ruboto-1.0.1 assets/samples/sample_activity_test.rb
ruboto-1.0.0 assets/samples/sample_activity_test.rb
ruboto-0.16.0 assets/samples/sample_activity_test.rb
ruboto-0.15.0 assets/samples/sample_activity_test.rb
ruboto-0.14.0 assets/samples/sample_activity_test.rb
ruboto-0.13.0 assets/samples/sample_activity_test.rb
ruboto-0.12.0 assets/samples/sample_activity_test.rb