mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 11:02:35 +01:00
slightly improved YoutubeSearchEngineTest
This commit is contained in:
parent
7cfdca7a81
commit
cd3f405bff
@ -53,14 +53,15 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
|
||||
}
|
||||
|
||||
public void testItemHasRightDuration() {
|
||||
assertEquals(result.resultList.get(0).duration.contains(":"), true);
|
||||
}
|
||||
assertTrue(result.resultList.get(0).webpage_url,
|
||||
result.resultList.get(0).webpage_url.contains(":")); }
|
||||
|
||||
public void testItemHasRightThumbnail() {
|
||||
assertEquals(result.resultList.get(0).thumbnail_url.contains("https://"), true);
|
||||
}
|
||||
assertTrue(result.resultList.get(0).webpage_url,
|
||||
result.resultList.get(0).webpage_url.contains("https://")); }
|
||||
|
||||
public void testItemHasRightVideoUrl() {
|
||||
assertEquals(result.resultList.get(0).webpage_url.contains("https://"), true);
|
||||
assertTrue(result.resultList.get(0).webpage_url,
|
||||
result.resultList.get(0).webpage_url.contains("https://"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user