From 8356226e975f9be5dc0b082ebe5ece9585cc95ea Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 1 Feb 2020 18:02:19 +0100 Subject: Always allow clicking timecodes --- .../antennapod/util/playback/TimelineTest.java | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'app/src/androidTest/java/de/test/antennapod/util/playback/TimelineTest.java') diff --git a/app/src/androidTest/java/de/test/antennapod/util/playback/TimelineTest.java b/app/src/androidTest/java/de/test/antennapod/util/playback/TimelineTest.java index c42695a57..ab049a8e5 100644 --- a/app/src/androidTest/java/de/test/antennapod/util/playback/TimelineTest.java +++ b/app/src/androidTest/java/de/test/antennapod/util/playback/TimelineTest.java @@ -55,7 +55,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStr + " here.

", Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -66,7 +66,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStr + " here.

", Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -77,7 +77,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStr + " here.

", Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -88,7 +88,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStr + " here.

", 11 * 60 * 1000); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -99,7 +99,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStr + " here.

", Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -110,7 +110,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStr + " here.

", 2 * 60 * 1000); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -120,7 +120,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStrings[0] + " here. Hey look another one " + timeStrings[1] + " here!

", 2 * 60 * 60 * 1000); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{ 10 * 60 * 1000 + 12 * 1000, 60 * 60 * 1000 + 10 * 60 * 1000 + 12 * 1000 }, timeStrings); } @@ -132,7 +132,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode " + timeStrings[0] + " here. Hey look another one " + timeStrings[1] + " here!

", 3 * 60 * 60 * 1000); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{ 10 * 60 * 1000 + 12 * 1000, 2 * 60 * 1000 + 12 * 1000 }, timeStrings); } @@ -143,7 +143,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode (" + timeStr + ") here.

", Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -154,7 +154,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode [" + timeStr + "] here.

", Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -165,7 +165,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, "

Some test text with a timecode <" + timeStr + "> here.

", Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } @@ -181,7 +181,7 @@ public class TimelineTest { Playable p = newTestPlayable(null, shownotes.toString(), Integer.MAX_VALUE); Timeline t = new Timeline(context, p); - String res = t.processShownotes(true); + String res = t.processShownotes(); checkLinkCorrect(res, new long[0], new String[0]); } -- cgit v1.2.3