diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-12-24 18:02:04 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-13 09:14:09 +0100 |
commit | b7085c713220c9c5a96c9bb77330c2ba6ae9274e (patch) | |
tree | a2cefbd1742d5f2ba48f76759f3450171dc224f8 /server/tests/api | |
parent | 7185dab3ff509cec9f03a15d826625b5a1bd0ada (diff) | |
download | PeerTube-b7085c713220c9c5a96c9bb77330c2ba6ae9274e.tar.gz PeerTube-b7085c713220c9c5a96c9bb77330c2ba6ae9274e.tar.zst PeerTube-b7085c713220c9c5a96c9bb77330c2ba6ae9274e.zip |
add support for 1440p (Quad HD/QHD/WQHD) videos
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/check-params/config.ts | 2 | ||||
-rw-r--r-- | server/tests/api/live/live-constraints.ts | 1 | ||||
-rw-r--r-- | server/tests/api/live/live-permanent.ts | 2 | ||||
-rw-r--r-- | server/tests/api/live/live-save-replay.ts | 1 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 4 | ||||
-rw-r--r-- | server/tests/api/server/stats.ts | 1 | ||||
-rw-r--r-- | server/tests/api/videos/audio-only.ts | 1 | ||||
-rw-r--r-- | server/tests/api/videos/video-hls.ts | 1 |
8 files changed, 13 insertions, 0 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index fab440fc5..e36cdeab2 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -92,6 +92,7 @@ describe('Test config API validators', function () { | |||
92 | '480p': true, | 92 | '480p': true, |
93 | '720p': false, | 93 | '720p': false, |
94 | '1080p': false, | 94 | '1080p': false, |
95 | '1440p': false, | ||
95 | '2160p': false | 96 | '2160p': false |
96 | }, | 97 | }, |
97 | webtorrent: { | 98 | webtorrent: { |
@@ -118,6 +119,7 @@ describe('Test config API validators', function () { | |||
118 | '480p': true, | 119 | '480p': true, |
119 | '720p': true, | 120 | '720p': true, |
120 | '1080p': true, | 121 | '1080p': true, |
122 | '1440p': true, | ||
121 | '2160p': true | 123 | '2160p': true |
122 | } | 124 | } |
123 | } | 125 | } |
diff --git a/server/tests/api/live/live-constraints.ts b/server/tests/api/live/live-constraints.ts index 257673b66..1c60a7c76 100644 --- a/server/tests/api/live/live-constraints.ts +++ b/server/tests/api/live/live-constraints.ts | |||
@@ -179,6 +179,7 @@ describe('Test live constraints', function () { | |||
179 | '480p': true, | 179 | '480p': true, |
180 | '720p': true, | 180 | '720p': true, |
181 | '1080p': true, | 181 | '1080p': true, |
182 | '1440p': true, | ||
182 | '2160p': true | 183 | '2160p': true |
183 | } | 184 | } |
184 | } | 185 | } |
diff --git a/server/tests/api/live/live-permanent.ts b/server/tests/api/live/live-permanent.ts index 1128e993c..a5bda009f 100644 --- a/server/tests/api/live/live-permanent.ts +++ b/server/tests/api/live/live-permanent.ts | |||
@@ -75,6 +75,7 @@ describe('Permenant live', function () { | |||
75 | '480p': true, | 75 | '480p': true, |
76 | '720p': true, | 76 | '720p': true, |
77 | '1080p': true, | 77 | '1080p': true, |
78 | '1440p': true, | ||
78 | '2160p': true | 79 | '2160p': true |
79 | } | 80 | } |
80 | } | 81 | } |
@@ -164,6 +165,7 @@ describe('Permenant live', function () { | |||
164 | '480p': false, | 165 | '480p': false, |
165 | '720p': false, | 166 | '720p': false, |
166 | '1080p': false, | 167 | '1080p': false, |
168 | '1440p': false, | ||
167 | '2160p': false | 169 | '2160p': false |
168 | } | 170 | } |
169 | } | 171 | } |
diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts index 35fe4e7bd..757e11845 100644 --- a/server/tests/api/live/live-save-replay.ts +++ b/server/tests/api/live/live-save-replay.ts | |||
@@ -99,6 +99,7 @@ describe('Save replay setting', function () { | |||
99 | '480p': true, | 99 | '480p': true, |
100 | '720p': true, | 100 | '720p': true, |
101 | '1080p': true, | 101 | '1080p': true, |
102 | '1440p': true, | ||
102 | '2160p': true | 103 | '2160p': true |
103 | } | 104 | } |
104 | } | 105 | } |
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index bfaad3688..af25f4800 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -75,6 +75,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) { | |||
75 | expect(data.transcoding.resolutions['480p']).to.be.true | 75 | expect(data.transcoding.resolutions['480p']).to.be.true |
76 | expect(data.transcoding.resolutions['720p']).to.be.true | 76 | expect(data.transcoding.resolutions['720p']).to.be.true |
77 | expect(data.transcoding.resolutions['1080p']).to.be.true | 77 | expect(data.transcoding.resolutions['1080p']).to.be.true |
78 | expect(data.transcoding.resolutions['1440p']).to.be.true | ||
78 | expect(data.transcoding.resolutions['2160p']).to.be.true | 79 | expect(data.transcoding.resolutions['2160p']).to.be.true |
79 | expect(data.transcoding.webtorrent.enabled).to.be.true | 80 | expect(data.transcoding.webtorrent.enabled).to.be.true |
80 | expect(data.transcoding.hls.enabled).to.be.true | 81 | expect(data.transcoding.hls.enabled).to.be.true |
@@ -91,6 +92,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) { | |||
91 | expect(data.live.transcoding.resolutions['480p']).to.be.false | 92 | expect(data.live.transcoding.resolutions['480p']).to.be.false |
92 | expect(data.live.transcoding.resolutions['720p']).to.be.false | 93 | expect(data.live.transcoding.resolutions['720p']).to.be.false |
93 | expect(data.live.transcoding.resolutions['1080p']).to.be.false | 94 | expect(data.live.transcoding.resolutions['1080p']).to.be.false |
95 | expect(data.live.transcoding.resolutions['1440p']).to.be.false | ||
94 | expect(data.live.transcoding.resolutions['2160p']).to.be.false | 96 | expect(data.live.transcoding.resolutions['2160p']).to.be.false |
95 | 97 | ||
96 | expect(data.import.videos.http.enabled).to.be.true | 98 | expect(data.import.videos.http.enabled).to.be.true |
@@ -322,6 +324,7 @@ describe('Test config', function () { | |||
322 | '480p': true, | 324 | '480p': true, |
323 | '720p': false, | 325 | '720p': false, |
324 | '1080p': false, | 326 | '1080p': false, |
327 | '1440p': false, | ||
325 | '2160p': false | 328 | '2160p': false |
326 | }, | 329 | }, |
327 | webtorrent: { | 330 | webtorrent: { |
@@ -346,6 +349,7 @@ describe('Test config', function () { | |||
346 | '480p': true, | 349 | '480p': true, |
347 | '720p': true, | 350 | '720p': true, |
348 | '1080p': true, | 351 | '1080p': true, |
352 | '1440p': true, | ||
349 | '2160p': true | 353 | '2160p': true |
350 | } | 354 | } |
351 | } | 355 | } |
diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts index 6fbf32186..82065e770 100644 --- a/server/tests/api/server/stats.ts +++ b/server/tests/api/server/stats.ts | |||
@@ -153,6 +153,7 @@ describe('Test stats (excluding redundancy)', function () { | |||
153 | '480p': false, | 153 | '480p': false, |
154 | '720p': false, | 154 | '720p': false, |
155 | '1080p': false, | 155 | '1080p': false, |
156 | '1440p': false, | ||
156 | '2160p': false | 157 | '2160p': false |
157 | } | 158 | } |
158 | } | 159 | } |
diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/videos/audio-only.ts index 294a00112..7ddbd5cd9 100644 --- a/server/tests/api/videos/audio-only.ts +++ b/server/tests/api/videos/audio-only.ts | |||
@@ -36,6 +36,7 @@ describe('Test audio only video transcoding', function () { | |||
36 | '480p': false, | 36 | '480p': false, |
37 | '720p': false, | 37 | '720p': false, |
38 | '1080p': false, | 38 | '1080p': false, |
39 | '1440p': false, | ||
39 | '2160p': false | 40 | '2160p': false |
40 | }, | 41 | }, |
41 | hls: { | 42 | hls: { |
diff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/videos/video-hls.ts index f3dbbb114..d1720d0d9 100644 --- a/server/tests/api/videos/video-hls.ts +++ b/server/tests/api/videos/video-hls.ts | |||
@@ -202,6 +202,7 @@ describe('Test HLS videos', function () { | |||
202 | '480p': true, | 202 | '480p': true, |
203 | '720p': true, | 203 | '720p': true, |
204 | '1080p': true, | 204 | '1080p': true, |
205 | '1440p': true, | ||
205 | '2160p': true | 206 | '2160p': true |
206 | }, | 207 | }, |
207 | hls: { | 208 | hls: { |