mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
LibWeb/Tests: Add basic tests for {ByteLength,Counting}QueuingStrategy
This commit is contained in:
parent
f86c3ab148
commit
464e428e94
2 changed files with 53 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
======================================
|
||||
CountQueuingStrategy
|
||||
======================================
|
||||
'{"highWaterMark":2}' => 2
|
||||
'{"highWaterMark":-1}' => -1
|
||||
'{"badKey":-1}' => Exception raised of TypeError
|
||||
'{}' => Exception raised of TypeError
|
||||
'"string instead"' => Exception raised of TypeError
|
||||
'{"highWaterMark":"wrongType"}' => NaN
|
||||
'{"highWaterMark":{}}' => NaN
|
||||
======================================
|
||||
ByteLengthQueuingStrategy
|
||||
======================================
|
||||
'{"highWaterMark":2}' => 2
|
||||
'{"highWaterMark":-1}' => -1
|
||||
'{"badKey":-1}' => Exception raised of TypeError
|
||||
'{}' => Exception raised of TypeError
|
||||
'"string instead"' => Exception raised of TypeError
|
||||
'{"highWaterMark":"wrongType"}' => NaN
|
||||
'{"highWaterMark":{}}' => NaN
|
Loading…
Add table
Add a link
Reference in a new issue