Skip to content

Commit a6aad93

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "[DO NOT MERGE]Skip the test DocumentsUI with UiAutomator on Wear." into android13-tests-dev
2 parents bda9110 + e90ba19 commit a6aad93

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/app/src/android/app/cts/DownloadManagerTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import static android.content.pm.PackageManager.PERMISSION_DENIED;
2020
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
2121
import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
22+
import static android.content.pm.PackageManager.FEATURE_WATCH;
2223

2324
import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
2425

@@ -728,9 +729,9 @@ public void testDownload_mediaScanned() throws Exception {
728729
public void testDownload_onMediaStoreDownloadsDeleted() throws Exception {
729730
final PackageManager pm = mContext.getPackageManager();
730731

731-
// skip this test for automotive devices which uses FrameworkPackageStubs for
732+
// skip this test for automotive and wearable devices which uses FrameworkPackageStubs for
732733
// a fake DocumentsUI package.
733-
assumeFalse(pm.hasSystemFeature(FEATURE_AUTOMOTIVE));
734+
assumeFalse(pm.hasSystemFeature(FEATURE_AUTOMOTIVE) || pm.hasSystemFeature(FEATURE_WATCH));
734735

735736
// setup for activity
736737
GetResultActivity activity = setUpForActivity();

0 commit comments

Comments
 (0)