Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
52e2dd89
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
52e2dd89
编写于
1月 30, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 30, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7276 测试套内存泄漏问题回合1018分支
Merge pull request !7276 from chenxuihui/monthly_20221018
上级
58e41963
304cc2e1
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
4 addition
and
30 deletion
+4
-30
hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js
hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js
+0
-12
hiviewdfx/hicheckertest/hicheckerjstest/src/main/js/test/HiChecker.test.js
...ertest/hicheckerjstest/src/main/js/test/HiChecker.test.js
+1
-8
hiviewdfx/hitracemetertest/src/main/js/test/hitracemeter_test.js
...fx/hitracemetertest/src/main/js/test/hitracemeter_test.js
+0
-9
hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/test/faultlogger.test.js
...logger/faultloggerjs/src/main/js/test/faultlogger.test.js
+3
-1
未找到文件。
hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js
浏览文件 @
52e2dd89
...
@@ -17,24 +17,13 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
...
@@ -17,24 +17,13 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
export
default
function
BytraceTest
()
{
export
default
function
BytraceTest
()
{
describe
(
"
BytraceTest
"
,
function
()
{
describe
(
"
BytraceTest
"
,
function
()
{
async
function
msleep
(
time
)
{
var
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
);
});
var
result
=
await
promise
;
}
it
(
"
DFX_DFR_Bytrace_0100
"
,
0
,
async
function
(
done
)
{
it
(
"
DFX_DFR_Bytrace_0100
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
-------DFX_DFR_Bytrace_0100 start--------
"
);
console
.
info
(
"
-------DFX_DFR_Bytrace_0100 start--------
"
);
await
msleep
(
3000
);
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_Bytrace_0100 i =
"
+
i
)
console
.
info
(
"
DFX_DFR_Bytrace_0100 i =
"
+
i
)
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
startTrace start
"
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
startTrace start
"
);
bytrace
.
startTrace
(
"
test-
"
+
i
.
toString
(),
111
+
i
,
5000
);
bytrace
.
startTrace
(
"
test-
"
+
i
.
toString
(),
111
+
i
,
5000
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
startTrace end
"
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
startTrace end
"
);
// await msleep(3000);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
finishTrace start
"
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
finishTrace start
"
);
bytrace
.
finishTrace
(
"
test-
"
+
i
.
toString
(),
111
+
i
);
bytrace
.
finishTrace
(
"
test-
"
+
i
.
toString
(),
111
+
i
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
finishTrace end
"
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
finishTrace end
"
);
...
@@ -155,7 +144,6 @@ describe("BytraceTest", function () {
...
@@ -155,7 +144,6 @@ describe("BytraceTest", function () {
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_Bytrace_0400 :
"
+
i
);
console
.
info
(
"
DFX_DFR_Bytrace_0400 :
"
+
i
);
bytrace
.
traceByValue
(
"
test4-
"
+
i
.
toString
(),
3
+
i
);
bytrace
.
traceByValue
(
"
test4-
"
+
i
.
toString
(),
3
+
i
);
await
msleep
(
1000
);
}
}
console
.
info
(
"
DFX_DFR_Bytrace_0400 end
"
);
console
.
info
(
"
DFX_DFR_Bytrace_0400 end
"
);
done
();
done
();
...
...
hiviewdfx/hicheckertest/hicheckerjstest/src/main/js/test/HiChecker.test.js
浏览文件 @
52e2dd89
...
@@ -39,13 +39,6 @@ describe('HiCheckerTest', function () {
...
@@ -39,13 +39,6 @@ describe('HiCheckerTest', function () {
console
.
info
(
'
HiCheckerTest afterEach called
'
)
console
.
info
(
'
HiCheckerTest afterEach called
'
)
})
})
async
function
msleep
(
time
)
{
let
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
)
});
let
result
=
await
promise
;
}
/**
/**
* @tc.number
* @tc.number
* @tc.name DFX_DFR_Hichecker_Interface_0100
* @tc.name DFX_DFR_Hichecker_Interface_0100
...
@@ -92,7 +85,7 @@ describe('HiCheckerTest', function () {
...
@@ -92,7 +85,7 @@ describe('HiCheckerTest', function () {
expect
(
hichecker
.
contains
(
0
)).
assertEqual
(
false
);
expect
(
hichecker
.
contains
(
0
)).
assertEqual
(
false
);
hichecker
.
addRule
(
999999
);
hichecker
.
addRule
(
999999
);
console
.
log
(
'
add wrong rule!
'
);
console
.
log
(
'
add wrong rule!
'
);
expect
(
hichecker
.
contains
(
-
1
)).
assertEqual
(
false
);
expect
(
hichecker
.
contains
(
999999
)).
assertEqual
(
false
);
})
})
/**
/**
...
...
hiviewdfx/hitracemetertest/src/main/js/test/hitracemeter_test.js
浏览文件 @
52e2dd89
...
@@ -17,16 +17,8 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
...
@@ -17,16 +17,8 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
export
default
function
HitraceMeterTest
()
{
export
default
function
HitraceMeterTest
()
{
describe
(
"
HitraceMeterTest
"
,
function
()
{
describe
(
"
HitraceMeterTest
"
,
function
()
{
async
function
msleep
(
time
)
{
var
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
);
});
var
result
=
await
promise
;
}
it
(
"
DFX_DFR_HitraceMeter_0100
"
,
0
,
async
function
(
done
)
{
it
(
"
DFX_DFR_HitraceMeter_0100
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
-------DFX_DFR_HitraceMeter_0100 start--------
"
);
console
.
info
(
"
-------DFX_DFR_HitraceMeter_0100 start--------
"
);
await
msleep
(
3000
);
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_HitraceMeter_0100 i =
"
+
i
)
console
.
info
(
"
DFX_DFR_HitraceMeter_0100 i =
"
+
i
)
console
.
info
(
"
DFX_DFR_HitraceMeter_0100
"
+
i
.
toString
()
+
"
startTrace start
"
);
console
.
info
(
"
DFX_DFR_HitraceMeter_0100
"
+
i
.
toString
()
+
"
startTrace start
"
);
...
@@ -152,7 +144,6 @@ describe("HitraceMeterTest", function () {
...
@@ -152,7 +144,6 @@ describe("HitraceMeterTest", function () {
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_HitraceMeter_0400 :
"
+
i
);
console
.
info
(
"
DFX_DFR_HitraceMeter_0400 :
"
+
i
);
hiTraceMeter
.
traceByValue
(
"
test4-
"
+
i
.
toString
(),
3
+
i
);
hiTraceMeter
.
traceByValue
(
"
test4-
"
+
i
.
toString
(),
3
+
i
);
await
msleep
(
1000
);
}
}
console
.
info
(
"
DFX_DFR_HitraceMeter_0400 end
"
);
console
.
info
(
"
DFX_DFR_HitraceMeter_0400 end
"
);
done
();
done
();
...
...
hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/test/faultlogger.test.js
浏览文件 @
52e2dd89
...
@@ -35,10 +35,12 @@ describe("FaultlogJsTest", function () {
...
@@ -35,10 +35,12 @@ describe("FaultlogJsTest", function () {
})
})
async
function
msleep
(
time
)
{
async
function
msleep
(
time
)
{
let
timeoutID
=
null
;
let
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
let
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
)
timeoutID
=
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
)
});
});
let
result
=
await
promise
;
let
result
=
await
promise
;
clearTimeout
(
timeoutID
);
}
}
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录