Skip to content

Commit

Permalink
test: add test cases for unsupported frames
Browse files Browse the repository at this point in the history
  • Loading branch information
eidoriantan committed Feb 11, 2024
1 parent dada4b9 commit a7e5ab8
Show file tree
Hide file tree
Showing 2 changed files with 221 additions and 157 deletions.
17 changes: 17 additions & 0 deletions test/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,20 @@ exports.bytes = new Uint8Array([
50, 48, 50, 48,
67, 79, 77, 77, 69, 78, 84, ...new Array(22).fill(0), 1, 12
])

exports.bytesUnsupported = new Uint8Array([
73, 68, 51, 3, 0, 0, 0, 0, 0, 57,
84, 73, 84, 50, 0, 0, 0, 15, 0, 0,
1, 255, 254, 116, 0, 105, 0, 116, 0, 108, 0, 101, 0, 0, 0,
84, 68, 82, 67, 0, 0, 0, 6, 0, 0,
0, 50, 48, 50, 52, 0,
84, 89, 69, 82, 0, 0, 0, 6, 0, 0,
0, 50, 48, 50, 52, 0,
255, 251, 224, 0, 0, 0, 0, 0, 170, 170, 170, 170, 170, 170,
84, 65, 71,
84, 73, 84, 76, 69, ...new Array(25).fill(0),
65, 82, 84, 73, 83, 84, ...new Array(24).fill(0),
65, 76, 66, 85, 77, ...new Array(25).fill(0),
50, 48, 50, 48,
67, 79, 77, 77, 69, 78, 84, ...new Array(22).fill(0), 1, 12
])
Loading

0 comments on commit a7e5ab8

Please sign in to comment.