Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
1f988c01
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1f988c01
编写于
3月 30, 2020
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix tests
上级
b8eeacc5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
33 deletion
+33
-33
src/vs/workbench/contrib/extensions/test/electron-browser/extensionsActions.test.ts
...xtensions/test/electron-browser/extensionsActions.test.ts
+33
-33
未找到文件。
src/vs/workbench/contrib/extensions/test/electron-browser/extensionsActions.test.ts
浏览文件 @
1f988c01
...
...
@@ -130,7 +130,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
paged
.
firstPage
[
0
];
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
Install
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
});
});
...
...
@@ -148,7 +148,7 @@ suite('ExtensionsActions Test', () => {
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
Installing
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action install installing
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
install installing
'
,
testObject
.
class
);
});
});
...
...
@@ -215,7 +215,7 @@ suite('ExtensionsActions Test', () => {
uninstallEvent
.
fire
(
local
.
identifier
);
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
Uninstalling
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action uninstall uninstalling
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
uninstall uninstalling
'
,
testObject
.
class
);
});
});
...
...
@@ -230,7 +230,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Uninstall
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action uninstall
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
uninstall
'
,
testObject
.
class
);
});
});
...
...
@@ -245,7 +245,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
Uninstall
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action uninstall
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
uninstall
'
,
testObject
.
class
);
});
});
...
...
@@ -281,7 +281,7 @@ suite('ExtensionsActions Test', () => {
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Uninstall
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action uninstall
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
uninstall
'
,
testObject
.
class
);
});
});
...
...
@@ -290,7 +290,7 @@ suite('ExtensionsActions Test', () => {
instantiationService
.
createInstance
(
ExtensionContainers
,
[
testObject
]);
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
extension-action prominent install no-extension
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install no-extension
'
,
testObject
.
class
);
});
test
(
'
Test CombinedInstallAction when extension is system extension
'
,
()
=>
{
...
...
@@ -303,7 +303,7 @@ suite('ExtensionsActions Test', () => {
.
then
(
extensions
=>
{
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
extension-action prominent install no-extension
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install no-extension
'
,
testObject
.
class
);
});
});
...
...
@@ -319,7 +319,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
paged
.
firstPage
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
});
...
...
@@ -334,7 +334,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Uninstall
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action uninstall
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
uninstall
'
,
testObject
.
class
);
});
});
...
...
@@ -351,7 +351,7 @@ suite('ExtensionsActions Test', () => {
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
Installing
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action install installing
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
install installing
'
,
testObject
.
class
);
});
});
...
...
@@ -370,7 +370,7 @@ suite('ExtensionsActions Test', () => {
installEvent
.
fire
({
identifier
:
gallery
.
identifier
,
gallery
});
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
Installing
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action install installing
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
install installing
'
,
testObject
.
class
);
});
});
...
...
@@ -386,7 +386,7 @@ suite('ExtensionsActions Test', () => {
uninstallEvent
.
fire
(
local
.
identifier
);
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
Uninstalling
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action uninstall uninstalling
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
uninstall uninstalling
'
,
testObject
.
class
);
});
});
...
...
@@ -498,7 +498,7 @@ suite('ExtensionsActions Test', () => {
.
then
(
extensions
=>
{
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
extension-action manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
icon
manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
''
,
testObject
.
tooltip
);
});
});
...
...
@@ -513,7 +513,7 @@ suite('ExtensionsActions Test', () => {
.
then
(
page
=>
{
testObject
.
extension
=
page
.
firstPage
[
0
];
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
extension-action manage codicon-gear hide
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
icon
manage codicon-gear hide
'
,
testObject
.
class
);
assert
.
equal
(
''
,
testObject
.
tooltip
);
});
});
...
...
@@ -530,7 +530,7 @@ suite('ExtensionsActions Test', () => {
installEvent
.
fire
({
identifier
:
gallery
.
identifier
,
gallery
});
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
extension-action manage codicon-gear hide
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
icon
manage codicon-gear hide
'
,
testObject
.
class
);
assert
.
equal
(
''
,
testObject
.
tooltip
);
});
});
...
...
@@ -548,7 +548,7 @@ suite('ExtensionsActions Test', () => {
didInstallEvent
.
fire
({
identifier
:
gallery
.
identifier
,
gallery
,
operation
:
InstallOperation
.
Install
,
local
:
aLocalExtension
(
'
a
'
,
gallery
,
gallery
)
});
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
extension-action manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
icon
manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
''
,
testObject
.
tooltip
);
});
});
...
...
@@ -563,7 +563,7 @@ suite('ExtensionsActions Test', () => {
.
then
(
extensions
=>
{
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
extension-action manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
icon
manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
''
,
testObject
.
tooltip
);
});
});
...
...
@@ -580,7 +580,7 @@ suite('ExtensionsActions Test', () => {
uninstallEvent
.
fire
(
local
.
identifier
);
assert
.
ok
(
!
testObject
.
enabled
);
assert
.
equal
(
'
extension-action manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
icon
manage codicon-gear
'
,
testObject
.
class
);
assert
.
equal
(
'
Uninstalling
'
,
testObject
.
tooltip
);
});
});
...
...
@@ -1549,7 +1549,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install in remote
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
test
(
'
Test remote install action when installing local workspace extension
'
,
async
()
=>
{
...
...
@@ -1575,12 +1575,12 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install in remote
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
onInstallExtension
.
fire
({
identifier
:
localWorkspaceExtension
.
identifier
,
gallery
});
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Installing
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action install installing
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
install installing
'
,
testObject
.
class
);
});
test
(
'
Test remote install action when installing local workspace extension is finished
'
,
async
()
=>
{
...
...
@@ -1608,12 +1608,12 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install in remote
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
onInstallExtension
.
fire
({
identifier
:
localWorkspaceExtension
.
identifier
,
gallery
});
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Installing
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action install installing
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
install installing
'
,
testObject
.
class
);
const
installedExtension
=
aLocalExtension
(
'
a
'
,
{
extensionKind
:
[
'
workspace
'
]
},
{
location
:
URI
.
file
(
`pub.a`
).
with
({
scheme
:
Schemas
.
vscodeRemote
})
});
onDidInstallEvent
.
fire
({
identifier
:
installedExtension
.
identifier
,
local
:
installedExtension
,
operation
:
InstallOperation
.
Install
});
...
...
@@ -1639,7 +1639,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install in remote
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
test
(
'
Test remote install action is disabled when extension is not set
'
,
async
()
=>
{
...
...
@@ -1856,7 +1856,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install in remote
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
test
(
'
Test remote install action is disabled if local language pack extension is uninstalled
'
,
async
()
=>
{
...
...
@@ -1902,7 +1902,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install Locally
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
test
(
'
Test local install action when installing remote ui extension
'
,
async
()
=>
{
...
...
@@ -1928,12 +1928,12 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install Locally
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
onInstallExtension
.
fire
({
identifier
:
remoteUIExtension
.
identifier
,
gallery
});
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Installing
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action install installing
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
install installing
'
,
testObject
.
class
);
});
test
(
'
Test local install action when installing remote ui extension is finished
'
,
async
()
=>
{
...
...
@@ -1961,12 +1961,12 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install Locally
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
onInstallExtension
.
fire
({
identifier
:
remoteUIExtension
.
identifier
,
gallery
});
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Installing
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action install installing
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
install installing
'
,
testObject
.
class
);
const
installedExtension
=
aLocalExtension
(
'
a
'
,
{
extensionKind
:
[
'
ui
'
]
},
{
location
:
URI
.
file
(
`pub.a`
)
});
onDidInstallEvent
.
fire
({
identifier
:
installedExtension
.
identifier
,
local
:
installedExtension
,
operation
:
InstallOperation
.
Install
});
...
...
@@ -1992,7 +1992,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install Locally
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
test
(
'
Test local install action is disabled when extension is not set
'
,
async
()
=>
{
...
...
@@ -2212,7 +2212,7 @@ suite('ExtensionsActions Test', () => {
testObject
.
extension
=
extensions
[
0
];
assert
.
ok
(
testObject
.
enabled
);
assert
.
equal
(
'
Install Locally
'
,
testObject
.
label
);
assert
.
equal
(
'
extension-action prominent install
'
,
testObject
.
class
);
assert
.
equal
(
'
extension-action
label
prominent install
'
,
testObject
.
class
);
});
test
(
'
Test local install action is disabled if remote language pack extension is uninstalled
'
,
async
()
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录