Sha256: cf0df29fae5d7a3efa85f8b505ab16c82bbc7b584b4f89e23b72ab9e77b70500

Contents?: true

Size: 467 Bytes

Versions: 8

Compression:

Stored size: 467 Bytes

Contents

activity org.ruboto.test_app.ConstantsActivity

setup do |activity|
  start = Time.now
  loop do
    break if activity.findViewById(42)
    fail 'Text view not found.' if (Time.now - start > 60)
    sleep 0.5
  end
end

test('R inner class constants') do |activity|
  layout = activity.findViewById(android.R.id.content).get_child_at(0)
  layout.child_count.times do |n|
    child = layout.get_child_at(n)
    assert_equal child.tag, child.text, child.hint
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruboto-1.6.1 test/activity/constants_activity_test.rb
ruboto-1.6.0 test/activity/constants_activity_test.rb
ruboto-1.5.0 test/activity/constants_activity_test.rb
ruboto-1.4.1 test/activity/constants_activity_test.rb
ruboto-1.4.0 test/activity/constants_activity_test.rb
ruboto-1.3.1 test/activity/constants_activity_test.rb
ruboto-1.3.0 test/activity/constants_activity_test.rb
ruboto-1.2.0 test/activity/constants_activity_test.rb