Sha256: aeac6be5094d4a11816a45bdf0a3bf9327033acebb71a8a4283047b792817c5b

Contents?: true

Size: 491 Bytes

Versions: 22

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

22 entries across 22 versions & 2 rubygems

Version Path
ruboto-0.10.2 assets/samples/sample_activity_test.rb
ruboto-0.10.2.rc.0 assets/samples/sample_activity_test.rb
ruboto-0.10.1 assets/samples/sample_activity_test.rb
ruboto-0.10.0 assets/samples/sample_activity_test.rb
ruboto-0.10.0.rc.1 assets/samples/sample_activity_test.rb
ruboto-0.10.0.rc.0 assets/samples/sample_activity_test.rb
ruboto-0.9.0 assets/samples/sample_activity_test.rb
ruboto-0.9.0.rc.1 assets/samples/sample_activity_test.rb
ruboto-0.9.0.rc.0 assets/samples/sample_activity_test.rb
ruboto-0.8.1 assets/samples/sample_activity_test.rb
ruboto-0.8.0 assets/samples/sample_activity_test.rb
ruboto-0.7.0 assets/samples/sample_activity_test.rb
ruboto-0.6.0 assets/samples/sample_activity_test.rb
ruboto-0.5.4 assets/samples/sample_activity_test.rb
ruboto-0.5.3 assets/samples/sample_activity_test.rb
ruboto-0.5.2 assets/samples/sample_activity_test.rb
ruboto-core-0.5.1 assets/samples/sample_activity_test.rb
ruboto-core-0.4.1.rc.4 assets/samples/sample_activity_test.rb
ruboto-core-0.4.0 assets/samples/sample_activity_test.rb
ruboto-core-0.3.3 assets/samples/sample_activity_test.rb