patch for working perf test and API test injection
This commit is contained in:
@@ -8,6 +8,8 @@ import { perfContext, before, ThroughputRuntimeCase } from 'xterm-benchmark';
|
||||
import { spawn } from 'node-pty';
|
||||
import { Utf8ToUtf32, stringFromCodePoint } from 'common/input/TextDecoder';
|
||||
import { Terminal } from 'browser/Terminal';
|
||||
import { UnicodeGraphemesAddon } from 'UnicodeGraphemesAddon';
|
||||
|
||||
|
||||
perfContext('Terminal: ls -lR /usr/lib', () => {
|
||||
let content = '';
|
||||
@@ -48,6 +50,8 @@ perfContext('Terminal: ls -lR /usr/lib', () => {
|
||||
let terminal: Terminal;
|
||||
before(() => {
|
||||
terminal = new Terminal({ cols: 80, rows: 25, scrollback: 1000 });
|
||||
const uga = new UnicodeGraphemesAddon();
|
||||
(terminal as any).loadAddon(uga);
|
||||
});
|
||||
new ThroughputRuntimeCase('', async () => {
|
||||
await new Promise<void>(res => terminal.write(content, res));
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
"paths": {
|
||||
"common/*": [ "../../src/common/*" ],
|
||||
"browser/*": [ "../../src/browser/*" ],
|
||||
"Terminal": ["../../src/Terminal"]
|
||||
"Terminal": ["../../src/Terminal"],
|
||||
"UnicodeGraphemesAddon": ["../../addons/xterm-addon-unicode-graphemes/src/UnicodeGraphemesAddon"]
|
||||
},
|
||||
},
|
||||
"include": [
|
||||
|
||||
Reference in New Issue
Block a user