Skip to content

Commit 04a94c9

Browse files
committed
Code format
1 parent a4ddaf6 commit 04a94c9

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

MPChartExample/src/androidTest/java/com/xxmassdeveloper/mpchartexample/PieTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ class PieTest {
3030
@Test
3131
fun piePolyline() {
3232
onView(ViewMatchers.isRoot())
33-
.captureToBitmap()
34-
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}")
33+
.captureToBitmap()
34+
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}")
3535

36-
for(x in 10..50 step 10) {
36+
for (x in 10..50 step 10) {
3737
onView(withId(R.id.seekBarX)).perform(setProgress(x))
3838
onView(ViewMatchers.isRoot())
39-
.captureToBitmap()
40-
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}1-${x}")
39+
.captureToBitmap()
40+
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}1-${x}")
4141
}
4242

43-
for(x in 50..200 step 50) {
43+
for (x in 50..200 step 50) {
4444
onView(withId(R.id.seekBarY)).perform(setProgress(x))
4545
onView(ViewMatchers.isRoot())
4646
.captureToBitmap()

MPChartExample/src/androidTest/java/com/xxmassdeveloper/mpchartexample/StartTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ class StartTest {
4444
@Test
4545
fun smokeTestSimplyStart() {
4646
Espresso.onView(ViewMatchers.isRoot())
47-
.captureToBitmap()
48-
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}")
47+
.captureToBitmap()
48+
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}")
4949

5050
MainActivity.menuItems.forEachIndexed { index, contentItem ->
5151
contentItem.clazz?.let {
5252
println("Intended ${index}-${it.simpleName}")
5353

5454
onData(anything())
55-
.inAdapterView(allOf(withId(R.id.listView1), isCompletelyDisplayed()))
56-
.atPosition(index).perform(click())
55+
.inAdapterView(allOf(withId(R.id.listView1), isCompletelyDisplayed()))
56+
.atPosition(index).perform(click())
5757

5858
Espresso.onView(ViewMatchers.isRoot())
59-
.captureToBitmap()
60-
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-${index}-${it.simpleName}")
59+
.captureToBitmap()
60+
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-${index}-${it.simpleName}")
6161
Intents.intended(hasComponent(it.name))
6262
Espresso.pressBack()
6363
}

MPChartExample/src/androidTest/java/com/xxmassdeveloper/mpchartexample/ViewPagerTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ class ViewPagerTest {
2727
fun smokeTestSimplyStart() {
2828
Thread.sleep(SHORT_DURATION_MS)
2929
onView(ViewMatchers.isRoot())
30-
.captureToBitmap()
31-
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}")
30+
.captureToBitmap()
31+
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}")
3232

3333
repeat(4) {
3434
onView(withId(R.id.pager)).perform(swipeLeft())
3535
Thread.sleep(SHORT_DURATION_MS)
3636
onView(ViewMatchers.isRoot())
37-
.captureToBitmap()
38-
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-${it}")
37+
.captureToBitmap()
38+
.writeToTestStorage("${javaClass.simpleName}_${nameRule.methodName}-${it}")
3939
}
4040
}
4141

0 commit comments

Comments
 (0)