]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - test/composition-helper-test.js
Move to TypeScript build
[mirror_xterm.js.git] / test / composition-helper-test.js
index 7bc4ee48633fd7ebbfffa1d1351b629cd1bee6b6..52add91ba655c44be30244da2a238ac9a8dfdd2e 100644 (file)
@@ -1,5 +1,5 @@
 var assert = require('chai').assert;
-var Terminal = require('../src/xterm');
+var Terminal = require('../build/xterm');
 
 describe('CompositionHelper', function () {
   var terminal;
@@ -14,19 +14,22 @@ describe('CompositionHelper', function () {
         add: function () {},
         remove: function () {},
       },
+      getBoundingClientRect: function () {
+        return { width: 0 };
+      },
       style: {
         left: 0,
         top: 0
       },
       textContent: ''
-    }
+    };
     textarea = {
       value: '',
       style: {
         left: 0,
         top: 0
       }
-    }
+    };
     terminal = {
       element: {
         querySelector: function () {
@@ -36,7 +39,7 @@ describe('CompositionHelper', function () {
       handler: function (text) {
         handledText += text;
       }
-    }
+    };
     handledText = '';
     compositionHelper = new Terminal.CompositionHelper(textarea, compositionView, terminal);
   });