提交 799617c8 编写于 作者: W wang-xupeng2

delete api

Signed-off-by: Nwang-xupeng2 <wangxupeng2@huawei.com>
上级 945e11c7
......@@ -25,7 +25,7 @@ const TAG = 'ets_apiLack_add';
struct Second {
private content: string = "这是第二页"
@State text: string = router.getParams()['text']
@State data: any = router.getParams()['data']
@State data: string = router.getParams()['data']
@State secondData : string = ''
build() {
......
......@@ -71,27 +71,5 @@ export default function alertDialogCenterStartJsunit() {
console.info("testalertDialogCenterStart0001 on events_emitter err : " + JSON.stringify(err));
}
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0002
* @tc.name testMeasureText0001
* @tc.desic test text width
*/
it('testMeasureText0001', 0, async function (done) {
console.info('testMeasureText0001 start');
await Utils.sleep(2000);
try {
let measureOptions = {textContent : "alertDialog-CenterStart"};
let width = measure.measureText(measureOptions);
console.info("++++++++++++++++++++++" + width.toString());
expect(width > 0).assertFalse();
done();
} catch (err) {
console.info("testMeasureText0001 err : " + JSON.stringify(err));
expect().assertFail();
done();
}
});
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册