aboutsummaryrefslogtreecommitdiff
path: root/app/src/androidTest/java
diff options
context:
space:
mode:
authorrk0n <rk0n@gmx.de>2019-02-28 20:15:35 +0100
committerMohamed Zenadi <zeapo@users.noreply.github.com>2019-02-28 20:15:35 +0100
commit0b6ba542a880a50e04fe04c9960999230629bc9c (patch)
treeec7bfc1483449ee6f8917160d881febdb3753651 /app/src/androidTest/java
parent88c84e44006dca2f7dbc44ee69d72202bd0e54d0 (diff)
Fix clear clipboard 20 times history (#465) (#487)
Diffstat (limited to 'app/src/androidTest/java')
-rw-r--r--app/src/androidTest/java/com/zeapo/pwdstore/DecryptTest.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/androidTest/java/com/zeapo/pwdstore/DecryptTest.kt b/app/src/androidTest/java/com/zeapo/pwdstore/DecryptTest.kt
index 98921d17..9dfd5f04 100644
--- a/app/src/androidTest/java/com/zeapo/pwdstore/DecryptTest.kt
+++ b/app/src/androidTest/java/com/zeapo/pwdstore/DecryptTest.kt
@@ -116,7 +116,9 @@ class DecryptTest {
SystemClock.sleep(4000)
// The clipboard should be cleared!!
- assertEquals("", clipboard.primaryClip.getItemAt(0).text)
+ for(i in 0..clipboard.primaryClip.itemCount) {
+ assertEquals("", clipboard.primaryClip.getItemAt(i).text)
+ }
// set back the timer
activity.settings.edit().putString("general_show_time", showTime.toString()).commit()