File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed
MPChartExample/src/androidTest/java/com/xxmassdeveloper/mpchartexample Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff 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()
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments