Sha256: 47039ae8fd78152c9868ea4a6337439fffd3c8c6dcf29292ea5d6ad66184b4b1

Contents?: true

Size: 539 Bytes

Versions: 16

Compression:

Stored size: 539 Bytes

Contents

activity org.ruboto.test_app.SslActivity

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('load net/https', :ui => false) do |activity|
  start = Time.now
  expected = 'net/https loaded OK'
  loop do
    result = activity.run_on_ui_thread { activity.find_view_by_id(42).text.to_s }
    break if result == expected || (Time.now - start > 120)
    sleep 5
  end
  assert_equal expected, result
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruboto-1.0.3 test/activity/ssl_activity_test.rb
ruboto-1.0.2 test/activity/ssl_activity_test.rb
ruboto-1.0.1 test/activity/ssl_activity_test.rb
ruboto-1.0.0 test/activity/ssl_activity_test.rb
ruboto-0.16.0 test/activity/ssl_activity_test.rb
ruboto-0.15.0 test/activity/ssl_activity_test.rb
ruboto-0.14.0 test/activity/ssl_activity_test.rb
ruboto-0.13.0 test/activity/ssl_activity_test.rb
ruboto-0.12.0 test/activity/ssl_activity_test.rb
ruboto-0.13.0.rc.0 test/activity/ssl_activity_test.rb
ruboto-0.12.0.rc.0 test/activity/ssl_activity_test.rb
ruboto-0.11.0 test/activity/ssl_activity_test.rb
ruboto-0.11.0.rc.1 test/activity/ssl_activity_test.rb
ruboto-0.11.0.rc.0 test/activity/ssl_activity_test.rb
ruboto-0.10.2 test/activity/ssl_activity_test.rb
ruboto-0.10.2.rc.0 test/activity/ssl_activity_test.rb