提交 6f676894 编写于 作者: H hekun

delete Repeate case

Signed-off-by: Nhekun <hekun18@huawei.com>
上级 24d40e0c
...@@ -115,19 +115,19 @@ export default function listNewJsunit() { ...@@ -115,19 +115,19 @@ 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('testListNe0005', 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('4'); expect(obj.$attrs.lanes).assertEqual('4');
console.info("[testListNe0006] lanes value :" + obj.$attrs.lanes); console.info("[testListNe0005] lanes value :" + obj.$attrs.lanes);
done(); done();
}); });
......
...@@ -214,11 +214,11 @@ export default function stateManagementGetSharedJsunit() { ...@@ -214,11 +214,11 @@ export default function stateManagementGetSharedJsunit() {
/* /*
* @tc.number SUB_ACE_BASIC_ETS_API_0008 * @tc.number SUB_ACE_BASIC_ETS_API_0008
* @tc.name test_setAndProp_0001 * @tc.name test_setAndProp_0002
* @tc.desc bind localStorage * @tc.desc bind localStorage
*/ */
it('test_setAndProp_0001', 0, async function (done) { it('test_setAndProp_0002', 0, async function (done) {
console.info('test_setAndProp_0001 START'); console.info('test_setAndProp_0002 START');
await Utils.sleep(2000); await Utils.sleep(2000);
try { try {
let storage = new LocalStorage() let storage = new LocalStorage()
...@@ -227,7 +227,7 @@ export default function stateManagementGetSharedJsunit() { ...@@ -227,7 +227,7 @@ export default function stateManagementGetSharedJsunit() {
expect(size == 1).assertTrue(); expect(size == 1).assertTrue();
done(); done();
} catch (err) { } catch (err) {
console.info("test_setAndProp_0001 err : " + JSON.stringify(err)); console.info("test_setAndProp_0002 err : " + JSON.stringify(err));
expect().assertFail(); expect().assertFail();
done(); done();
} }
......
...@@ -99,24 +99,7 @@ export default function SubscribaleAbstractJsunit() { ...@@ -99,24 +99,7 @@ export default function SubscribaleAbstractJsunit() {
console.info('[stateManagement_IPropertySubscriber_0100] END'); console.info('[stateManagement_IPropertySubscriber_0100] END');
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);
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
* limitations under the License. * limitations under the License.
*/ */
// @ts-nocheck
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "@ohos/hypium" import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "@ohos/hypium"
import router from '@system.router'; import router from '@system.router';
...@@ -22,7 +21,7 @@ export default function appStorageJsunit() { ...@@ -22,7 +21,7 @@ export default function appStorageJsunit() {
function sleep(time) { function sleep(time) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
setTimeout(() => { setTimeout(() => {
resolve() resolve('ok')
}, time * 1000) }, time * 1000)
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
...@@ -44,7 +43,7 @@ export default function appStorageJsunit() { ...@@ -44,7 +43,7 @@ export default function appStorageJsunit() {
console.info("push AppStorage page success " + JSON.stringify(result)); console.info("push AppStorage page success " + JSON.stringify(result));
} }
} catch (err) { } catch (err) {
console.error("push AppStorage page error " + JSON.stringify(result)); console.error("push AppStorage page error " + JSON.stringify(err));
} }
await sleep(2) await sleep(2)
done() done()
...@@ -194,7 +193,7 @@ export default function appStorageJsunit() { ...@@ -194,7 +193,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);
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"hilog -Q pidoff",
"power-shell wakeup", "power-shell wakeup",
"power-shell setmode 602" "power-shell setmode 602"
] ]
......
...@@ -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,28 +804,6 @@ describe('aceJsTest', function () { ...@@ -828,28 +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
...@@ -1199,7 +1153,7 @@ describe('aceJsTest', function () { ...@@ -1199,7 +1153,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) {
......
...@@ -515,7 +515,7 @@ describe('videoPropsJsTest', function () { ...@@ -515,7 +515,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.
先完成此消息的编辑!
想要评论请 注册