Add typings test setup
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"files": [
|
||||
"typing-tests.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/// <reference path="../../typings/xterm.d.ts" />
|
||||
|
||||
import { Terminal } from 'xterm';
|
||||
|
||||
namespace constructor_tests {
|
||||
{
|
||||
new Terminal();
|
||||
new Terminal({});
|
||||
new Terminal({
|
||||
cols: 1,
|
||||
rows: 1
|
||||
});
|
||||
new Terminal({
|
||||
'cols': 1,
|
||||
'cursorBlink': true,
|
||||
'cursorStyle': 'block',
|
||||
'disableStdin': false,
|
||||
'rows': 1,
|
||||
'scrollback': 10,
|
||||
'tabStopWidth': 2,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user