Sha256: 424389ac5b25ab1b2fbd69bee65ad69df0bb8c53624f8f89a7df2b1bdc287d98

Contents?: true

Size: 702 Bytes

Versions: 20

Compression:

Stored size: 702 Bytes

Contents

activity org.ruboto.test_app.DirAndFileActivity

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('__FILE__ is set OK') do |activity|
  assert_matches %r{jar:file:/data/app/org.ruboto.test_app-[12].apk!/dir_and_file_activity.rb},
                 activity.find_view_by_id(42).text.to_s
  assert_matches %r{jar:file:/data/app/org.ruboto.test_app-[12].apk!},
                 activity.find_view_by_id(43).text.to_s
  assert_matches %r{file:/data/app/org.ruboto.test_app-[12].apk!/AndroidManifest.xml},
                 activity.find_view_by_id(44).text.to_s
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ruboto-1.2.0 test/activity/dir_and_file_activity_test.rb
ruboto-1.1.2 test/activity/dir_and_file_activity_test.rb
ruboto-1.1.1 test/activity/dir_and_file_activity_test.rb
ruboto-1.1.0 test/activity/dir_and_file_activity_test.rb
ruboto-1.0.3 test/activity/dir_and_file_activity_test.rb
ruboto-1.0.2 test/activity/dir_and_file_activity_test.rb
ruboto-1.0.1 test/activity/dir_and_file_activity_test.rb
ruboto-1.0.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.16.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.15.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.14.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.13.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.12.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.13.0.rc.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.12.0.rc.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.11.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.11.0.rc.1 test/activity/dir_and_file_activity_test.rb
ruboto-0.11.0.rc.0 test/activity/dir_and_file_activity_test.rb
ruboto-0.10.2 test/activity/dir_and_file_activity_test.rb
ruboto-0.10.2.rc.0 test/activity/dir_and_file_activity_test.rb