Remove unneeded manual headless test

This commit is contained in:
Daniel Imms
2021-08-12 06:11:30 -07:00
parent f8066d6dee
commit f45f5b4b9f
3 changed files with 0 additions and 32 deletions
-9
View File
@@ -1,9 +0,0 @@
This is a basic manual test for 'xterm-headless':
```sh
# From repo root
yarn build
yarn package-headless
cd headless/test
node index.js
```
-12
View File
@@ -1,12 +0,0 @@
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const Terminal = require('../headless/lib-headless/xterm.js').Terminal;
console.log('Creating xterm-headless terminal...');
const terminal = new Terminal();
console.log('Writing to terminal...')
terminal.write('foo \x1b[1;31mbar\x1b[0m baz', () => {
const bufferLine = terminal.buffer.normal.getLine(terminal.buffer.normal.cursorY);
const contents = bufferLine.translateToString(true);
console.log(`Contents of terminal active buffer are: ${contents}`); // foo bar baz
});
-11
View File
@@ -1,11 +0,0 @@
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": ""
}