提交 34ccbf27 编写于 作者: Z zhoujun62

XTS ActsAmsNewWantTest and ActsfwkDataAccessorTest fail

Signed-off-by: Nzhoujun62 <zhoujun62@huawei.com>
上级 7ddddce1
......@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import dataAbility from '@ohos.data.dataAbility'
import featureAbility from '@ohos.ability.featureAbility'
import dataAbility from '@ohos.data.dataAbility'
import fileio from '@ohos.fileio'
import dataRdb from '@ohos.data.rdb'
......@@ -251,4 +251,4 @@ export default {
}
callback("success", uri);
}
};
\ No newline at end of file
};
......@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import dataAbility from '@ohos.data.dataAbility'
import featureAbility from '@ohos.ability.featureAbility'
import dataAbility from '@ohos.data.dataAbility'
import fileio from '@ohos.fileio'
import dataRdb from '@ohos.data.rdb'
......@@ -251,4 +251,4 @@ export default {
}
callback("success", uri);
}
};
\ No newline at end of file
};
......@@ -12,8 +12,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import dataAbility from '@ohos.data.dataAbility'
import featureAbility from '@ohos.ability.featureAbility'
import dataAbility from '@ohos.data.dataAbility'
import fileio from '@ohos.fileio'
import dataRdb from '@ohos.data.rdb'
......@@ -213,4 +213,4 @@ export default {
}
callback("success", uri);
}
};
\ No newline at end of file
};
......@@ -16,6 +16,15 @@
import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonEvent'
function sleep(delay) {
let start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
export default class MainAbility extends Ability {
onCreate(want, launchParam) {
// Ability is creating, initialize resources for this ability
......@@ -48,6 +57,7 @@ export default class MainAbility extends Ability {
}
onForeground() {
sleep(1000)
// Ability has brought to foreground
console.log("ACTS_NewWant MainAbility onForeground")
if (globalThis.abilityWant.action == 'startHapC') {
......
......@@ -16,6 +16,15 @@
import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonEvent'
function sleep(delay) {
let start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
export default class MainAbility extends Ability {
onCreate(want, launchParam) {
// Ability is creating, initialize resources for this ability
......@@ -48,6 +57,7 @@ export default class MainAbility extends Ability {
}
onForeground() {
sleep(1000)
// Ability has brought to foreground
console.log("ACTS_NewWant MainAbility onForeground")
if (globalThis.abilityWant.action == 'startHapB') {
......
......@@ -16,6 +16,15 @@
import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonEvent'
function sleep(delay) {
let start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
export default class MainAbility extends Ability {
onCreate(want, launchParam) {
// Ability is creating, initialize resources for this ability
......@@ -48,6 +57,7 @@ export default class MainAbility extends Ability {
}
onForeground() {
sleep(1000)
// Ability has brought to foreground
console.log("ACTS_NewWant MainAbility onForeground")
if (globalThis.abilityWant.action == 'startStandard0400') {
......
......@@ -16,6 +16,15 @@
import Ability from '@ohos.application.Ability'
import commonEvent from '@ohos.commonEvent'
function sleep(delay) {
let start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
export default class SecondAbility extends Ability {
onCreate(want, launchParam) {
......@@ -48,6 +57,7 @@ export default class SecondAbility extends Ability {
}
onForeground() {
sleep(1000)
// Ability has brought to foreground
var connId;
console.log("ACTS_NewWant SecondAbility onForeground")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册