Sha256: 8a84d9a763460644ad3ecd4f64d1f5484977fa5187096e472213c20c1ff3d837

Contents?: true

Size: 496 Bytes

Versions: 25

Compression:

Stored size: 496 Bytes

Contents

activity org.ruboto.test_app.LocationActivity

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('distanceBetween') do |activity|
  assert_equal '12531.119140625', activity.find_view_by_id(42).text.to_s
  assert_equal '27.2149505615234', activity.find_view_by_id(43).text.to_s
  assert_equal '27.3007125854492', activity.find_view_by_id(44).text.to_s
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ruboto-1.5.0 test/activity/location_activity_test.rb
ruboto-1.4.1 test/activity/location_activity_test.rb
ruboto-1.4.0 test/activity/location_activity_test.rb
ruboto-1.3.1 test/activity/location_activity_test.rb
ruboto-1.3.0 test/activity/location_activity_test.rb
ruboto-1.2.0 test/activity/location_activity_test.rb
ruboto-1.1.2 test/activity/location_activity_test.rb
ruboto-1.1.1 test/activity/location_activity_test.rb
ruboto-1.1.0 test/activity/location_activity_test.rb
ruboto-1.0.3 test/activity/location_activity_test.rb
ruboto-1.0.2 test/activity/location_activity_test.rb
ruboto-1.0.1 test/activity/location_activity_test.rb
ruboto-1.0.0 test/activity/location_activity_test.rb
ruboto-0.16.0 test/activity/location_activity_test.rb
ruboto-0.15.0 test/activity/location_activity_test.rb
ruboto-0.14.0 test/activity/location_activity_test.rb
ruboto-0.13.0 test/activity/location_activity_test.rb
ruboto-0.12.0 test/activity/location_activity_test.rb
ruboto-0.13.0.rc.0 test/activity/location_activity_test.rb
ruboto-0.12.0.rc.0 test/activity/location_activity_test.rb