From 33abd69e850aee42bebe326be846ac21bb9e6dcf Mon Sep 17 00:00:00 2001 From: imoses Date: Thu, 22 Sep 2016 16:26:03 +0300 Subject: [PATCH] Tests were failing locally due to a babel js bug - https://github.com/babel/babel/issues/3826 Fixed the tests to work around the problem and added /.idea/ to .gitignore for the benefit of contributors who uses intellij --- .gitignore | 1 + test/test.js | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 029efd56..2fb4e7e6 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ Makefile.gyp example/*.log docs/ npm-debug.log +/.idea/ diff --git a/test/test.js b/test/test.js index 043906f6..2f1c0fef 100644 --- a/test/test.js +++ b/test/test.js @@ -378,7 +378,7 @@ describe('xterm.js', function() { describe('unicode - surrogates', function() { it('2 characters per cell', function () { - var high = '\uD800'; + var high = String.fromCharCode(0xD800); for (var i=0xDC00; i<=0xDCFF; ++i) { xterm.write(high + String.fromCharCode(i)); var tchar = xterm.lines[0][0]; @@ -390,7 +390,7 @@ describe('xterm.js', function() { } }); it('2 characters at last cell', function() { - var high = '\uD800'; + var high = String.fromCharCode(0xD800); for (var i=0xDC00; i<=0xDCFF; ++i) { xterm.x = xterm.cols - 1; xterm.write(high + String.fromCharCode(i)); @@ -401,7 +401,7 @@ describe('xterm.js', function() { } }); it('2 characters per cell over line end with autowrap', function() { - var high = '\uD800'; + var high = String.fromCharCode(0xD800); for (var i=0xDC00; i<=0xDCFF; ++i) { xterm.x = xterm.cols - 1; xterm.wraparoundMode = true; @@ -414,7 +414,7 @@ describe('xterm.js', function() { } }); it('2 characters per cell over line end without autowrap', function() { - var high = '\uD800'; + var high = String.fromCharCode(0xD800); for (var i=0xDC00; i<=0xDCFF; ++i) { xterm.x = xterm.cols - 1; xterm.wraparoundMode = false; @@ -426,7 +426,7 @@ describe('xterm.js', function() { } }); it('splitted surrogates', function() { - var high = '\uD800'; + var high = String.fromCharCode(0xD800); for (var i=0xDC00; i<=0xDCFF; ++i) { xterm.write(high); xterm.write(String.fromCharCode(i));