test/minimal_app_test.rb in ruboto-1.1.2 vs test/minimal_app_test.rb in ruboto-1.2.0

- old
+ new

@@ -10,31 +10,33 @@ def teardown cleanup_app end - # APK was 4.4MB. JRuby: 1.7.4, ANDROID_TARGET: 10 - # APK was 4.3MB. JRuby: 1.7.4, ANDROID_TARGET: 16 - # APK was 4.3MB. JRuby: 1.7.5, ANDROID_TARGET: 10 - # APK was 4.2MB. JRuby: 1.7.5, ANDROID_TARGET: 15 - # APK was 4.3MB. JRuby: 1.7.5, ANDROID_TARGET: 16 - # APK was 8.4MB. JRuby: 1.7.8, ANDROID_TARGET: 10 - # APK was 4.3MB. JRuby: 1.7.8, ANDROID_TARGET: 16 + # APK was 4.4MB. JRuby: 1.7.4, ANDROID_TARGET: 10 + # APK was 4.3MB. JRuby: 1.7.4, ANDROID_TARGET: 16 + # APK was 4.3MB. JRuby: 1.7.5, ANDROID_TARGET: 10 + # APK was 4.2MB. JRuby: 1.7.5, ANDROID_TARGET: 15 + # APK was 4.3MB. JRuby: 1.7.5, ANDROID_TARGET: 16 + # APK was 8.4MB. JRuby: 1.7.8, ANDROID_TARGET: 10 + # APK was 4.3MB. JRuby: 1.7.8, ANDROID_TARGET: 16 # APK was 4.4MB. JRuby: 1.7.12, ANDROID_TARGET: 19 + # APK was 4.4MB. JRuby: 1.7.14.SNAPSHOT, ANDROID_TARGET: 19 # APK was 4.2MB. JRuby: 9000.dev, ANDROID_TARGET: 10 # APK was 4.2MB. JRuby: 9000.dev, ANDROID_TARGET: 15 - # APK was 4.5MB. JRuby: 9000.dev, ANDROID_TARGET: 16 + # APK was 4.6MB. JRuby: 9000.dev, ANDROID_TARGET: 16 def test_minimal_apk_is_within_limits apk_size = BigDecimal(File.size("#{APP_DIR}/bin/RubotoTestApp-debug.apk").to_s) / (1024 * 1024) upper_limit = { '1.7.4' => 4.4, '1.7.8' => 4.3, '1.7.9' => 4.3, '1.7.10' => 4.4, '1.7.11' => 4.4, '1.7.12' => 4.4, - '9000.dev' => 4.5, - }[JRUBY_JARS_VERSION.to_s] || 4.3 + '1.7.14.dev' => 4.4, + '9000.dev' => 4.6, + }[JRUBY_JARS_VERSION.to_s] || 4.4 lower_limit = upper_limit * 0.9 version_message ="JRuby: #{JRUBY_JARS_VERSION}, ANDROID_TARGET: #{ANDROID_TARGET}" assert apk_size <= upper_limit, "APK was larger than #{'%.1f' % upper_limit}MB: #{'%.1f' % apk_size.ceil(1)}MB. #{version_message}" assert apk_size >= lower_limit, "APK was smaller than #{'%.1f' % lower_limit}MB: #{'%.1f' % apk_size.floor(1)}MB. You should lower the limit. #{version_message}" end