diff options
author | Nathan Mascitelli <mascitelli.nathan@gmail.com> | 2019-02-12 20:53:17 -0500 |
---|---|---|
committer | Nathan Mascitelli <mascitelli.nathan@gmail.com> | 2019-02-12 20:53:17 -0500 |
commit | c49e98b5462c9511dffe250a94b17be637884c49 (patch) | |
tree | 696b75915fb55680cade327c4594d1c0b2fee7af /app/src/androidTest/java/de/test/antennapod/util | |
parent | 39b9df50642dae9ac4129f22721093a6ce43148b (diff) | |
download | AntennaPod-c49e98b5462c9511dffe250a94b17be637884c49.zip |
Handle more then 23 hours
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/util')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/util/playback/TimelineTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
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 dcec1c61f..157773595 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 @@ -50,6 +50,16 @@ public class TimelineTest extends InstrumentationTestCase { checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); } + public void testProcessShownotesAddTimecodeHHMMSSMoreThen24HoursNoChapters() throws Exception { + final String timeStr = "25:00:00"; + final long time = 25 * 60 * 60 * 1000; + + Playable p = newTestPlayable(null, "<p> Some test text with a timecode " + timeStr + " here.</p>", Integer.MAX_VALUE); + Timeline t = new Timeline(context, p); + String res = t.processShownotes(true); + checkLinkCorrect(res, new long[]{time}, new String[]{timeStr}); + } + public void testProcessShownotesAddTimecodeHHMMNoChapters() throws Exception { final String timeStr = "10:11"; final long time = 3600 * 1000 * 10 + 60 * 1000 * 11; |