提交 a5357b27 编写于 作者: J Johannes Rieken

Revert "make tests windows ready"

This reverts commit 55aa2b85.
上级 55aa2b85
......@@ -6,7 +6,6 @@
'use strict';
import * as assert from 'assert';
import { normalize } from 'path';
import { ExtHostWorkspace } from 'vs/workbench/api/node/extHostWorkspace';
import { TestThreadService } from './testThreadService';
......@@ -16,12 +15,12 @@ suite('ExtHostWorkspace', function () {
const ws = new ExtHostWorkspace(new TestThreadService(), '/Coding/Applications/NewsWoWBot');
assert.equal(ws.getRelativePath('/Coding/Applications/NewsWoWBot/bernd/das/brot'), normalize('bernd/das/brot'));
assert.equal(ws.getRelativePath('/Coding/Applications/NewsWoWBot/bernd/das/brot'), 'bernd/das/brot');
assert.equal(ws.getRelativePath('/Apps/DartPubCache/hosted/pub.dartlang.org/convert-2.0.1/lib/src/hex.dart'),
normalize('/Apps/DartPubCache/hosted/pub.dartlang.org/convert-2.0.1/lib/src/hex.dart'));
'/Apps/DartPubCache/hosted/pub.dartlang.org/convert-2.0.1/lib/src/hex.dart');
assert.equal(ws.getRelativePath(''), '');
assert.equal(ws.getRelativePath('/foo/bar'), normalize('/foo/bar'));
assert.equal(ws.getRelativePath('/foo/bar'), '/foo/bar');
});
test('asRelativePath, same paths, #11402', function () {
......@@ -29,10 +28,10 @@ suite('ExtHostWorkspace', function () {
const input = '/home/aeschli/workspaces/samples/docker';
const ws = new ExtHostWorkspace(new TestThreadService(), root);
assert.equal(ws.getRelativePath(input), normalize(input));
assert.equal(ws.getRelativePath(input), input);
const input2 = '/home/aeschli/workspaces/samples/docker/a.file';
assert.equal(ws.getRelativePath(input2), normalize('a.file'));
assert.equal(ws.getRelativePath(input2), 'a.file');
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册