未验证 提交 03fe0783 编写于 作者: O openharmony_ci 提交者: Gitee

!4682 XTS编译问题整改

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