Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
43f8f080
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,发现更多精彩内容 >>
提交
43f8f080
编写于
9月 13, 2017
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
smoke: improve status bar tests
上级
7e1f12fe
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
16 deletion
+15
-16
test/smoke/src/areas/problems/problems.ts
test/smoke/src/areas/problems/problems.ts
+5
-1
test/smoke/src/areas/quickopen/quickopen.ts
test/smoke/src/areas/quickopen/quickopen.ts
+2
-7
test/smoke/src/areas/statusbar/statusbar.test.ts
test/smoke/src/areas/statusbar/statusbar.test.ts
+8
-8
未找到文件。
test/smoke/src/areas/problems/problems.ts
浏览文件 @
43f8f080
...
...
@@ -21,7 +21,7 @@ export class Problems {
public
async
showProblemsView
():
Promise
<
any
>
{
if
(
!
await
this
.
isVisible
())
{
await
this
.
spectron
.
command
(
'
workbench.actions.view.problems
'
);
await
this
.
spectron
.
client
.
waitForElement
(
Problems
.
PROBLEMS_VIEW_SELECTOR
);
await
this
.
waitForProblemsView
(
);
}
}
...
...
@@ -37,6 +37,10 @@ export class Problems {
return
!!
element
;
}
public
async
waitForProblemsView
():
Promise
<
void
>
{
await
this
.
spectron
.
client
.
waitForElement
(
Problems
.
PROBLEMS_VIEW_SELECTOR
);
}
public
static
getSelectorInProblemsView
(
problemType
:
ProblemSeverity
):
string
{
let
selector
=
problemType
===
ProblemSeverity
.
WARNING
?
'
warning
'
:
'
error
'
;
return
`div[aria-label="Problems grouped by files"] .icon.
${
selector
}
`
;
...
...
test/smoke/src/areas/quickopen/quickopen.ts
浏览文件 @
43f8f080
...
...
@@ -69,19 +69,14 @@ export class QuickOpen {
await
this
.
spectron
.
client
.
waitAndClick
(
QuickOpen
.
QUICK_OPEN_FOCUSED_ELEMENT
);
}
p
rotected
waitForQuickOpenOpened
():
Promise
<
Element
>
{
p
ublic
waitForQuickOpenOpened
():
Promise
<
Element
>
{
return
this
.
spectron
.
client
.
waitForElement
(
QuickOpen
.
QUICK_OPEN_FOCUSSED_INPUT
);
}
p
rotected
waitForQuickOpenClosed
():
Promise
<
Element
>
{
p
ublic
waitForQuickOpenClosed
():
Promise
<
Element
>
{
return
this
.
spectron
.
client
.
waitForElement
(
QuickOpen
.
QUICK_OPEN_HIDDEN
);
}
public
async
isQuickOpenVisible
():
Promise
<
boolean
>
{
await
this
.
waitForQuickOpenOpened
();
return
true
;
}
public
async
submit
(
text
:
string
):
Promise
<
void
>
{
await
this
.
spectron
.
client
.
type
(
text
);
await
this
.
spectron
.
client
.
keys
([
'
Enter
'
,
'
NULL
'
]);
...
...
test/smoke/src/areas/statusbar/statusbar.test.ts
浏览文件 @
43f8f080
...
...
@@ -33,27 +33,27 @@ describe('Statusbar', () => {
it
(
`verifies that 'quick open' opens when clicking on status bar elements`
,
async
function
()
{
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
BRANCH_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
quickopen
.
isQuickOpenVisible
(),
'
Quick open is not opened for branch indicator.
'
);
a
wait
app
.
workbench
.
quickopen
.
waitForQuickOpenOpened
(
);
await
app
.
workbench
.
quickopen
.
closeQuickOpen
();
await
app
.
workbench
.
quickopen
.
openFile
(
'
app.js
'
);
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
INDENTATION_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
quickopen
.
isQuickOpenVisible
(),
'
Quick open is not opened for indentation indicator.
'
);
a
wait
app
.
workbench
.
quickopen
.
waitForQuickOpenOpened
(
);
await
app
.
workbench
.
quickopen
.
closeQuickOpen
();
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
ENCODING_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
quickopen
.
isQuickOpenVisible
(),
'
Quick open is not opened for encoding indicator.
'
);
a
wait
app
.
workbench
.
quickopen
.
waitForQuickOpenOpened
(
);
await
app
.
workbench
.
quickopen
.
closeQuickOpen
();
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
EOL_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
quickopen
.
isQuickOpenVisible
(),
'
Quick open is not opened for EOL indicator.
'
);
a
wait
app
.
workbench
.
quickopen
.
waitForQuickOpenOpened
(
);
await
app
.
workbench
.
quickopen
.
closeQuickOpen
();
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
LANGUAGE_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
quickopen
.
isQuickOpenVisible
(),
'
Quick open is not opened for language indicator.
'
);
a
wait
app
.
workbench
.
quickopen
.
waitForQuickOpenOpened
(
);
await
app
.
workbench
.
quickopen
.
closeQuickOpen
();
});
it
(
`verifies that 'Problems View' appears when clicking on 'Problems' status element`
,
async
function
()
{
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
PROBLEMS_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
problems
.
isVisible
()
);
a
wait
app
.
workbench
.
problems
.
waitForProblemsView
(
);
});
if
(
app
.
build
!==
VSCODE_BUILD
.
DEV
)
{
...
...
@@ -67,7 +67,7 @@ describe('Statusbar', () => {
await
app
.
workbench
.
quickopen
.
openFile
(
'
app.js
'
);
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
SELECTION_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
quickopen
.
isQuickOpenVisible
(),
'
Quick open is not opened line number selection.
'
);
a
wait
app
.
workbench
.
quickopen
.
waitForQuickOpenOpened
(
);
await
app
.
workbench
.
quickopen
.
submit
(
'
15
'
);
await
app
.
workbench
.
editor
.
waitForHighlightingLine
(
15
);
...
...
@@ -77,7 +77,7 @@ describe('Statusbar', () => {
await
app
.
workbench
.
quickopen
.
openFile
(
'
app.js
'
);
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
EOL_STATUS
);
a
ssert
.
ok
(
await
app
.
workbench
.
quickopen
.
isQuickOpenVisible
(),
'
Quick open is not opened line number selection.
'
);
a
wait
app
.
workbench
.
quickopen
.
waitForQuickOpenOpened
(
);
app
.
workbench
.
quickopen
.
selectQuickOpenElement
(
1
);
await
app
.
workbench
.
statusbar
.
waitForEOL
(
'
CRLF
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录