Skip to content

Commit 13b7e7a

Browse files
committed
test: remove outdated missing codec test
The test documented old behavior where missing codec didn't throw. Now that W3C spec validation is properly implemented, this test is obsolete and superseded by W3C validation tests.
1 parent e85d769 commit 13b7e7a

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

test/unit/video-encoder-methods.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ describe('VideoEncoder Methods: 6.5', () => {
6161
encoder.close();
6262
});
6363

64-
it('should handle missing codec (implementation-specific)', () => {
65-
const encoder = createEncoder();
66-
// Note: Per W3C spec, should throw TypeError for missing/invalid codec.
67-
// Current native implementation accepts empty codec and attempts to configure.
68-
// This test documents current behavior - it does NOT throw synchronously.
69-
// @ts-expect-error Testing invalid input
70-
encoder.configure({ width: 640, height: 480 });
71-
// Implementation currently goes to configured state with empty codec
72-
// Future improvement: should validate codec and throw TypeError
73-
encoder.close();
74-
});
75-
7664
it('should throw when width is missing', () => {
7765
const encoder = createEncoder();
7866
// Note: Per W3C spec, should throw TypeError for missing width.

0 commit comments

Comments
 (0)