Sha256: 167a889e084e786d1a136afbfff211c0c43a00a3b7a746c311cfda4afb2c1c82
Contents?: true
Size: 982 Bytes
Versions: 3
Compression:
Stored size: 982 Bytes
Contents
activity org.ruboto.test_app.StackActivity 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('stack depth') do |activity| os_offset = {13 => 1}[android.os.Build::VERSION::SDK_INT].to_i jruby_offset = { '1.5.6' => [-2, -5, -6, -8], }[org.jruby.runtime.Constants::VERSION] || [0,0,0,0] version_message ="ANDROID: #{android.os.Build::VERSION::SDK_INT}, JRuby: #{org.jruby.runtime.Constants::VERSION}" assert_equal 44 + os_offset + jruby_offset[0], activity.find_view_by_id(42).text.to_i, version_message assert_equal 68 + os_offset + jruby_offset[1], activity.find_view_by_id(43).text.to_i, version_message assert_equal 77 + os_offset + jruby_offset[2], activity.find_view_by_id(44).text.to_i, version_message assert_equal 96 + os_offset + jruby_offset[3], activity.find_view_by_id(45).text.to_i, version_message end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ruboto-0.5.2 | test/activity/stack_activity_test.rb |
ruboto-core-0.5.1 | test/activity/stack_activity_test.rb |
ruboto-core-0.4.1.rc.4 | test/activity/stack_activity_test.rb |