Skip to content

Commit

Permalink
Convert sample app's screenshot tests to AndroidX
Browse files Browse the repository at this point in the history
Summary: Everything else was converted, somehow missed these.

Reviewed By: sjkirby

Differential Revision: D15754330

fbshipit-source-id: e0d05978d5ae456e2e294f72e56ece12dcaf9dce
  • Loading branch information
xiphirx authored and facebook-github-bot committed Jun 11, 2019
1 parent 4e054b0 commit f62c437
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
package com.facebook.testing.screenshot.sample;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.view.LayoutInflater;
import androidx.test.platform.app.InstrumentationRegistry;
import com.facebook.litho.LithoView;
import com.facebook.testing.screenshot.Screenshot;
import com.facebook.testing.screenshot.ViewHelpers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
package com.facebook.testing.screenshot.sample;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.view.LayoutInflater;
import androidx.test.platform.app.InstrumentationRegistry;
import com.facebook.litho.LithoView;
import com.facebook.testing.screenshot.Screenshot;
import com.facebook.testing.screenshot.ViewHelpers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

package com.facebook.testing.screenshot.sample

import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu
import android.support.test.espresso.action.ViewActions.click
import android.support.test.espresso.matcher.ViewMatchers.isDisplayed
import android.support.test.espresso.matcher.ViewMatchers.withId
import android.support.test.rule.ActivityTestRule

import android.view.View
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.rule.ActivityTestRule
import com.facebook.testing.screenshot.Screenshot
import org.hamcrest.core.AllOf.allOf
import org.junit.Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
package com.facebook.testing.screenshot.sample

import android.os.Bundle
import android.support.test.runner.AndroidJUnitRunner
import androidx.test.runner.AndroidJUnitRunner
import com.facebook.litho.config.ComponentsConfiguration
import com.facebook.testing.screenshot.ScreenshotRunner
import com.facebook.testing.screenshot.layouthierarchy.LayoutHierarchyDumper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

package com.facebook.testing.screenshot.sample

import android.support.test.espresso.matcher.ViewMatchers.isDisplayed

import android.support.test.espresso.UiController
import android.support.test.espresso.ViewAction
import android.view.View
import androidx.test.espresso.UiController
import androidx.test.espresso.ViewAction
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import com.facebook.testing.screenshot.Screenshot
import org.hamcrest.Matcher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

package com.facebook.testing.screenshot.sample

import android.support.test.InstrumentationRegistry
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.test.platform.app.InstrumentationRegistry
import com.facebook.testing.screenshot.Screenshot
import com.facebook.testing.screenshot.ViewHelpers
import org.junit.Test
Expand Down

0 comments on commit f62c437

Please sign in to comment.