From 0b6ba542a880a50e04fe04c9960999230629bc9c Mon Sep 17 00:00:00 2001 From: rk0n Date: Thu, 28 Feb 2019 20:15:35 +0100 Subject: Fix clear clipboard 20 times history (#465) (#487) --- app/src/androidTest/java/com/zeapo/pwdstore/DecryptTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/src/androidTest/java') 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() -- cgit v1.2.3