Revert "Add search bar to SearchActivity."

This reverts commit fac61b71e5.

Bug: 37477506
Change-Id: I1ee66999fbb28b03feb5a51c7146f31a71c1252a
Merged-In: I4a0f0c91c51ff5820b61a596520d80a3337c3466
This commit is contained in:
Andrew Sapperstein
2017-06-06 16:33:13 +00:00
parent fac61b71e5
commit 61353aa4fd
9 changed files with 80 additions and 225 deletions

View File

@@ -28,13 +28,11 @@ import org.junit.runner.RunWith;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.matcher.ViewMatchers.hasFocus;
import static android.support.test.espresso.matcher.ViewMatchers.withClassName;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withTagKey;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.AllOf.allOf;
import com.android.settings.R;
@RunWith(AndroidJUnit4.class)
@SmallTest
@@ -45,7 +43,7 @@ public class SearchFragmentEspressoTest {
@Test
public void test_OpenKeyboardOnSearchLaunch() {
onView(allOf(hasFocus(), withId(R.id.search_view)))
onView(allOf(hasFocus(), withTagKey(SearchFragment.SEARCH_TAG)))
.check(matches(withClassName(containsString(SearchView.class.getName()))));
}
}