Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
72bd5854
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,发现更多精彩内容 >>
提交
72bd5854
编写于
4月 11, 2018
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup
上级
04cb8618
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
0 addition
and
57 deletion
+0
-57
test/smoke/src/application.ts
test/smoke/src/application.ts
+0
-6
test/smoke/src/areas/css/css.test.ts
test/smoke/src/areas/css/css.test.ts
+0
-4
test/smoke/src/areas/debug/debug.test.ts
test/smoke/src/areas/debug/debug.test.ts
+0
-5
test/smoke/src/areas/editor/editor.test.ts
test/smoke/src/areas/editor/editor.test.ts
+0
-4
test/smoke/src/areas/explorer/explorer.test.ts
test/smoke/src/areas/explorer/explorer.test.ts
+0
-4
test/smoke/src/areas/extensions/extensions.test.ts
test/smoke/src/areas/extensions/extensions.test.ts
+0
-4
test/smoke/src/areas/git/git.test.ts
test/smoke/src/areas/git/git.test.ts
+0
-5
test/smoke/src/areas/multiroot/multiroot.test.ts
test/smoke/src/areas/multiroot/multiroot.test.ts
+0
-2
test/smoke/src/areas/preferences/preferences.test.ts
test/smoke/src/areas/preferences/preferences.test.ts
+0
-4
test/smoke/src/areas/search/search.test.ts
test/smoke/src/areas/search/search.test.ts
+0
-4
test/smoke/src/areas/statusbar/statusbar.test.ts
test/smoke/src/areas/statusbar/statusbar.test.ts
+0
-4
test/smoke/src/areas/workbench/data-loss.test.ts
test/smoke/src/areas/workbench/data-loss.test.ts
+0
-4
test/smoke/src/areas/workbench/data-migration.test.ts
test/smoke/src/areas/workbench/data-migration.test.ts
+0
-6
test/smoke/src/areas/workbench/localization.test.ts
test/smoke/src/areas/workbench/localization.test.ts
+0
-1
未找到文件。
test/smoke/src/application.ts
浏览文件 @
72bd5854
...
...
@@ -71,12 +71,6 @@ export class SpectronApplication {
return
this
.
options
.
workspaceFilePath
;
}
private
_suiteName
:
string
=
'
Init
'
;
set
suiteName
(
suiteName
:
string
)
{
this
.
_suiteName
=
suiteName
;
}
async
start
(
waitForWelcome
:
boolean
=
true
):
Promise
<
any
>
{
await
this
.
_start
();
...
...
test/smoke/src/areas/css/css.test.ts
浏览文件 @
72bd5854
...
...
@@ -8,10 +8,6 @@ import { ProblemSeverity, Problems } from '../problems/problems';
export
function
setup
()
{
describe
(
'
CSS
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
CSS
'
;
});
it
(
'
verifies quick outline
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
await
app
.
workbench
.
quickopen
.
openFile
(
'
style.css
'
);
...
...
test/smoke/src/areas/debug/debug.test.ts
浏览文件 @
72bd5854
...
...
@@ -12,11 +12,6 @@ import { SpectronApplication } from '../../application';
export
function
setup
()
{
describe
(
'
Debug
'
,
()
=>
{
before
(
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
app
.
suiteName
=
'
Debug
'
;
});
it
(
'
configure launch json
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
...
...
test/smoke/src/areas/editor/editor.test.ts
浏览文件 @
72bd5854
...
...
@@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application';
export
function
setup
()
{
describe
(
'
Editor
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
Editor
'
;
});
it
(
'
shows correct quick outline
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
await
app
.
workbench
.
quickopen
.
openFile
(
'
www
'
);
...
...
test/smoke/src/areas/explorer/explorer.test.ts
浏览文件 @
72bd5854
...
...
@@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application';
export
function
setup
()
{
describe
(
'
Explorer
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
Explorer
'
;
});
it
(
'
quick open search produces correct result
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
const
expectedNames
=
[
...
...
test/smoke/src/areas/extensions/extensions.test.ts
浏览文件 @
72bd5854
...
...
@@ -8,10 +8,6 @@ import { SpectronApplication, Quality } from '../../application';
export
function
setup
()
{
describe
(
'
Extensions
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
Extensions
'
;
});
it
(
`install and activate vscode-smoketest-check extension`
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
...
...
test/smoke/src/areas/git/git.test.ts
浏览文件 @
72bd5854
...
...
@@ -11,11 +11,6 @@ const SYNC_STATUSBAR = 'div[id="workbench.parts.statusbar"] .statusbar-entry a[t
export
function
setup
()
{
describe
(
'
Git
'
,
()
=>
{
before
(
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
app
.
suiteName
=
'
Git
'
;
});
it
(
'
reflects working tree changes
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
...
...
test/smoke/src/areas/multiroot/multiroot.test.ts
浏览文件 @
72bd5854
...
...
@@ -10,8 +10,6 @@ export function setup() {
describe
(
'
Multiroot
'
,
()
=>
{
before
(
async
function
()
{
this
.
app
.
suiteName
=
'
Multiroot
'
;
const
app
=
this
.
app
as
SpectronApplication
;
// restart with preventing additional windows from restoring
...
...
test/smoke/src/areas/preferences/preferences.test.ts
浏览文件 @
72bd5854
...
...
@@ -10,10 +10,6 @@ import { ActivityBarPosition } from '../activitybar/activityBar';
export
function
setup
()
{
describe
(
'
Preferences
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
Preferences
'
;
});
it
(
'
turns off editor line numbers and verifies the live change
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
...
...
test/smoke/src/areas/search/search.test.ts
浏览文件 @
72bd5854
...
...
@@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application';
export
function
setup
()
{
describe
(
'
Search
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
Search
'
;
});
it
(
'
searches for body & checks for correct result number
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
await
app
.
workbench
.
search
.
openSearchViewlet
();
...
...
test/smoke/src/areas/statusbar/statusbar.test.ts
浏览文件 @
72bd5854
...
...
@@ -8,10 +8,6 @@ import { StatusBarElement } from './statusbar';
export
function
setup
()
{
describe
(
'
Statusbar
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
Statusbar
'
;
});
it
(
'
verifies presence of all default status bar elements
'
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
...
...
test/smoke/src/areas/workbench/data-loss.test.ts
浏览文件 @
72bd5854
...
...
@@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application';
export
function
setup
()
{
describe
(
'
Dataloss
'
,
()
=>
{
before
(
function
()
{
this
.
app
.
suiteName
=
'
Dataloss
'
;
});
it
(
`verifies that 'hot exit' works for dirty files`
,
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
await
app
.
workbench
.
editors
.
newUntitledFile
();
...
...
test/smoke/src/areas/workbench/data-migration.test.ts
浏览文件 @
72bd5854
...
...
@@ -28,7 +28,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) {
}
await
stableApp
.
start
();
stableApp
.
suiteName
=
'
Data Migration
'
;
const
textToType
=
'
Very dirty file
'
;
...
...
@@ -46,7 +45,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) {
}
await
app
.
start
(
false
);
app
.
suiteName
=
'
Data Migration
'
;
assert
.
ok
(
await
app
.
workbench
.
editors
.
waitForActiveTab
(
'
Untitled-1
'
,
true
),
`Untitled-1 tab is not present after migration.`
);
...
...
@@ -64,7 +62,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) {
}
await
stableApp
.
start
();
stableApp
.
suiteName
=
'
Data Migration
'
;
const
fileName
=
'
app.js
'
;
const
textPart
=
'
This is going to be an unsaved file
'
;
...
...
@@ -84,7 +81,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) {
}
await
app
.
start
(
false
);
app
.
suiteName
=
'
Data Migration
'
;
assert
.
ok
(
await
app
.
workbench
.
editors
.
waitForActiveTab
(
fileName
),
`dirty file tab is not present after migration.`
);
await
app
.
workbench
.
editor
.
waitForEditorContents
(
fileName
,
c
=>
c
.
indexOf
(
textPart
)
>
-
1
);
...
...
@@ -101,7 +97,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) {
}
await
stableApp
.
start
();
stableApp
.
suiteName
=
'
Data Migration
'
;
const
fileName1
=
'
app.js
'
,
fileName2
=
'
jsconfig.json
'
,
fileName3
=
'
readme.md
'
;
...
...
@@ -119,7 +114,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) {
}
await
app
.
start
(
false
);
app
.
suiteName
=
'
Data Migration
'
;
assert
.
ok
(
await
app
.
workbench
.
editors
.
waitForTab
(
fileName1
),
`
${
fileName1
}
tab was not restored after migration.`
);
assert
.
ok
(
await
app
.
workbench
.
editors
.
waitForTab
(
fileName2
),
`
${
fileName2
}
tab was not restored after migration.`
);
...
...
test/smoke/src/areas/workbench/localization.test.ts
浏览文件 @
72bd5854
...
...
@@ -11,7 +11,6 @@ export function setup() {
describe
(
'
Localization
'
,
()
=>
{
before
(
async
function
()
{
const
app
=
this
.
app
as
SpectronApplication
;
this
.
app
.
suiteName
=
'
Localization
'
;
if
(
app
.
quality
===
Quality
.
Dev
)
{
return
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录