Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
35379aba
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,发现更多精彩内容 >>
提交
35379aba
编写于
2月 11, 2020
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
smoke - headless option is troublesome
上级
06b06ca1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
11 deletion
+7
-11
.vscode/settings.json
.vscode/settings.json
+2
-0
test/automation/src/application.ts
test/automation/src/application.ts
+1
-2
test/automation/src/code.ts
test/automation/src/code.ts
+1
-3
test/automation/src/playwrightDriver.ts
test/automation/src/playwrightDriver.ts
+2
-3
test/smoke/src/main.ts
test/smoke/src/main.ts
+1
-3
未找到文件。
.vscode/settings.json
浏览文件 @
35379aba
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
"i18n/**"
:
true
,
"i18n/**"
:
true
,
"extensions/**/out/**"
:
true
,
"extensions/**/out/**"
:
true
,
"test/smoke/out/**"
:
true
,
"test/smoke/out/**"
:
true
,
"test/automation/out/**"
:
true
,
"test/integration/browser/out/**"
:
true
,
"src/vs/base/test/node/uri.test.data.txt"
:
true
"src/vs/base/test/node/uri.test.data.txt"
:
true
},
},
"lcov.path"
:
[
"lcov.path"
:
[
...
...
test/automation/src/application.ts
浏览文件 @
35379aba
...
@@ -126,8 +126,7 @@ export class Application {
...
@@ -126,8 +126,7 @@ export class Application {
extraArgs
,
extraArgs
,
remote
:
this
.
options
.
remote
,
remote
:
this
.
options
.
remote
,
web
:
this
.
options
.
web
,
web
:
this
.
options
.
web
,
browser
:
this
.
options
.
browser
,
browser
:
this
.
options
.
browser
headless
:
this
.
options
.
headless
});
});
this
.
_workbench
=
new
Workbench
(
this
.
_code
,
this
.
userDataPath
);
this
.
_workbench
=
new
Workbench
(
this
.
_code
,
this
.
userDataPath
);
...
...
test/automation/src/code.ts
浏览文件 @
35379aba
...
@@ -103,8 +103,6 @@ export interface SpawnOptions {
...
@@ -103,8 +103,6 @@ export interface SpawnOptions {
web
?:
boolean
;
web
?:
boolean
;
/** A specific browser to use (requires web: true) */
/** A specific browser to use (requires web: true) */
browser
?:
'
chromium
'
|
'
webkit
'
|
'
firefox
'
;
browser
?:
'
chromium
'
|
'
webkit
'
|
'
firefox
'
;
/** Run in headless mode (only applies when web is true) */
headless
?:
boolean
;
}
}
async
function
createDriverHandle
():
Promise
<
string
>
{
async
function
createDriverHandle
():
Promise
<
string
>
{
...
@@ -127,7 +125,7 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
...
@@ -127,7 +125,7 @@ export async function spawn(options: SpawnOptions): Promise<Code> {
if
(
options
.
web
)
{
if
(
options
.
web
)
{
await
launch
(
options
.
userDataDir
,
options
.
workspacePath
,
options
.
codePath
);
await
launch
(
options
.
userDataDir
,
options
.
workspacePath
,
options
.
codePath
);
connectDriver
=
connectPlaywrightDriver
.
bind
(
connectPlaywrightDriver
,
!!
options
.
headless
,
options
.
browser
);
connectDriver
=
connectPlaywrightDriver
.
bind
(
connectPlaywrightDriver
,
options
.
browser
);
}
else
{
}
else
{
const
env
=
process
.
env
;
const
env
=
process
.
env
;
...
...
test/automation/src/playwrightDriver.ts
浏览文件 @
35379aba
...
@@ -137,12 +137,11 @@ function waitForEndpoint(): Promise<string> {
...
@@ -137,12 +137,11 @@ function waitForEndpoint(): Promise<string> {
});
});
}
}
export
function
connect
(
headless
:
boolean
,
engine
:
'
chromium
'
|
'
webkit
'
|
'
firefox
'
=
'
chromium
'
):
Promise
<
{
client
:
IDisposable
,
driver
:
IDriver
}
>
{
export
function
connect
(
engine
:
'
chromium
'
|
'
webkit
'
|
'
firefox
'
=
'
chromium
'
):
Promise
<
{
client
:
IDisposable
,
driver
:
IDriver
}
>
{
return
new
Promise
(
async
(
c
)
=>
{
return
new
Promise
(
async
(
c
)
=>
{
const
browser
=
await
playwright
[
engine
].
launch
({
const
browser
=
await
playwright
[
engine
].
launch
({
// Run in Edge dev on macOS
// Run in Edge dev on macOS
// executablePath: '/Applications/Microsoft\ Edge\ Dev.app/Contents/MacOS/Microsoft\ Edge\ Dev',
// executablePath: '/Applications/Microsoft\ Edge\ Dev.app/Contents/MacOS/Microsoft\ Edge\ Dev'
headless
});
});
const
page
=
(
await
browser
.
defaultContext
().
pages
())[
0
];
const
page
=
(
await
browser
.
defaultContext
().
pages
())[
0
];
await
page
.
setViewport
({
width
,
height
});
await
page
.
setViewport
({
width
,
height
});
...
...
test/smoke/src/main.ts
浏览文件 @
35379aba
...
@@ -58,7 +58,6 @@ const opts = minimist(args, {
...
@@ -58,7 +58,6 @@ const opts = minimist(args, {
'
verbose
'
,
'
verbose
'
,
'
remote
'
,
'
remote
'
,
'
web
'
,
'
web
'
,
'
headless
'
,
'
ci
'
'
ci
'
],
],
default
:
{
default
:
{
...
@@ -246,8 +245,7 @@ function createOptions(): ApplicationOptions {
...
@@ -246,8 +245,7 @@ function createOptions(): ApplicationOptions {
screenshotsPath
,
screenshotsPath
,
remote
:
opts
.
remote
,
remote
:
opts
.
remote
,
web
:
opts
.
web
,
web
:
opts
.
web
,
browser
:
opts
.
browser
,
browser
:
opts
.
browser
headless
:
opts
.
headless
};
};
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录