Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0110d495
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0110d495
编写于
8月 26, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix tests on windows
上级
9066eedc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
src/vs/platform/workspace/test/common/workspace.test.ts
src/vs/platform/workspace/test/common/workspace.test.ts
+4
-4
src/vs/platform/workspaces/test/electron-main/workspacesMainService.test.ts
...rkspaces/test/electron-main/workspacesMainService.test.ts
+3
-3
未找到文件。
src/vs/platform/workspace/test/common/workspace.test.ts
浏览文件 @
0110d495
...
...
@@ -26,8 +26,8 @@ suite('Workspace', () => {
ws
=
new
Workspace
(
'
id
'
,
'
name
'
,
roots
,
config
);
assert
.
equal
(
ws
.
roots
.
length
,
2
);
assert
.
equal
(
ws
.
roots
[
0
].
fsPath
,
join
(
dirname
(
config
.
fsPath
),
roots
[
0
].
fsPath
)
);
assert
.
equal
(
ws
.
roots
[
1
].
fsPath
,
join
(
dirname
(
config
.
fsPath
),
roots
[
1
].
fsPath
)
);
assert
.
equal
(
ws
.
roots
[
0
].
fsPath
,
URI
.
file
(
join
(
dirname
(
config
.
fsPath
),
roots
[
0
].
fsPath
)).
fsPath
);
assert
.
equal
(
ws
.
roots
[
1
].
fsPath
,
URI
.
file
(
join
(
dirname
(
config
.
fsPath
),
roots
[
1
].
fsPath
)).
fsPath
);
// Absolute (from root)
config
=
URI
.
file
(
'
/workspace.code-workspace
'
);
...
...
@@ -35,7 +35,7 @@ suite('Workspace', () => {
ws
=
new
Workspace
(
'
id
'
,
'
name
'
,
roots
,
config
);
assert
.
equal
(
ws
.
roots
.
length
,
2
);
assert
.
equal
(
ws
.
roots
[
0
].
fsPath
,
join
(
dirname
(
config
.
fsPath
),
roots
[
0
].
fsPath
)
);
assert
.
equal
(
ws
.
roots
[
1
].
fsPath
,
join
(
dirname
(
config
.
fsPath
),
roots
[
1
].
fsPath
)
);
assert
.
equal
(
ws
.
roots
[
0
].
fsPath
,
URI
.
file
(
join
(
dirname
(
config
.
fsPath
),
roots
[
0
].
fsPath
)).
fsPath
);
assert
.
equal
(
ws
.
roots
[
1
].
fsPath
,
URI
.
file
(
join
(
dirname
(
config
.
fsPath
),
roots
[
1
].
fsPath
)).
fsPath
);
});
});
\ No newline at end of file
src/vs/platform/workspaces/test/electron-main/workspacesMainService.test.ts
浏览文件 @
0110d495
...
...
@@ -108,7 +108,7 @@ suite('WorkspacesMainService', () => {
fs
.
writeFileSync
(
workspace
.
configPath
,
JSON
.
stringify
({
folders
:
[{
path
:
'
./ticino-playground/lib
'
}]
}));
const
resolved
=
service
.
resolveWorkspaceSync
(
workspace
.
configPath
);
assert
.
equal
(
resolved
.
folders
[
0
].
p
ath
,
URI
.
file
(
path
.
join
(
path
.
dirname
(
workspace
.
configPath
),
'
ticino-playground
'
,
'
lib
'
)).
fsPath
);
assert
.
equal
(
URI
.
file
(
resolved
.
folders
[
0
].
path
).
fsP
ath
,
URI
.
file
(
path
.
join
(
path
.
dirname
(
workspace
.
configPath
),
'
ticino-playground
'
,
'
lib
'
)).
fsPath
);
done
();
});
...
...
@@ -119,7 +119,7 @@ suite('WorkspacesMainService', () => {
fs
.
writeFileSync
(
workspace
.
configPath
,
JSON
.
stringify
({
folders
:
[{
path
:
'
./ticino-playground/lib/../other
'
}]
}));
const
resolved
=
service
.
resolveWorkspaceSync
(
workspace
.
configPath
);
assert
.
equal
(
resolved
.
folders
[
0
].
p
ath
,
URI
.
file
(
path
.
join
(
path
.
dirname
(
workspace
.
configPath
),
'
ticino-playground
'
,
'
other
'
)).
fsPath
);
assert
.
equal
(
URI
.
file
(
resolved
.
folders
[
0
].
path
).
fsP
ath
,
URI
.
file
(
path
.
join
(
path
.
dirname
(
workspace
.
configPath
),
'
ticino-playground
'
,
'
other
'
)).
fsPath
);
done
();
});
...
...
@@ -130,7 +130,7 @@ suite('WorkspacesMainService', () => {
fs
.
writeFileSync
(
workspace
.
configPath
,
JSON
.
stringify
({
folders
:
[{
path
:
'
ticino-playground/lib
'
}]
}));
const
resolved
=
service
.
resolveWorkspaceSync
(
workspace
.
configPath
);
assert
.
equal
(
resolved
.
folders
[
0
].
p
ath
,
URI
.
file
(
path
.
join
(
path
.
dirname
(
workspace
.
configPath
),
'
ticino-playground
'
,
'
lib
'
)).
fsPath
);
assert
.
equal
(
URI
.
file
(
resolved
.
folders
[
0
].
path
).
fsP
ath
,
URI
.
file
(
path
.
join
(
path
.
dirname
(
workspace
.
configPath
),
'
ticino-playground
'
,
'
lib
'
)).
fsPath
);
done
();
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录