Sha256: 4a41b333230d081cb4e38fda9f100ac9a9fa287200e8ba68e54486ecf9ec4cf8

Contents?: true

Size: 463 Bytes

Versions: 27

Compression:

Stored size: 463 Bytes

Contents

activity org.ruboto.test_app.JsonActivity

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('json encode decode') do |activity|
  assert_equal 'foo', activity.find_view_by_id(42).text.to_s
  assert_equal '["foo"]', activity.find_view_by_id(43).text.to_s
  assert_equal '"foo"', activity.find_view_by_id(44).text.to_s
end

Version data entries

27 entries across 27 versions & 1 rubygems

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