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
This commit is contained in:
imoses
2016-09-22 16:26:03 +03:00
parent be4c8341ba
commit 33abd69e85
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -10,3 +10,4 @@ Makefile.gyp
example/*.log
docs/
npm-debug.log
/.idea/
+5 -5
View File
@@ -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));