mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-11-02 22:07:41 +00:00
Merge pull request #283 from iMoses/master
Workaround a known bug in Babel JS
This commit is contained in:
commit
26fd963fbd
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ Makefile.gyp
|
||||
example/*.log
|
||||
docs/
|
||||
npm-debug.log
|
||||
/.idea/
|
||||
|
||||
10
test/test.js
10
test/test.js
@ -394,7 +394,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];
|
||||
@ -406,7 +406,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));
|
||||
@ -417,7 +417,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;
|
||||
@ -430,7 +430,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;
|
||||
@ -442,7 +442,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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user