提交 eff671b0 编写于 作者: X xuchenghua09

fix

Signed-off-by: Nxuchenghua09 <xuchenghua09@huawei.com>
上级 b52312df
......@@ -14,6 +14,7 @@
*/
import ServiceExtensionAbility from '@ohos.application.ServiceExtensionAbility'
import Want from '@ohos.application.Want';
import rpc from '@ohos.rpc';
class Stub extends rpc.RemoteObject {
constructor(des) {
......@@ -26,7 +27,7 @@ class Stub extends rpc.RemoteObject {
}
}
export default class ServiceAbility extends ServiceExtensionAbility {
onCreate(want) {
onCreate(want:Want) {
console.log('ServiceAbility onCreate');
}
onDestory(){
......@@ -187,6 +188,7 @@ export default class ServiceAbility extends ServiceExtensionAbility {
default:
break;
}
return new rpc.RemoteObject('connect');
}
onDisconnect(want) {
......
......@@ -15,9 +15,11 @@
import ServiceExtensionAbility from '@ohos.application.ServiceExtensionAbility'
import commonEvent from "@ohos.commonEvent"
import Want from '@ohos.application.Want';
import rpc from "@ohos.rpc";
export default class ServiceAbility2 extends ServiceExtensionAbility {
onCreate(want) {
onCreate(want:Want) {
console.log('ServiceAbility2 onCreate');
}
......@@ -39,6 +41,7 @@ export default class ServiceAbility2 extends ServiceExtensionAbility {
onConnect(want) {
console.log('ServiceAbility2 onConnect');
return new rpc.RemoteObject('connect');
}
onDisconnect(want) {
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import file from '@system.file';
import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index.ets"
import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index"
import testsuite from "../../test/List.test.ets"
@Entry
@Component
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import file from '@system.file';
import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index.ets"
import {Core, ExpectExtend, InstrumentLog, ReportExtend} from "deccjsunit/index"
import testsuite from "../../test/List.test.ets"
@Entry
@Component
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册