mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Add Ansi color change positive test
This commit is contained in:
@@ -1693,6 +1693,15 @@ describe('InputHandler', () => {
|
||||
});
|
||||
});
|
||||
describe('OSC', () => {
|
||||
it('should parse correct Ansi color change data', () => {
|
||||
// this is testing a private method
|
||||
const parseAnsiColorChange = inputHandler['_parseAnsiColorChange'];
|
||||
|
||||
assert.deepEqual(
|
||||
parseAnsiColorChange('19;rgb:a1/b2/c3'),
|
||||
{ colorIndex: 19, red: 0xa1, green: 0xb2, blue: 0xc3 }
|
||||
);
|
||||
}),
|
||||
it('should ignore incorrect Ansi color change data', () => {
|
||||
// this is testing a private method
|
||||
const parseAnsiColorChange = inputHandler['_parseAnsiColorChange'];
|
||||
|
||||
Reference in New Issue
Block a user