Merge "Suppress tests that are consistently failing..." into nyc-dev
This commit is contained in:
@@ -21,6 +21,7 @@ import static com.android.documentsui.StubProvider.ROOT_1_ID;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
import android.view.KeyEvent;
|
||||
|
||||
import com.android.documentsui.model.RootInfo;
|
||||
@@ -139,6 +140,7 @@ public class FilesActivityUiTest extends ActivityTest<FilesActivity> {
|
||||
}
|
||||
|
||||
// Tests that pressing tab switches focus between the roots and directory listings.
|
||||
@Suppress
|
||||
public void testKeyboard_tab() throws Exception {
|
||||
bots.main.pressKey(KeyEvent.KEYCODE_TAB);
|
||||
bots.roots.assertHasFocus();
|
||||
@@ -147,6 +149,7 @@ public class FilesActivityUiTest extends ActivityTest<FilesActivity> {
|
||||
}
|
||||
|
||||
// Tests that arrow keys do not switch focus away from the dir list.
|
||||
@Suppress
|
||||
public void testKeyboard_arrowsDirList() throws Exception {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
bots.main.pressKey(KeyEvent.KEYCODE_DPAD_LEFT);
|
||||
|
||||
@@ -20,6 +20,7 @@ import static com.android.documentsui.StubProvider.ROOT_0_ID;
|
||||
import static com.android.documentsui.StubProvider.ROOT_1_ID;
|
||||
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
|
||||
@LargeTest
|
||||
public class RootsUiTest extends ActivityTest<FilesActivity> {
|
||||
@@ -44,6 +45,7 @@ public class RootsUiTest extends ActivityTest<FilesActivity> {
|
||||
assertDefaultContentOfTestDir0();
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testRootChanged_ClearSelection() throws Exception {
|
||||
bots.directory.selectDocument(fileName1);
|
||||
bots.main.assertInActionMode(true);
|
||||
|
||||
@@ -20,6 +20,7 @@ import static com.android.documentsui.StubProvider.ROOT_0_ID;
|
||||
import static com.android.documentsui.StubProvider.ROOT_1_ID;
|
||||
|
||||
import android.test.suitebuilder.annotation.LargeTest;
|
||||
import android.test.suitebuilder.annotation.Suppress;
|
||||
|
||||
@LargeTest
|
||||
public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
@@ -28,6 +29,7 @@ public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
super(FilesActivity.class);
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testSearchView_ExpandsOnClick() throws Exception {
|
||||
bots.main.openSearchView();
|
||||
bots.main.assertSearchTextFiledAndIcon(true, false);
|
||||
@@ -41,6 +43,7 @@ public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
bots.main.assertSearchTextFiledAndIcon(false, true);
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testSearchView_ClearsTextOnBack() throws Exception {
|
||||
String query = "file2";
|
||||
bots.main.openSearchView();
|
||||
@@ -51,6 +54,7 @@ public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
bots.main.assertSearchTextFiledAndIcon(false, true);
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testSearch_ResultsFound() throws Exception {
|
||||
initTestFiles();
|
||||
assertDefaultContentOfTestDir0();
|
||||
@@ -68,6 +72,7 @@ public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
bots.main.assertSearchTextField(false, query);
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testSearchResultsFound_ClearsOnBack() throws Exception {
|
||||
initTestFiles();
|
||||
assertDefaultContentOfTestDir0();
|
||||
@@ -82,6 +87,7 @@ public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
assertDefaultContentOfTestDir0();
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testSearch_NoResults() throws Exception {
|
||||
initTestFiles();
|
||||
assertDefaultContentOfTestDir0();
|
||||
@@ -101,6 +107,7 @@ public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
bots.main.assertSearchTextField(false, query);
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testSearchNoResults_ClearsOnBack() throws Exception {
|
||||
initTestFiles();
|
||||
assertDefaultContentOfTestDir0();
|
||||
@@ -116,6 +123,7 @@ public class SearchViewUiTest extends ActivityTest<FilesActivity> {
|
||||
assertDefaultContentOfTestDir0();
|
||||
}
|
||||
|
||||
@Suppress
|
||||
public void testSearchResultsFound_ClearsOnDirectoryChange() throws Exception {
|
||||
initTestFiles();
|
||||
assertDefaultContentOfTestDir0();
|
||||
|
||||
Reference in New Issue
Block a user