Merge pull request #283 from iMoses/master
Workaround a known bug in Babel JS
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
@@ -394,7 +394,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];
|
||||||
@@ -406,7 +406,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));
|
||||||
@@ -417,7 +417,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;
|
||||||
@@ -430,7 +430,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;
|
||||||
@@ -442,7 +442,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