Skip to content

Commit ef6881a

Browse files
committed
reorganize imports
1 parent f16309a commit ef6881a

File tree

2 files changed

+8
-7
lines changed
  • ui/espresso/ScreenshotSample/app/src
    • androidTest/java/com/example/android/testing/espresso/screenshotsample
    • main/java/com/example/android/testing/espresso/screenshotsample

2 files changed

+8
-7
lines changed

ui/espresso/ScreenshotSample/app/src/androidTest/java/com/example/android/testing/espresso/screenshotsample/ScreenshotTest.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
package com.example.android.testing.espresso.screenshotsample
22

3-
4-
//import androidx.test.core.view.captureToBitmap
5-
63
import androidx.test.core.app.takeScreenshot
74
import androidx.test.core.graphics.writeToTestStorage
85
import androidx.test.espresso.Espresso.onView
9-
import androidx.test.espresso.matcher.ViewMatchers
106
import androidx.test.espresso.matcher.ViewMatchers.isRoot
117
import androidx.test.espresso.matcher.ViewMatchers.withText
128
import androidx.test.espresso.screenshot.captureToBitmap
@@ -20,6 +16,13 @@ import java.io.IOException
2016

2117
/*
2218
* Illustrates usage of APIs to capture a bitmap from view and saving it to test storage.
19+
*
20+
* The exact path will vary based on android API version, but the saved files can be retrieved via
21+
* Device File Explorer at a path like
22+
* /storage/emulated/0/googletest/test_outputfiles
23+
*
24+
* A future Android Gradle Plugin version should auto-retrieve these files from the device onto the
25+
* host.
2326
*/
2427
@RunWith(AndroidJUnit4::class)
2528
class ScreenshotTest {
@@ -64,5 +67,3 @@ class ScreenshotTest {
6467
.writeToTestStorage(nameRule.methodName)
6568
}
6669
}
67-
68-

ui/espresso/ScreenshotSample/app/src/main/java/com/example/android/testing/espresso/screenshotsample/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ class MainActivity : AppCompatActivity() {
1111
super.onCreate(savedInstanceState)
1212
setContentView(R.layout.activity_main)
1313
}
14-
}
14+
}

0 commit comments

Comments
 (0)