mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
fix unit test (test terminal only has 10 cols)
This commit is contained in:
@@ -139,13 +139,13 @@ describe('SerializeAddon', () => {
|
||||
});
|
||||
|
||||
it('basic terminal with html unsafe chars', async () => {
|
||||
await writeP(terminal, ' <script>alert("π = 3.14")</script> ');
|
||||
terminal.select(1, 0, 37);
|
||||
await writeP(terminal, ' <a>π ');
|
||||
terminal.select(1, 0, 7);
|
||||
|
||||
const output = serializeAddon.serializeAsHTML({
|
||||
onlySelection: true
|
||||
});
|
||||
assert.equal((output.match(/<div><span><script>alert("&pi; = 3.14")<\/script><\/span><\/div>/g) || []).length, 1, output);
|
||||
assert.equal((output.match(/<div><span><a>&pi;<\/span><\/div>/g) || []).length, 1, output);
|
||||
});
|
||||
|
||||
it('cells with bold styling', async () => {
|
||||
|
||||
Reference in New Issue
Block a user