提交 c2fb0919 编写于 作者: C chenxuihui

Hidebug.test.js fix bug

Signed-off-by: Nchenxuihui <chenxuhui2@huawei.com>
上级 a166fc30
...@@ -71,7 +71,7 @@ describe('HidebugJsTest', function () { ...@@ -71,7 +71,7 @@ describe('HidebugJsTest', function () {
* @tc.name : getPss * @tc.name : getPss
* @tc.desc : Get application process proportional set size memory information * @tc.desc : Get application process proportional set size memory information
*/ */
it('DFX_DFR_Hiprofiler_Interface_0004', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0004', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0004 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0004 Test start*************');
try { try {
const times = 3; const times = 3;
...@@ -87,7 +87,6 @@ describe('HidebugJsTest', function () { ...@@ -87,7 +87,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0004 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0004 Test end*************');
done();
}); });
/* /*
...@@ -95,7 +94,7 @@ describe('HidebugJsTest', function () { ...@@ -95,7 +94,7 @@ describe('HidebugJsTest', function () {
* @tc.name : getSharedDirty * @tc.name : getSharedDirty
* @tc.desc : Obtains the size of the shared dirty memory of a process. * @tc.desc : Obtains the size of the shared dirty memory of a process.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0005', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0005', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0005 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0005 Test start*************');
try { try {
let dirty = hidebug.getSharedDirty(); let dirty = hidebug.getSharedDirty();
...@@ -105,7 +104,6 @@ describe('HidebugJsTest', function () { ...@@ -105,7 +104,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0005 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0005 Test end*************');
done();
}); });
/* /*
...@@ -113,7 +111,7 @@ describe('HidebugJsTest', function () { ...@@ -113,7 +111,7 @@ describe('HidebugJsTest', function () {
* @tc.name : startProfiling with normal parameter * @tc.name : startProfiling with normal parameter
* @tc.desc : Start CPU Profiling. * @tc.desc : Start CPU Profiling.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0006', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0006', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0006 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0006 Test start*************');
try { try {
let timestamp = Date.now(); let timestamp = Date.now();
...@@ -129,7 +127,6 @@ describe('HidebugJsTest', function () { ...@@ -129,7 +127,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0006 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0006 Test end*************');
done();
}); });
/* /*
...@@ -137,7 +134,7 @@ describe('HidebugJsTest', function () { ...@@ -137,7 +134,7 @@ describe('HidebugJsTest', function () {
* @tc.name : startProfiling repeatedly * @tc.name : startProfiling repeatedly
* @tc.desc : Start CPU Profiling. * @tc.desc : Start CPU Profiling.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0007', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0007', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0007 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0007 Test start*************');
try { try {
let path1 = '/data/app/el2/100/base/com.hidebug.test/files/cpuprofiler-111.json' let path1 = '/data/app/el2/100/base/com.hidebug.test/files/cpuprofiler-111.json'
...@@ -157,7 +154,6 @@ describe('HidebugJsTest', function () { ...@@ -157,7 +154,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0007 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0007 Test end*************');
done();
}); });
/* /*
...@@ -165,7 +161,7 @@ describe('HidebugJsTest', function () { ...@@ -165,7 +161,7 @@ describe('HidebugJsTest', function () {
* @tc.name : startProfiling with empty parameter * @tc.name : startProfiling with empty parameter
* @tc.desc : Start CPU Profiling. * @tc.desc : Start CPU Profiling.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0008', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0008', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0008 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0008 Test start*************');
let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.json' let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.json'
try { try {
...@@ -185,7 +181,6 @@ describe('HidebugJsTest', function () { ...@@ -185,7 +181,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0008 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0008 Test end*************');
done();
}); });
/* /*
...@@ -193,7 +188,7 @@ describe('HidebugJsTest', function () { ...@@ -193,7 +188,7 @@ describe('HidebugJsTest', function () {
* @tc.name : startProfiling with overlong parameter * @tc.name : startProfiling with overlong parameter
* @tc.desc : Start CPU Profiling. * @tc.desc : Start CPU Profiling.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0009', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0009', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0009 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0009 Test start*************');
let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.json' let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.json'
try { try {
...@@ -217,7 +212,6 @@ describe('HidebugJsTest', function () { ...@@ -217,7 +212,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0009 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0009 Test end*************');
done();
}); });
/* /*
...@@ -225,7 +219,7 @@ describe('HidebugJsTest', function () { ...@@ -225,7 +219,7 @@ describe('HidebugJsTest', function () {
* @tc.name : dumpHeapData with normal parameter * @tc.name : dumpHeapData with normal parameter
* @tc.desc : Dump JS Virtual Machine Heap Snapshot. * @tc.desc : Dump JS Virtual Machine Heap Snapshot.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0010', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0010', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0010 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0010 Test start*************');
try { try {
let timestamp = Date.now(); let timestamp = Date.now();
...@@ -239,7 +233,6 @@ describe('HidebugJsTest', function () { ...@@ -239,7 +233,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0010 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0010 Test end*************');
done();
}); });
/* /*
...@@ -247,7 +240,7 @@ describe('HidebugJsTest', function () { ...@@ -247,7 +240,7 @@ describe('HidebugJsTest', function () {
* @tc.name : dumpHeapData with empty parameter * @tc.name : dumpHeapData with empty parameter
* @tc.desc : Dump JS Virtual Machine Heap Snapshot. * @tc.desc : Dump JS Virtual Machine Heap Snapshot.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0011', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0011', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0011 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0011 Test start*************');
let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.heapsnapshot' let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.heapsnapshot'
try { try {
...@@ -265,7 +258,6 @@ describe('HidebugJsTest', function () { ...@@ -265,7 +258,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0011 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0011 Test end*************');
done();
}); });
/* /*
...@@ -273,7 +265,7 @@ describe('HidebugJsTest', function () { ...@@ -273,7 +265,7 @@ describe('HidebugJsTest', function () {
* @tc.name : dumpHeapData with overlog parameter * @tc.name : dumpHeapData with overlog parameter
* @tc.desc : Dump JS Virtual Machine Heap Snapshot. * @tc.desc : Dump JS Virtual Machine Heap Snapshot.
*/ */
it('DFX_DFR_Hiprofiler_Interface_0012', 0, async function (done) { it('DFX_DFR_Hiprofiler_Interface_0012', 0, function () {
console.log('************* DFX_DFR_Hiprofiler_Interface_0012 Test start*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0012 Test start*************');
let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.heapsnapshot' let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.heapsnapshot'
try { try {
...@@ -295,7 +287,6 @@ describe('HidebugJsTest', function () { ...@@ -295,7 +287,6 @@ describe('HidebugJsTest', function () {
expect().assertFail(); expect().assertFail();
} }
console.log('************* DFX_DFR_Hiprofiler_Interface_0012 Test end*************'); console.log('************* DFX_DFR_Hiprofiler_Interface_0012 Test end*************');
done();
}); });
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册