Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
7ca8b0f6
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,发现更多精彩内容 >>
未验证
提交
7ca8b0f6
编写于
10月 28, 2021
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Statusbar - checks if 'Go to Line' works if called from the status bar: (fix #135962)
上级
f961b92f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
21 deletion
+0
-21
test/automation/src/editor.ts
test/automation/src/editor.ts
+0
-9
test/smoke/src/areas/statusbar/statusbar.test.ts
test/smoke/src/areas/statusbar/statusbar.test.ts
+0
-12
未找到文件。
test/automation/src/editor.ts
浏览文件 @
7ca8b0f6
...
...
@@ -51,15 +51,6 @@ export class Editor {
return
peek
;
}
async
waitForHighlightingLine
(
filename
:
string
,
line
:
number
):
Promise
<
void
>
{
const
currentLineIndex
=
await
this
.
getViewLineIndex
(
filename
,
line
);
if
(
currentLineIndex
)
{
await
this
.
code
.
waitForElement
(
`.monaco-editor .view-overlays>:nth-child(
${
currentLineIndex
}
) .current-line`
);
return
;
}
throw
new
Error
(
'
Cannot find line
'
+
line
);
}
private
async
getSelector
(
filename
:
string
,
term
:
string
,
line
:
number
):
Promise
<
string
>
{
const
lineIndex
=
await
this
.
getViewLineIndex
(
filename
,
line
);
const
classNames
=
await
this
.
getClassSelectors
(
filename
,
term
,
lineIndex
);
...
...
test/smoke/src/areas/statusbar/statusbar.test.ts
浏览文件 @
7ca8b0f6
...
...
@@ -65,18 +65,6 @@ export function setup(opts: minimist.ParsedArgs) {
await
app
.
workbench
.
problems
.
waitForProblemsView
();
});
it
(
`checks if 'Go to Line' works if called from the status bar`
,
async
function
()
{
const
app
=
this
.
app
as
Application
;
await
app
.
workbench
.
quickaccess
.
openFile
(
'
app.js
'
);
await
app
.
workbench
.
statusbar
.
clickOn
(
StatusBarElement
.
SELECTION_STATUS
);
await
app
.
workbench
.
quickinput
.
waitForQuickInputOpened
();
await
app
.
workbench
.
quickinput
.
submit
(
'
:15
'
);
await
app
.
workbench
.
editor
.
waitForHighlightingLine
(
'
app.js
'
,
15
);
});
it
(
`verifies if changing EOL is reflected in the status bar`
,
async
function
()
{
const
app
=
this
.
app
as
Application
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录