test cases for payload limits

This commit is contained in:
Jörg Breitbart
2019-07-26 17:35:37 +02:00
parent a9b2728c07
commit bffa78585e
6 changed files with 73 additions and 11 deletions
+2 -2
View File
@@ -524,7 +524,7 @@ declare module 'xterm' {
* There is currently no way to intercept smaller data chunks, those will be stored up
* until the sequence is finished. Since DCS sequences are not limited by the amount
* of data this might impose a problem for big payloads. Currently xterm.js limits
* DCS payload to 50 MB which should give enough room for most use cases.
* DCS payload to 10 MB which should give enough room for most use cases.
* The function gets numerical parameter and the data as arguments.
* Return true if the sequence was handled; false if
* we should try a previous handler (set by addDcsHandler or setDcsHandler).
@@ -554,7 +554,7 @@ declare module 'xterm' {
* There is currently no way to intercept smaller data chunks, those will be stored up
* until the sequence is finished. Since OSC sequences are not limited by the amount
* of data this might impose a problem for big payloads. Currently xterm.js limits
* OSC payload to 50 MB which should give enough room for most use cases.
* OSC payload to 10 MB which should give enough room for most use cases.
* The callback is called with OSC data string. Return true if the sequence was handled;
* false if we should try a previous handler (set by addOscHandler or
* setOscHandler). The most recently-added handler is tried first.