Move prepareTextForClipboard logic into SelectionManager

This commit is contained in:
Daniel Imms
2017-06-07 13:42:08 -07:00
parent f719a4e91b
commit 2012c8c91d
4 changed files with 17 additions and 39 deletions
-9
View File
@@ -2,15 +2,6 @@ import { assert } from 'chai';
import * as Terminal from '../xterm';
import * as Clipboard from './Clipboard';
describe('evaluateCopiedTextProcessing', function () {
it('should replace non-breaking spaces with regular spaces', () => {
const nbsp = String.fromCharCode(160);
const result = Clipboard.prepareTextForClipboard(`foo${nbsp}bar\ntest${nbsp}${nbsp}`);
assert.equal(result, 'foo bar\ntest ');
});
});
describe('evaluatePastedTextProcessing', function () {
it('should replace carriage return + line feed with line feed on windows', function () {
const pastedText = 'foo\r\nbar\r\n',