Get tests passing

This commit is contained in:
Daniel Imms
2019-05-31 19:34:10 -07:00
parent ba5fe4bac2
commit 1cde8a3167
4 changed files with 12 additions and 6 deletions
+2
View File
@@ -25,6 +25,7 @@ import { Terminal as TerminalType, ITerminalOptions } from 'xterm';
export interface IWindowWithTerminal extends Window {
term: TerminalType;
Terminal?: typeof TerminalType;
WebLinksAddon?: typeof WebLinksAddon;
}
declare let window: IWindowWithTerminal;
@@ -74,6 +75,7 @@ const disposeRecreateButtonHandler = () => {
if (document.location.pathname === '/test') {
window.Terminal = Terminal;
window.WebLinksAddon = WebLinksAddon;
} else {
createTerminal();
document.getElementById('dispose').addEventListener('click', disposeRecreateButtonHandler);
+2 -2
View File
@@ -2,8 +2,8 @@
<html>
<head>
<title>xterm.js integration test fixture</title>
<link rel="stylesheet" href="/src/xterm.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="/xterm.css" />
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<div id="terminal-container"></div>