mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
fix windows tests
This commit is contained in:
@@ -247,7 +247,10 @@ suite('Files - TextFileService i/o', () => {
|
||||
}
|
||||
|
||||
test('write - use encoding (cp1252)', async () => {
|
||||
await testEncodingKeepsData(URI.file(join(testDir, 'some_cp1252.txt')), 'cp1252', ['ObjectCount = LoadObjects("Öffentlicher Ordner");', '', 'Private = "Persönliche Information"', ''].join(isWindows ? '\r\n' : '\n'));
|
||||
const filePath = join(testDir, 'some_cp1252.txt');
|
||||
const contents = await readFile(filePath, 'utf8');
|
||||
const eol = /\r\n/.test(contents) ? '\r\n' : '\n';
|
||||
await testEncodingKeepsData(URI.file(filePath), 'cp1252', ['ObjectCount = LoadObjects("Öffentlicher Ordner");', '', 'Private = "Persönliche Information"', ''].join(eol));
|
||||
});
|
||||
|
||||
test('write - use encoding (shiftjis)', async () => {
|
||||
|
||||
Reference in New Issue
Block a user