Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
半栈学徒
incubator-echarts
提交
d06e7382
I
incubator-echarts
项目概览
半栈学徒
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d06e7382
编写于
5月 05, 2021
作者:
P
pissang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test(visual): optimize ui
上级
c382330b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
44 addition
and
41 deletion
+44
-41
test/runTest/client/client.css
test/runTest/client/client.css
+8
-1
test/runTest/client/client.js
test/runTest/client/client.js
+7
-10
test/runTest/client/index.html
test/runTest/client/index.html
+29
-30
未找到文件。
test/runTest/client/client.css
浏览文件 @
d06e7382
...
...
@@ -37,6 +37,11 @@
height
:
55px
;
}
.header
>*
{
display
:
inline-block
;
vertical-align
:
middle
;
}
.header
h1
{
color
:
#222
;
line-height
:
50px
;
...
...
@@ -79,7 +84,7 @@
z-index
:
1
;
position
:
sticky
;
width
:
100%
;
padding
:
5px
2
0px
;
padding
:
5px
4
0px
;
top
:
0px
;
background
:
#896bda
;
...
...
@@ -99,6 +104,8 @@
.run-config-item
{
margin
:
0
5px
;
color
:
#fff
;
font-size
:
12px
;
}
.run-config-item
>*
{
display
:
inline-block
;
...
...
test/runTest/client/client.js
浏览文件 @
d06e7382
...
...
@@ -78,6 +78,8 @@ function processTestsData(tests, oldTestsData) {
test
.
summary
=
'
warning
'
;
}
// To simplify the condition in sort
test
.
actualErrors
=
test
.
actualErrors
||
[];
// Keep select status not change.
if
(
oldTestsData
&&
oldTestsData
[
idx
])
{
test
.
selected
=
oldTestsData
[
idx
].
selected
;
...
...
@@ -187,20 +189,15 @@ const app = new Vue({
let
sortFunc
=
this
.
runConfig
.
sortBy
===
'
name
'
?
(
a
,
b
)
=>
a
.
name
.
localeCompare
(
b
.
name
)
:
(
a
,
b
)
=>
{
if
(
a
.
percentage
===
b
.
percentage
)
{
if
(
a
.
actualErrors
&&
b
.
actualErrors
)
{
if
(
a
.
actualErrors
.
length
===
b
.
actualErrors
.
length
)
{
return
a
.
name
.
localeCompare
(
b
.
name
);
}
else
{
return
b
.
actualErrors
.
length
-
a
.
actualErrors
.
length
;
}
if
(
a
.
actualErrors
.
length
===
b
.
actualErrors
.
length
)
{
if
(
a
.
percentage
===
b
.
percentage
)
{
return
a
.
name
.
localeCompare
(
b
.
name
);
}
else
{
return
a
.
name
.
localeCompare
(
b
.
name
)
;
return
a
.
percentage
-
b
.
percentage
;
}
}
return
a
.
percentage
-
b
.
percentage
;
return
b
.
actualErrors
.
length
-
a
.
actualErrors
.
length
;
};
if
(
!
this
.
searchString
)
{
...
...
test/runTest/client/index.html
浏览文件 @
d06e7382
...
...
@@ -63,26 +63,26 @@ under the License.
</span>
<i
class=
"el-icon-loading"
v-if=
"test.status === 'pending' && running"
></i>
<
el-tooltip
v-if=
"test.status === 'finished'"
>
<div
slot=
"content"
>
{{test.percentage}}% Passed
</div
>
<el-progress
type=
"circle
"
:width=
"20
"
:stroke-width=
"2"
:percentage=
"test.percentage"
:status=
"test.summary"
></el-progress
>
</el-tooltip>
<el-tooltip
v-else-if=
"test.status==='finished' && test.actualErrors && test.actualErrors.length >
0"
>
<div
slot=
"content"
>
{{test.actualErrors.length}} Errors
</div>
<i
class=
"el-icon-message-solid
"
style=
"color: #F56C6C"
></i
>
</
el-tooltip
>
<
template
v-if=
"test.status === 'finished'"
>
<el-tooltip
v-if=
"test.actualErrors && test.actualErrors.length > 0"
>
<div
slot=
"content"
>
{{test.actualErrors.length}} Errors
</div>
<i
class=
"el-icon-message-solid
"
style=
"color: #F56C6C
"
></i>
</el-tooltip>
<el-tooltip
v-else
>
<div
slot=
"content"
>
{{test.percentage}}% Passed
</div
>
<el-progress
type=
"circle"
:width=
"2
0"
:stroke-width=
"2"
:percentage=
"test.percentage"
:status=
"test.summary
"
></el-progress>
</el-tooltip
>
</
template
>
<el-tooltip
content=
"Not yet run"
v-else-if=
"!(test.status === 'pending' && running)"
...
...
@@ -101,6 +101,15 @@ under the License.
</el-aside>
<el-main>
<div
class=
"test-run-controls"
>
<div
class=
"run-config-item"
>
<el-tooltip
content=
"Show All Tests Runs"
>
<div
style=
"cursor: pointer;"
@
click=
"showAllTestsRuns"
>
<i
style=
"font-size:20px;vertical-align:middle;display:inline-block;"
class=
"el-icon-files"
></i>
<span
style=
"vertical-align:middle;display:inline-block;"
>
ALL RUNS
</span>
</div>
</el-tooltip>
</div>
<div
class=
"run-config-item"
>
<el-dropdown
v-if=
"!running"
split-button
size=
"mini"
title=
"Run"
@
click=
"run('selected')"
...
...
@@ -130,16 +139,6 @@ under the License.
</el-tooltip>
</div>
<div
class=
"run-config-item"
>
<el-tooltip
content=
"Show All Tests Runs"
>
<i
style=
"font-size: 20px; cursor: pointer;"
class=
"el-icon-files"
@
click=
"showAllTestsRuns"
></i>
</el-tooltip>
</div>
<div
class=
"run-config-item"
>
<span
class=
"label"
>
Expected
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录