未验证 提交 205214f5 编写于 作者: O openharmony_ci 提交者: Gitee

!8565 bytrace模块startTrace接口增加可选参数传参undefined测试

Merge pull request !8565 from chenxuihui/master
......@@ -201,6 +201,22 @@ describe("BytraceTest", function () {
console.info("------DFX_DFR_Bytrace_0500 end------");
done();
})
it("DFX_DFR_Bytrace_0600", 0, async function (done) {
console.info("-------DFX_DFR_Bytrace_0600 start--------");
let flag = true;
try {
bytrace.startTrace("funcA", 111, undefined);
expect(flag).assertTrue();
} catch (err) {
flag = false;
console.info("DFX_DFR_Bytrace_0600 fail!");
console.info("DFX_DFR_Bytrace_0600 err = " + err);
expect(flag).assertTrue();
}
console.info("------DFX_DFR_Bytrace_0600 end------");
done();
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册