mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Add more MediaStream resolution tests, sort them by width
This commit is contained in:
parent
f8ea4577ab
commit
d694a6c09a
1 changed files with 20 additions and 11 deletions
|
@ -117,25 +117,29 @@ namespace Jellyfin.Model.Tests.Entities
|
|||
[InlineData(640, 360, true, "360i")]
|
||||
[InlineData(854, 480, false, "480p")]
|
||||
[InlineData(854, 480, true, "480i")]
|
||||
[InlineData(960, 544, false, "540p")]
|
||||
[InlineData(960, 544, true, "540i")]
|
||||
[InlineData(720, 576, false, "576p")]
|
||||
[InlineData(720, 576, true, "576i")]
|
||||
[InlineData(960, 540, false, "540p")]
|
||||
[InlineData(960, 540, true, "540i")]
|
||||
[InlineData(1024, 576, false, "576p")]
|
||||
[InlineData(1024, 576, true, "576i")]
|
||||
[InlineData(1280, 720, false, "720p")]
|
||||
[InlineData(1280, 720, true, "720i")]
|
||||
[InlineData(1920, 1080, false, "1080p")]
|
||||
[InlineData(1920, 1080, true, "1080i")]
|
||||
[InlineData(2560, 1080, false, "1080p")]
|
||||
[InlineData(2560, 1080, true, "1080i")]
|
||||
[InlineData(4096, 3072, false, "4K")]
|
||||
[InlineData(8192, 6144, false, "8K")]
|
||||
[InlineData(512, 384, false, "480p")]
|
||||
[InlineData(576, 336, false, "360p")]
|
||||
[InlineData(576, 336, true, "360i")]
|
||||
[InlineData(624, 352, false, "360p")]
|
||||
[InlineData(640, 352, false, "360p")]
|
||||
[InlineData(512, 384, false, "480p")]
|
||||
[InlineData(640, 480, false, "480p")]
|
||||
[InlineData(704, 396, false, "480p")]
|
||||
[InlineData(720, 404, false, "480p")]
|
||||
[InlineData(720, 480, false, "480p")]
|
||||
[InlineData(640, 480, false, "480p")]
|
||||
[InlineData(720, 576, false, "576p")]
|
||||
[InlineData(768, 576, false, "576p")]
|
||||
[InlineData(960, 544, false, "540p")]
|
||||
[InlineData(960, 544, true, "540i")]
|
||||
[InlineData(960, 720, false, "720p")]
|
||||
[InlineData(1280, 528, false, "720p")]
|
||||
[InlineData(1280, 532, false, "720p")]
|
||||
|
@ -147,6 +151,11 @@ namespace Jellyfin.Model.Tests.Entities
|
|||
[InlineData(1280, 696, false, "720p")]
|
||||
[InlineData(1280, 716, false, "720p")]
|
||||
[InlineData(1280, 718, false, "720p")]
|
||||
[InlineData(1920, 1080, false, "1080p")]
|
||||
[InlineData(1440, 1070, false, "1080p")]
|
||||
[InlineData(1440, 1072, false, "1080p")]
|
||||
[InlineData(1440, 1080, false, "1080p")]
|
||||
[InlineData(1440, 1440, false, "1080p")]
|
||||
[InlineData(1912, 792, false, "1080p")]
|
||||
[InlineData(1916, 1076, false, "1080p")]
|
||||
[InlineData(1918, 1080, false, "1080p")]
|
||||
|
@ -160,16 +169,16 @@ namespace Jellyfin.Model.Tests.Entities
|
|||
[InlineData(1920, 960, false, "1080p")]
|
||||
[InlineData(1920, 1024, false, "1080p")]
|
||||
[InlineData(1920, 1040, false, "1080p")]
|
||||
[InlineData(1920, 1070, false, "1080p")]
|
||||
[InlineData(1920, 1072, false, "1080p")]
|
||||
[InlineData(1440, 1072, false, "1080p")]
|
||||
[InlineData(1440, 1080, false, "1080p")]
|
||||
[InlineData(1440, 1440, false, "1080p")]
|
||||
[InlineData(1920, 1440, false, "1080p")]
|
||||
[InlineData(3840, 1600, false, "4K")]
|
||||
[InlineData(3840, 1606, false, "4K")]
|
||||
[InlineData(3840, 1608, false, "4K")]
|
||||
[InlineData(3840, 2160, false, "4K")]
|
||||
[InlineData(4090, 3070, false, "4K")]
|
||||
[InlineData(7680, 4320, false, "8K")]
|
||||
[InlineData(8190, 6140, false, "8K")]
|
||||
public void GetResolutionText_Valid(int? width, int? height, bool interlaced, string expected)
|
||||
{
|
||||
var mediaStream = new MediaStream()
|
||||
|
|
Loading…
Reference in a new issue