Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
b0e96922
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,体验更适合开发者的 AI 搜索 >>
提交
b0e96922
编写于
1月 09, 2021
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests - selectively enable some previously skipped tests
上级
ea1b3f27
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
18 deletion
+17
-18
src/vs/platform/backup/test/electron-main/backupMainService.test.ts
...tform/backup/test/electron-main/backupMainService.test.ts
+7
-8
src/vs/platform/files/test/electron-browser/diskFileService.test.ts
...tform/files/test/electron-browser/diskFileService.test.ts
+9
-9
src/vs/workbench/services/textfile/test/node/encoding/encoding.test.ts
...nch/services/textfile/test/node/encoding/encoding.test.ts
+1
-1
未找到文件。
src/vs/platform/backup/test/electron-main/backupMainService.test.ts
浏览文件 @
b0e96922
...
...
@@ -260,7 +260,7 @@ flakySuite('BackupMainService', () => {
assert
.
equal
(
1
,
fs
.
readdirSync
(
path
.
join
(
backupHome
,
emptyBackups
[
0
].
backupFolder
!
)).
length
);
});
flakyS
uite
(
'
loadSync
'
,
()
=>
{
s
uite
(
'
loadSync
'
,
()
=>
{
test
(
'
getFolderBackupPaths() should return [] when workspaces.json doesn
\'
t exist
'
,
()
=>
{
assertEqualUris
(
service
.
getFolderBackupPaths
(),
[]);
});
...
...
@@ -430,7 +430,7 @@ flakySuite('BackupMainService', () => {
});
});
flakyS
uite
(
'
dedupeFolderWorkspaces
'
,
()
=>
{
s
uite
(
'
dedupeFolderWorkspaces
'
,
()
=>
{
test
(
'
should ignore duplicates (folder workspace)
'
,
async
()
=>
{
await
ensureFolderExists
(
existingTestFolder1
);
...
...
@@ -493,7 +493,7 @@ flakySuite('BackupMainService', () => {
});
});
flakyS
uite
(
'
registerWindowForBackups
'
,
()
=>
{
s
uite
(
'
registerWindowForBackups
'
,
()
=>
{
test
(
'
should persist paths to workspaces.json (folder workspace)
'
,
async
()
=>
{
service
.
registerFolderBackupSync
(
fooFile
);
service
.
registerFolderBackupSync
(
barFile
);
...
...
@@ -541,7 +541,7 @@ flakySuite('BackupMainService', () => {
assert
.
deepEqual
(
json
.
rootURIWorkspaces
.
map
(
b
=>
b
.
configURIPath
),
[
URI
.
file
(
upperFooPath
).
toString
()]);
});
flakyS
uite
(
'
removeBackupPathSync
'
,
()
=>
{
s
uite
(
'
removeBackupPathSync
'
,
()
=>
{
test
(
'
should remove folder workspaces from workspaces.json (folder workspace)
'
,
async
()
=>
{
service
.
registerFolderBackupSync
(
fooFile
);
service
.
registerFolderBackupSync
(
barFile
);
...
...
@@ -604,8 +604,7 @@ flakySuite('BackupMainService', () => {
});
});
flakySuite
(
'
getWorkspaceHash
'
,
()
=>
{
suite
(
'
getWorkspaceHash
'
,
()
=>
{
(
platform
.
isLinux
?
test
.
skip
:
test
)(
'
should ignore case on Windows and Mac
'
,
()
=>
{
if
(
platform
.
isMacintosh
)
{
assert
.
equal
(
service
.
getFolderHash
(
URI
.
file
(
'
/foo
'
)),
service
.
getFolderHash
(
URI
.
file
(
'
/FOO
'
)));
...
...
@@ -617,7 +616,7 @@ flakySuite('BackupMainService', () => {
});
});
flakyS
uite
(
'
mixed path casing
'
,
()
=>
{
s
uite
(
'
mixed path casing
'
,
()
=>
{
test
(
'
should handle case insensitive paths properly (registerWindowForBackupsSync) (folder workspace)
'
,
()
=>
{
service
.
registerFolderBackupSync
(
fooFile
);
service
.
registerFolderBackupSync
(
URI
.
file
(
fooFile
.
fsPath
.
toUpperCase
()));
...
...
@@ -659,7 +658,7 @@ flakySuite('BackupMainService', () => {
});
});
flakyS
uite
(
'
getDirtyWorkspaces
'
,
()
=>
{
s
uite
(
'
getDirtyWorkspaces
'
,
()
=>
{
test
(
'
should report if a workspace or folder has backups
'
,
async
()
=>
{
const
folderBackupPath
=
service
.
registerFolderBackupSync
(
fooFile
);
...
...
src/vs/platform/files/test/electron-browser/diskFileService.test.ts
浏览文件 @
b0e96922
...
...
@@ -407,7 +407,7 @@ flakySuite('Disk File Service', function () {
assert
.
equal
(
r2
.
name
,
'
deep
'
);
});
(
isWindows
/* not reliable on windows */
?
test
.
skip
:
test
)(
'
resolve - folder symbolic link
'
,
async
()
=>
{
(
isWindows
/*
symlinks are
not reliable on windows */
?
test
.
skip
:
test
)(
'
resolve - folder symbolic link
'
,
async
()
=>
{
const
link
=
URI
.
file
(
join
(
testDir
,
'
deep-link
'
));
await
symlink
(
join
(
testDir
,
'
deep
'
),
link
.
fsPath
);
...
...
@@ -417,7 +417,7 @@ flakySuite('Disk File Service', function () {
assert
.
equal
(
resolved
.
isSymbolicLink
,
true
);
});
(
isWindows
/* not reliable on windows */
?
test
.
skip
:
test
)(
'
resolve - file symbolic link
'
,
async
()
=>
{
(
isWindows
/*
symlinks are
not reliable on windows */
?
test
.
skip
:
test
)(
'
resolve - file symbolic link
'
,
async
()
=>
{
const
link
=
URI
.
file
(
join
(
testDir
,
'
lorem.txt-linked
'
));
await
symlink
(
join
(
testDir
,
'
lorem.txt
'
),
link
.
fsPath
);
...
...
@@ -426,7 +426,7 @@ flakySuite('Disk File Service', function () {
assert
.
equal
(
resolved
.
isSymbolicLink
,
true
);
});
(
isWindows
/* not reliable on windows */
?
test
.
skip
:
test
)(
'
resolve - symbolic link pointing to non-existing file does not break
'
,
async
()
=>
{
(
isWindows
/*
symlinks are
not reliable on windows */
?
test
.
skip
:
test
)(
'
resolve - symbolic link pointing to non-existing file does not break
'
,
async
()
=>
{
await
symlink
(
join
(
testDir
,
'
foo
'
),
join
(
testDir
,
'
bar
'
));
const
resolved
=
await
service
.
resolve
(
URI
.
file
(
testDir
));
...
...
@@ -475,7 +475,7 @@ flakySuite('Disk File Service', function () {
assert
.
equal
((
<
FileOperationError
>
error
).
fileOperationResult
,
FileOperationResult
.
FILE_NOT_FOUND
);
}
(
isWindows
/* not reliable on windows */
?
test
.
skip
:
test
)(
'
deleteFile - symbolic link (exists)
'
,
async
()
=>
{
(
isWindows
/*
symlinks are
not reliable on windows */
?
test
.
skip
:
test
)(
'
deleteFile - symbolic link (exists)
'
,
async
()
=>
{
const
target
=
URI
.
file
(
join
(
testDir
,
'
lorem.txt
'
));
const
link
=
URI
.
file
(
join
(
testDir
,
'
lorem.txt-linked
'
));
await
symlink
(
target
.
fsPath
,
link
.
fsPath
);
...
...
@@ -497,7 +497,7 @@ flakySuite('Disk File Service', function () {
assert
.
equal
(
existsSync
(
target
.
fsPath
),
true
);
// target the link pointed to is never deleted
});
(
isWindows
/* not reliable on windows */
?
test
.
skip
:
test
)(
'
deleteFile - symbolic link (pointing to non-existing file)
'
,
async
()
=>
{
(
isWindows
/*
symlinks are
not reliable on windows */
?
test
.
skip
:
test
)(
'
deleteFile - symbolic link (pointing to non-existing file)
'
,
async
()
=>
{
const
target
=
URI
.
file
(
join
(
testDir
,
'
foo
'
));
const
link
=
URI
.
file
(
join
(
testDir
,
'
bar
'
));
await
symlink
(
target
.
fsPath
,
link
.
fsPath
);
...
...
@@ -1541,23 +1541,23 @@ flakySuite('Disk File Service', function () {
assert
.
equal
(
error
!
.
fileOperationResult
,
FileOperationResult
.
FILE_EXCEEDS_MEMORY_LIMIT
);
}
(
isWindows
?
test
.
skip
/* flaky test */
:
test
)
(
'
readFile - FILE_TOO_LARGE - default
'
,
async
()
=>
{
test
(
'
readFile - FILE_TOO_LARGE - default
'
,
async
()
=>
{
return
testFileTooLarge
();
});
(
isWindows
?
test
.
skip
/* flaky test */
:
test
)
(
'
readFile - FILE_TOO_LARGE - buffered
'
,
async
()
=>
{
test
(
'
readFile - FILE_TOO_LARGE - buffered
'
,
async
()
=>
{
setCapabilities
(
fileProvider
,
FileSystemProviderCapabilities
.
FileOpenReadWriteClose
);
return
testFileTooLarge
();
});
(
isWindows
?
test
.
skip
/* flaky test */
:
test
)
(
'
readFile - FILE_TOO_LARGE - unbuffered
'
,
async
()
=>
{
test
(
'
readFile - FILE_TOO_LARGE - unbuffered
'
,
async
()
=>
{
setCapabilities
(
fileProvider
,
FileSystemProviderCapabilities
.
FileReadWrite
);
return
testFileTooLarge
();
});
(
isWindows
?
test
.
skip
/* flaky test */
:
test
)
(
'
readFile - FILE_TOO_LARGE - streamed
'
,
async
()
=>
{
test
(
'
readFile - FILE_TOO_LARGE - streamed
'
,
async
()
=>
{
setCapabilities
(
fileProvider
,
FileSystemProviderCapabilities
.
FileReadStream
);
return
testFileTooLarge
();
...
...
src/vs/workbench/services/textfile/test/node/encoding/encoding.test.ts
浏览文件 @
b0e96922
...
...
@@ -351,7 +351,7 @@ suite('Encoding', () => {
assert
.
equal
(
content
.
length
,
65537
);
});
(
isWindows
/*
unsupported OS
*/
?
test
.
skip
:
test
)(
'
toDecodeStream - some stream (UTF-8 issue #102202)
'
,
async
function
()
{
(
isWindows
/*
TODO@bpasero why does this fail on windows
*/
?
test
.
skip
:
test
)(
'
toDecodeStream - some stream (UTF-8 issue #102202)
'
,
async
function
()
{
const
path
=
getPathFromAmdModule
(
require
,
'
./fixtures/issue_102202.txt
'
);
const
source
=
streamToBufferReadableStream
(
fs
.
createReadStream
(
path
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录