提交 ce84b214 编写于 作者: C chengxingzhen

XTS元能力失败用例添加

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 667b91b7
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_DoAbilityForeground_0100_Event====>"); console.debug("====>Publish CallBack ACTS_DoAbilityForeground_0100_Event====>");
setTimeout(()=>{ setTimeout(()=>{
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_DoAbilityForeground_0300_Event====>"); console.debug("====>Publish CallBack ACTS_DoAbilityForeground_0300_Event====>");
globalThis.abilityContext.terminateSelf().then(()=>{ globalThis.abilityContext.terminateSelf().then(()=>{
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack Event====>"); console.debug("====>Publish CallBack Event====>");
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack Event====>"); console.debug("====>Publish CallBack Event====>");
} }
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from "@ohos.commonevent" import commonEvent from "@ohos.commonEvent"
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack AACommand_Debugapp====>"); console.debug("====>Publish CallBack AACommand_Debugapp====>");
console.debug("====>close this context====>====>"); console.debug("====>close this context====>====>");
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import commonEvent from "@ohos.commonevent" import commonEvent from "@ohos.commonEvent"
var subscriberInfo_startdebugapp = { var subscriberInfo_startdebugapp = {
events: ["AACommand_Debugapp"], events: ["AACommand_Debugapp"],
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from "@ohos.commonevent" import commonEvent from "@ohos.commonEvent"
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack AACommand_Debugapp====>"); console.debug("====>Publish CallBack AACommand_Debugapp====>");
console.debug("====>close this context====>====>"); console.debug("====>close this context====>====>");
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import commonEvent from "@ohos.commonevent" import commonEvent from "@ohos.commonEvent"
var subscriberInfo_startdebugapp = { var subscriberInfo_startdebugapp = {
events: ["AACommand_Debugapp"], events: ["AACommand_Debugapp"],
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import appManager from '@ohos.application.AppManager'; import appManager from '@ohos.application.appManager';
const DELAY = 3000 const DELAY = 3000
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
export default function abilityTest() { export default function abilityTest() {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import appManager from '@ohos.application.AppManager'; import appManager from '@ohos.application.appManager';
const DELAY = 3000 const DELAY = 3000
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
export default function abilityTest() { export default function abilityTest() {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBack() { function PublishCallBack() {
console.debug("====>Publish CallBack ====>"); console.debug("====>Publish CallBack ====>");
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>");
console.debug("====>close this context====>3====>"); console.debug("====>close this context====>3====>");
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>");
console.debug("====>close this context====>4====>"); console.debug("====>close this context====>4====>");
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index" import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index"
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
var subscriberInfo_MainAbility = { var subscriberInfo_MainAbility = {
events: ["ACTS_StartAbility_CommonEvent"] events: ["ACTS_StartAbility_CommonEvent"]
}; };
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne2() { function PublishCallBackOne2() {
console.debug("====>Publish CallBack ACTS_StartAbility2_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility2_CommonEvent====>");
globalThis.ability2Context.terminateSelf(); globalThis.ability2Context.terminateSelf();
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
const START_ABILITY_TIMEOUT = 5000; const START_ABILITY_TIMEOUT = 5000;
var GetAppContext1 = { var GetAppContext1 = {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne2() { function PublishCallBackOne2() {
console.debug("====>Publish CallBack ACTS_StartAbility2_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility2_CommonEvent====>");
globalThis.ability2Context.terminateSelf(); globalThis.ability2Context.terminateSelf();
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
const START_ABILITY_TIMEOUT = 5000; const START_ABILITY_TIMEOUT = 5000;
var GetAppContext1 = { var GetAppContext1 = {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne2() { function PublishCallBackOne2() {
console.debug("====>Publish CallBack ACTS_StartAbility2_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_StartAbility2_CommonEvent====>");
globalThis.ability2Context.terminateSelf(); globalThis.ability2Context.terminateSelf();
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
const START_ABILITY_TIMEOUT = 5000; const START_ABILITY_TIMEOUT = 5000;
var GetAppContext1 = { var GetAppContext1 = {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack GetCurrentTopAbility2====>"); console.debug("====>Publish CallBack GetCurrentTopAbility2====>");
console.debug("====>close this context====>3====>"); console.debug("====>close this context====>3====>");
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import abilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import abilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import commonEvent from "@ohos.commonevent" import commonEvent from "@ohos.commonEvent"
var subscriberInfo_MainAbility2 = { var subscriberInfo_MainAbility2 = {
events: ["GetCurrentTopAbilityB"], events: ["GetCurrentTopAbilityB"],
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function publishCallBackOne() { function publishCallBackOne() {
console.debug("====>Publish CallBack GetCurrentTopAbility"); console.debug("====>Publish CallBack GetCurrentTopAbility");
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import abilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import abilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import commonEvent from "@ohos.commonevent" import commonEvent from "@ohos.commonEvent"
var subscriberInfo_MainAbility2 = { var subscriberInfo_MainAbility2 = {
events: ["GetCurrentTopAbility"], events: ["GetCurrentTopAbility"],
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'hypium/index'
import appManager from '@ohos.application.AppManager'; import appManager from '@ohos.application.appManager';
export default function abilityTest() { export default function abilityTest() {
describe('ACTS_ExecuteShellCommandTest', function () { describe('ACTS_ExecuteShellCommandTest', function () {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>");
console.debug("====>close this context====>3====>"); console.debug("====>close this context====>3====>");
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Ability from '@ohos.application.Ability' import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
function PublishCallBackOne() { function PublishCallBackOne() {
console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>"); console.debug("====>Publish CallBack ACTS_Start_CommonEvent====>");
console.debug("====>close this context====>4====>"); console.debug("====>close this context====>4====>");
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index" import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "hypium/index"
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import commonEvent from '@ohos.commonevent' import commonEvent from '@ohos.commonEvent'
var subscriberInfo_MainAbility = { var subscriberInfo_MainAbility = {
events: ["ACTS_Start_CommonEvent"] events: ["ACTS_Start_CommonEvent"]
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册