Class mozilla.components.feature.addons.mozilla.components.feature.addons.ui.AddonFilePickerTest
|
100%
successful |
Tests
Test | Duration | Result |
---|---|---|
GIVEN a file picker is not present WHEN launch is called THEN return false | 0.030s | passed |
WHEN an addon is installed successfully THEN remove the temporary file | 0.199s | passed |
WHEN creating an intent from a AddonOpenDocument THEN it contains mime types for zips and xpi files | 0.031s | passed |
WHEN handleUriSelected is called THEN return false | 0.027s | passed |
WHEN launch is called THEN delegate to the activityLauncher | 0.030s | passed |
WHEN registerForResults is called THEN register AddonOpenDocument | 0.092s | passed |
WHEN there is an error during installation THEN remove the temporary file | 0.031s | passed |
Standard output
W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 I [AddonFilePicker] Add-on from file:///data/data/XPIs/addon.xpi installed successfully W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 E [AddonFilePicker] Unable to install add-on from file:///data/data/XPIs/addon.xpi W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 W/OverlayConfig: partition_order.xml does not exist. W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #16 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #160 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #168 W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/addons/build/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #176 E [AddonFilePicker] Unable to find an app to select an XPI file
Standard error
android.content.ActivityNotFoundException at androidx.activity.result.ActivityResultLauncher.launch(ActivityResultLauncher.kt:37) at mozilla.components.feature.addons.ui.AddonFilePicker.launch(AddonFilePicker.kt:41) at mozilla.components.feature.addons.ui.AddonFilePicker.launch(AddonFilePicker.kt:40) at mozilla.components.feature.addons.mozilla.components.feature.addons.ui.AddonFilePickerTest.GIVEN a file picker is not present WHEN launch is called THEN return false(AddonFilePickerTest.kt:78) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:502) at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:285) at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:104) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)