未验证 提交 03271d6f 编写于 作者: O openharmony_ci 提交者: Gitee

!8994 【ACE子系统】删除重复用例

Merge pull request !8994 from hekun/OpenHarmony-3.2-Release
...@@ -115,46 +115,29 @@ export default function listNewJsunit() { ...@@ -115,46 +115,29 @@ export default function listNewJsunit() {
}); });
/* /*
* @tc.number SUB_ACE_BASIC_ETS_API_0006 * @tc.number SUB_ACE_BASIC_ETS_API_0005
* @tc.name testListNe0006 * @tc.name testListNe0005
* @tc.desic acelistNeEtsTest0006 * @tc.desic acelistNeEtsTest0005
*/ */
it('testListNe0006', 0, async function (done) { it('testListNe0005', 0, async function (done) {
console.info('listNe testListNe0006 START'); console.info('listNe testListNe0005 START');
await Utils.sleep(2000); await Utils.sleep(2000);
let strJson = getInspectorByKey('list1'); let strJson = getInspectorByKey('list1');
console.info("[testListNe0006] component lanes strJson:" + strJson); console.info("[testListNe0005] component lanes strJson:" + strJson);
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('List'); expect(obj.$type).assertEqual('List');
expect(obj.$attrs.lanes).assertEqual(undefined); expect(obj.$attrs.lanes).assertEqual(undefined);
console.info("[testListNe0006] lanes value :" + obj.$attrs.lanes); console.info("[testListNe0005] lanes value :" + obj.$attrs.lanes);
done(); done();
}); });
/* /*
* @tc.number SUB_ACE_BASIC_ETS_API_0006 * @tc.number SUB_ACE_BASIC_ETS_API_0006
* @tc.name testListNe0006 * @tc.name testListNe0006
* @tc.desic acelistNeEtsTest0006 * @tc.desic acelistNeEtsTest0006
*/ */
it('testListNe0006', 0, async function (done) { it('testListNe0006', 0, async function (done) {
console.info('listNe testListNe0006 START'); console.info('listNe testListNe0006 START');
await Utils.sleep(2000);
let strJson = getInspectorByKey('list1');
console.info("[testListNe0006] component lanes strJson:" + strJson);
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('List');
expect(obj.$attrs.lanes).assertEqual(undefined);
console.info("[testListNe0006] lanes value :" + obj.$attrs.lanes);
done();
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0007
* @tc.name testListNe0007
* @tc.desic acelistNeEtsTest0007
*/
it('testListNe0007', 0, async function (done) {
console.info('listNe testListNe0007 START');
var innerEvent = { var innerEvent = {
eventId: 60216, eventId: 60216,
priority: events_emitter.EventPriority.LOW priority: events_emitter.EventPriority.LOW
...@@ -162,18 +145,18 @@ export default function listNewJsunit() { ...@@ -162,18 +145,18 @@ export default function listNewJsunit() {
var callback = (eventData) => { var callback = (eventData) => {
try{ try{
console.info("callback success" ); console.info("callback success" );
console.info("testListNe0007 eventData.data.result result is: " + eventData.data.result); console.info("testListNe0006 eventData.data.result result is: " + eventData.data.result);
expect(eventData.data.result).assertEqual("success"); expect(eventData.data.result).assertEqual("success");
console.info("testListNe0007 end"); console.info("testListNe0006 end");
}catch(err){ }catch(err){
console.info("testListNe0007 on events_emitter err : " + JSON.stringify(err)); console.info("testListNe0006 on events_emitter err : " + JSON.stringify(err));
} }
} }
try{ try{
console.info("testListNe0007 click result is: " + JSON.stringify(sendEventByKey('onScrollBegin', 10, ""))); console.info("testListNe0006 click result is: " + JSON.stringify(sendEventByKey('onScrollBegin', 10, "")));
events_emitter.on(innerEvent, callback); events_emitter.on(innerEvent, callback);
}catch(err){ }catch(err){
console.info("testListNe0007 on events_emitter err : " + JSON.stringify(err)); console.info("testListNe0006 on events_emitter err : " + JSON.stringify(err));
} }
done(); done();
}); });
......
...@@ -81,7 +81,7 @@ export default function routerJsunit() { ...@@ -81,7 +81,7 @@ export default function routerJsunit() {
* @tc.name tesRouter_002 * @tc.name tesRouter_002
* @tc.desc testRouterAPi * @tc.desc testRouterAPi
*/ */
it('testRouter_001', 0, async function (done) { it('testRouter_002', 0, async function (done) {
await Utils.sleep(2000); await Utils.sleep(2000);
try { try {
router.hideAlertBeforeBackPage(); router.hideAlertBeforeBackPage();
...@@ -92,7 +92,6 @@ export default function routerJsunit() { ...@@ -92,7 +92,6 @@ export default function routerJsunit() {
expect(error.code == 13004).assertTrue(); expect(error.code == 13004).assertTrue();
done(); done();
} }
}); });
......
...@@ -151,29 +151,8 @@ export default function stateManagementGetSharedJsunit() { ...@@ -151,29 +151,8 @@ export default function stateManagementGetSharedJsunit() {
console.info('teststateManagementsetAndProp0001 END'); console.info('teststateManagementsetAndProp0001 END');
}); });
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0007
* @tc.name test_setAndLink_0001
* @tc.desc bind localStorage
*/
it('test_setAndLink_0001', 0, async function (done) {
console.info('test_setAndLink_0001 START');
await Utils.sleep(2000);
try {
let storage = new LocalStorage()
storage.setAndLink<string>('storageSimpleProp', '121');
let size = storage.size()
expect(size == 1).assertTrue();
done();
} catch (err) {
console.info("test_font_registerFont_0001 err : " + JSON.stringify(err));
expect().assertFail();
done();
}
});
/* /*
* @tc.number SUB_ACE_BASIC_ETS_API_0007 * @tc.number SUB_ACE_BASIC_ETS_API_0001
* @tc.name test_setAndLink_0001 * @tc.name test_setAndLink_0001
* @tc.desc bind localStorage * @tc.desc bind localStorage
*/ */
......
...@@ -100,23 +100,6 @@ export default function SubscribaleAbstractJsunit() { ...@@ -100,23 +100,6 @@ export default function SubscribaleAbstractJsunit() {
done(); done();
}); });
/**
* @tc.number stateManagement_IPropertySubscriber_0100
* @tc.name stateManagement IPropertySubscriber validation
* @tc.desc Function test
*/
it('stateManagement_IPropertySubscriber_0100', 0, function (done) {
done();
return;
console.info('[stateManagement_IPropertySubscriber_0100] Start');
let iPropertySubscriber =new IPropertySubscriber();
let id = iPropertySubscriber.id();
let aboutToBeDeleted = iPropertySubscriber.aboutToBeDeleted();
expect(true).assertTrue();
console.info('[stateManagement_IPropertySubscriber_0100] END');
done();
});
/** /**
* @tc.number stateManagement_SyncedPropertyOneWay_0100 * @tc.number stateManagement_SyncedPropertyOneWay_0100
* @tc.name stateManagement stateManagement_SyncedPropertyOneWay_0100 validation * @tc.name stateManagement stateManagement_SyncedPropertyOneWay_0100 validation
......
...@@ -133,7 +133,7 @@ export default function progressJsunit() { ...@@ -133,7 +133,7 @@ export default function progressJsunit() {
* @tc.name testGetProgressAttr050 * @tc.name testGetProgressAttr050
* @tc.desc aceEtsTest * @tc.desc aceEtsTest
*/ */
it('testGetProgressAttr020', 0, async function (done) { it('testGetProgressAttr050', 0, async function (done) {
console.info('testGetProgressAttr5 START'); console.info('testGetProgressAttr5 START');
let strJson = getInspectorByKey('progress5'); let strJson = getInspectorByKey('progress5');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
......
...@@ -194,7 +194,7 @@ export default function appStorageJsunit() { ...@@ -194,7 +194,7 @@ export default function appStorageJsunit() {
* @tc.name appStorageTest009 * @tc.name appStorageTest009
* @tc.desc aceEtsTest * @tc.desc aceEtsTest
*/ */
it('appStorageTest008', 0, async function (done) { it('appStorageTest009', 0, async function (done) {
console.info('AppStorageTest009 START'); console.info('AppStorageTest009 START');
let strJson = getInspectorByKey('Button0_9'); let strJson = getInspectorByKey('Button0_9');
let obj = JSON.parse(strJson); let obj = JSON.parse(strJson);
......
...@@ -104,30 +104,6 @@ describe('aceJsTest', function () { ...@@ -104,30 +104,6 @@ describe('aceJsTest', function () {
done(); done();
}); });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testCameraComponent
* @tc.desc ACE
*/
it('testCameraComponent', 0, async function (done) {
console.info('testCameraComponent START');
let result;
let options = {
uri: 'pages/camera/router/index'
}
try {
result = router.push(options)
console.info("push camera page success " + JSON.stringify(result));
} catch (err) {
console.error("push camera page error " + JSON.stringify(result));
}
await sleep(1000)
let pages = router.getState();
console.info("[router.camera] getState" + JSON.stringify(pages));
expect("pages/camera/router/").assertEqual(pages.path);
done();
});
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0300 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0300
* @tc.name testInputComponent * @tc.name testInputComponent
...@@ -828,29 +804,6 @@ describe('aceJsTest', function () { ...@@ -828,29 +804,6 @@ describe('aceJsTest', function () {
done(); done();
}); });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testMarqueeComponent
* @tc.desc ACE
*/
it('testMarqueeComponent', 0, async function (done) {
let result;
let options = {
uri: 'pages/marquee/router/index'
}
try {
result = router.push(options)
console.info("push marquee page success " + JSON.stringify(result));
} catch (err) {
console.error("push marquee page error " + JSON.stringify(result));
}
await sleep(5000)
let pages = router.getState();
console.info("[router.marquee] getState" + JSON.stringify(pages));
expect("pages/marquee/router/").assertEqual(pages.path);
done();
});
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testRefreshComponent * @tc.name testRefreshComponent
...@@ -1220,7 +1173,7 @@ describe('aceJsTest', function () { ...@@ -1220,7 +1173,7 @@ describe('aceJsTest', function () {
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testCameraComponent * @tc.name testWebComponent
* @tc.desc ACE * @tc.desc ACE
*/ */
it('testWebComponent', 0, async function (done) { it('testWebComponent', 0, async function (done) {
......
...@@ -732,7 +732,7 @@ describe('videoPropsJsTest', function () { ...@@ -732,7 +732,7 @@ describe('videoPropsJsTest', function () {
* @tc.name testVideoAutoplayPropTrue * @tc.name testVideoAutoplayPropTrue
* @tc.desc ACE * @tc.desc ACE
*/ */
it('testVideoAutoplayPropFalse', 0, async function (done) { it('testVideoAutoplayPropTrue', 0, async function (done) {
console.info('testVideoAutoplayPropTrue START'); console.info('testVideoAutoplayPropTrue START');
console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value)); console.info("[videoProps] get globalThis.value is: " + JSON.stringify(globalThis.value));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册