提交 fe9a8d01 编写于 作者: C chengxingzhen

XTS系统api下库

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 f3a8bd07
...@@ -91,7 +91,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -91,7 +91,6 @@ describe('ActsStServiceAbilityTest', function () {
* @tc.desc: Verify that the interface executes the Shell command successfully. * @tc.desc: Verify that the interface executes the Shell command successfully.
*/ */
it('ACTS_AExecuteShellCommand_Promise_0100', 0, async function (done) { it('ACTS_AExecuteShellCommand_Promise_0100', 0, async function (done) {
console.log("ACTS_AExecuteShellCommand_Promise_0100 --- start")
var currentAlertTimeout = 0; var currentAlertTimeout = 0;
try { try {
currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout); currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout);
...@@ -208,7 +207,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -208,7 +207,6 @@ describe('ActsStServiceAbilityTest', function () {
); );
} catch (error) { } catch (error) {
clearTimeout(currentAlertTimeout); clearTimeout(currentAlertTimeout);
console.log("ACTS_AGetDisplayOrientation_0100 : error = " + error);
console.debug('ACTS_AGetDisplayOrientation_0100====<end catch (error)'); console.debug('ACTS_AGetDisplayOrientation_0100====<end catch (error)');
done(); done();
} }
...@@ -225,14 +223,11 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -225,14 +223,11 @@ describe('ActsStServiceAbilityTest', function () {
try { try {
currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout); currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout);
function mySetTimeout() { function mySetTimeout() {
console.log('ACTS_AGetDisplayOrientation_0200====<end mySetTimeout')
done(); done();
} }
var context = featureAbility.getContext() var context = featureAbility.getContext()
var result = await context.getDisplayOrientation().then((data) => { var result = await context.getDisplayOrientation().then((data) => {
clearTimeout(currentAlertTimeout); clearTimeout(currentAlertTimeout);
console.debug("ACTS_AGetDisplayOrientation_0200====DisplayOrientation>"
+ JSON.stringify(DisplayOrientation) + " , err= " + err);
expect(DisplayOrientation == bundle.DisplayOrientation.UNSPECIFIED expect(DisplayOrientation == bundle.DisplayOrientation.UNSPECIFIED
|| (DisplayOrientation != bundle.DisplayOrientation.LANDSCAPE || (DisplayOrientation != bundle.DisplayOrientation.LANDSCAPE
|| DisplayOrientation != bundle.DisplayOrientation.PORTRAIT || DisplayOrientation != bundle.DisplayOrientation.PORTRAIT
...@@ -267,8 +262,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -267,8 +262,6 @@ describe('ActsStServiceAbilityTest', function () {
var result = context.setDisplayOrientation(bundle.DisplayOrientation.UNSPECIFIED, var result = context.setDisplayOrientation(bundle.DisplayOrientation.UNSPECIFIED,
(err) => { (err) => {
clearTimeout(currentAlertTimeout); clearTimeout(currentAlertTimeout);
console.debug("ACTS_ASetDisplayOrientation_0100====err>"
+ JSON.stringify(err) + " , err= " + err);
done() done()
} }
); );
...@@ -291,7 +284,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -291,7 +284,6 @@ describe('ActsStServiceAbilityTest', function () {
try { try {
currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout); currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout);
function mySetTimeout() { function mySetTimeout() {
console.log('ACTS_ASetDisplayOrientation_0200====<end mySetTimeout')
done(); done();
} }
var context = featureAbility.getContext() var context = featureAbility.getContext()
...@@ -326,8 +318,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -326,8 +318,6 @@ describe('ActsStServiceAbilityTest', function () {
var result = context.setShowOnLockScreen(true, var result = context.setShowOnLockScreen(true,
(err) => { (err) => {
clearTimeout(currentAlertTimeout); clearTimeout(currentAlertTimeout);
console.debug("ACTS_ASetShowOnLockScreen_0100====err>"
+ JSON.stringify(err) + " , err= " + err);
done() done()
} }
); );
...@@ -350,7 +340,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -350,7 +340,6 @@ describe('ActsStServiceAbilityTest', function () {
try { try {
currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout); currentAlertTimeout = setTimeout(mySetTimeout, gSetTimeout);
function mySetTimeout() { function mySetTimeout() {
console.log('ACTS_ASetShowOnLockScreen_0200====<end mySetTimeout')
done(); done();
} }
var context = featureAbility.getContext() var context = featureAbility.getContext()
...@@ -362,7 +351,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -362,7 +351,6 @@ describe('ActsStServiceAbilityTest', function () {
); );
} catch (error) { } catch (error) {
clearTimeout(currentAlertTimeout); clearTimeout(currentAlertTimeout);
console.log("ACTS_ASetShowOnLockScreen_0200 : error = " + error);
console.debug('ACTS_ASetShowOnLockScreen_0200====<end catch (error)'); console.debug('ACTS_ASetShowOnLockScreen_0200====<end catch (error)');
done(); done();
} }
...@@ -386,8 +374,6 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -386,8 +374,6 @@ describe('ActsStServiceAbilityTest', function () {
var result = context.setWakeUpScreen(true, var result = context.setWakeUpScreen(true,
(err) => { (err) => {
clearTimeout(currentAlertTimeout); clearTimeout(currentAlertTimeout);
console.debug("ACTS_ASetWakeUpScreen_0100====err>"
+ JSON.stringify(err) + " , err= " + err);
done() done()
} }
); );
...@@ -440,18 +426,14 @@ describe('ActsStServiceAbilityTest', function () { ...@@ -440,18 +426,14 @@ describe('ActsStServiceAbilityTest', function () {
console.debug("ACTS_ATestRunner_0200====>getArguments is====>" + JSON.stringify(AbilityDelegatorArgs)); console.debug("ACTS_ATestRunner_0200====>getArguments is====>" + JSON.stringify(AbilityDelegatorArgs));
console.debug("ACTS_ATestRunner_0200====bundleName>" + JSON.stringify(AbilityDelegatorArgs.bundleName)); console.debug("ACTS_ATestRunner_0200====bundleName>" + JSON.stringify(AbilityDelegatorArgs.bundleName));
expect(AbilityDelegatorArgs.bundleName).assertEqual(undefined) expect(AbilityDelegatorArgs.bundleName).assertEqual(undefined)
console.debug("ACTS_ATestRunner_0200====parameters>" + JSON.stringify(AbilityDelegatorArgs.parameters));
expect(AbilityDelegatorArgs.parameters).assertEqual(undefined) expect(AbilityDelegatorArgs.parameters).assertEqual(undefined)
console.debug("ACTS_ATestRunner_0200====testCaseNames>" console.debug("ACTS_ATestRunner_0200====testCaseNames>"
+ JSON.stringify(AbilityDelegatorArgs.testCaseNames)); + JSON.stringify(AbilityDelegatorArgs.testCaseNames));
expect(AbilityDelegatorArgs.testCaseNames).assertEqual(undefined) expect(AbilityDelegatorArgs.testCaseNames).assertEqual(undefined)
console.debug("ACTS_ATestRunner_0200====testRunnerClassName>"
+ JSON.stringify(AbilityDelegatorArgs.testRunnerClassName));
expect(AbilityDelegatorArgs.testRunnerClassName).assertEqual(undefined) expect(AbilityDelegatorArgs.testRunnerClassName).assertEqual(undefined)
console.debug('ACTS_ATestRunner_0200====<end'); console.debug('ACTS_ATestRunner_0200====<end');
done(); done();
} catch (error) { } catch (error) {
console.log("ACTS_ATestRunner_0200 : error = " + error);
console.debug('ACTS_ATestRunner_0200====<end catch (error)'); console.debug('ACTS_ATestRunner_0200====<end catch (error)');
done(); done();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册