|
1 | 1 | import {expect, test} from 'bun:test'; |
2 | 2 | import {getMissedFramesforCodec} from './test-utils'; |
3 | 3 |
|
4 | | -test( |
5 | | - 'should render correct frames from embedded videos - WebM onthread', |
6 | | - async () => { |
7 | | - const missedFrames = await getMissedFramesforCodec('webm', 'normal'); |
8 | | - expect(missedFrames).toBeLessThanOrEqual(8); |
9 | | - }, |
10 | | - { |
11 | | - timeout: 60000, |
12 | | - }, |
13 | | -); |
| 4 | +test('should render correct frames from embedded videos - WebM onthread', async () => { |
| 5 | + const missedFrames = await getMissedFramesforCodec('webm', 'normal'); |
| 6 | + expect(missedFrames).toBeLessThanOrEqual(8); |
| 7 | +}); |
14 | 8 |
|
15 | | -test( |
16 | | - 'should render correct frames from embedded videos - WebM offthread', |
17 | | - async () => { |
18 | | - const missedFrames = await getMissedFramesforCodec('webm', 'offthread'); |
19 | | - expect(missedFrames).toBe(0); |
20 | | - }, |
21 | | - { |
22 | | - timeout: 60000, |
23 | | - }, |
24 | | -); |
| 9 | +test('should render correct frames from embedded videos - WebM offthread', async () => { |
| 10 | + const missedFrames = await getMissedFramesforCodec('webm', 'offthread'); |
| 11 | + expect(missedFrames).toBe(0); |
| 12 | +}); |
25 | 13 |
|
26 | | -test( |
27 | | - 'should render correct frames from embedded videos - MP4 onthread', |
28 | | - async () => { |
29 | | - const missedFrames = await getMissedFramesforCodec('mp4', 'normal'); |
30 | | - expect(missedFrames).toBeLessThanOrEqual(8); |
31 | | - }, |
32 | | - { |
33 | | - timeout: 60000, |
34 | | - }, |
35 | | -); |
| 14 | +test('should render correct frames from embedded videos - MP4 onthread', async () => { |
| 15 | + const missedFrames = await getMissedFramesforCodec('mp4', 'normal'); |
| 16 | + expect(missedFrames).toBeLessThanOrEqual(8); |
| 17 | +}); |
36 | 18 |
|
37 | | -test( |
38 | | - 'should render correct frames from embedded videos - MP4 offthread', |
39 | | - async () => { |
40 | | - const missedFrames = await getMissedFramesforCodec('mp4', 'offthread'); |
41 | | - expect(missedFrames).toBe(0); |
42 | | - }, |
43 | | - { |
44 | | - timeout: 60000, |
45 | | - }, |
46 | | -); |
| 19 | +test('should render correct frames from embedded videos - MP4 offthread', async () => { |
| 20 | + const missedFrames = await getMissedFramesforCodec('mp4', 'offthread'); |
| 21 | + expect(missedFrames).toBe(0); |
| 22 | +}); |
0 commit comments