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:
@@ -10,3 +10,4 @@ Makefile.gyp
|
|||||||
example/*.log
|
example/*.log
|
||||||
docs/
|
docs/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
/.idea/
|
||||||
|
|||||||
+5
-5
@@ -378,7 +378,7 @@ describe('xterm.js', function() {
|
|||||||
|
|
||||||
describe('unicode - surrogates', function() {
|
describe('unicode - surrogates', function() {
|
||||||
it('2 characters per cell', function () {
|
it('2 characters per cell', function () {
|
||||||
var high = '\uD800';
|
var high = String.fromCharCode(0xD800);
|
||||||
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
||||||
xterm.write(high + String.fromCharCode(i));
|
xterm.write(high + String.fromCharCode(i));
|
||||||
var tchar = xterm.lines[0][0];
|
var tchar = xterm.lines[0][0];
|
||||||
@@ -390,7 +390,7 @@ describe('xterm.js', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
it('2 characters at last cell', function() {
|
it('2 characters at last cell', function() {
|
||||||
var high = '\uD800';
|
var high = String.fromCharCode(0xD800);
|
||||||
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
||||||
xterm.x = xterm.cols - 1;
|
xterm.x = xterm.cols - 1;
|
||||||
xterm.write(high + String.fromCharCode(i));
|
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() {
|
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) {
|
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
||||||
xterm.x = xterm.cols - 1;
|
xterm.x = xterm.cols - 1;
|
||||||
xterm.wraparoundMode = true;
|
xterm.wraparoundMode = true;
|
||||||
@@ -414,7 +414,7 @@ describe('xterm.js', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
it('2 characters per cell over line end without autowrap', 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) {
|
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
||||||
xterm.x = xterm.cols - 1;
|
xterm.x = xterm.cols - 1;
|
||||||
xterm.wraparoundMode = false;
|
xterm.wraparoundMode = false;
|
||||||
@@ -426,7 +426,7 @@ describe('xterm.js', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
it('splitted surrogates', function() {
|
it('splitted surrogates', function() {
|
||||||
var high = '\uD800';
|
var high = String.fromCharCode(0xD800);
|
||||||
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
for (var i=0xDC00; i<=0xDCFF; ++i) {
|
||||||
xterm.write(high);
|
xterm.write(high);
|
||||||
xterm.write(String.fromCharCode(i));
|
xterm.write(String.fromCharCode(i));
|
||||||
|
|||||||
Reference in New Issue
Block a user