提交 16d27f67 编写于 作者: W wangyulie

更新模型

Signed-off-by: Nwangyulie <wanglieyu@126.com>
上级 521b71b1
{
"name": "entry",
"lockfileVersion": 2,
"requires": true,
"packages": {
"node_modules/libffrtndk.so": {
"resolved": "src/main/cpp/types/libffrtndk",
"link": true
},
"src/main/cpp/types/libffrtndk": {
"dev": true
}
}
}
{
"name": "entry",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"devDependencies": {
"libffrtndk.so": "file:./src/main/cpp/types/libffrtndk"
}
},
"node_modules/libffrtndk.so": {
"resolved": "src/main/cpp/types/libffrtndk",
"link": true
},
"src/main/cpp/types/libffrtndk": {
"dev": true
}
},
"dependencies": {
"libffrtndk.so": {
"version": "file:src/main/cpp/types/libffrtndk"
}
}
}
{
"name": "entry",
"devDependencies": {
"libffrtndk.so": "file:./src/main/cpp/types/libffrtndk"
}
}
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
"name": "1.0.0" "name": "1.0.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 10,
"releaseType": "Release", "releaseType": "Release",
"target": 9 "target": 10
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
"deviceType": [ "deviceType": [
"default", "default",
"tablet" "tablet",
"phone"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from 'hypium/index' import { Hypium } from '@ohos/hypium'
import testsuite from '../test/List.test' import testsuite from '../test/List.test'
export default { export default {
......
...@@ -13,18 +13,10 @@ ...@@ -13,18 +13,10 @@
* limitations under the License. * limitations under the License.
*/ */
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from 'hypium/index' import { Hypium } from '@ohos/hypium'
import testsuite from '../test/List.test'
export default { export default {
onCreate() { onCreate() {
console.info('Application onCreate')
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
}, },
onDestroy() { onDestroy() {
console.info('Application onDestroy') console.info('Application onDestroy')
......
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import hilog from '@ohos.hilog'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import ffrtndk from 'libffrtndk.so'; import ffrtndk from 'libffrtndk.so';
export default function ffrtTest() { export default function ffrtTest() {
describe('ActsAbilityTest', function () { describe('ActsAbilityTest', function () {
...@@ -38,7 +37,6 @@ export default function ffrtTest() { ...@@ -38,7 +37,6 @@ export default function ffrtTest() {
}) })
it('assertContain',0, function () { it('assertContain',0, function () {
// Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function. // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
hilog.info(0x0000, 'testTag', '%{public}s', 'it begin');
var flag = ffrtndk.submitSimpleFfrtTask(); var flag = ffrtndk.submitSimpleFfrtTask();
var flag2 = ffrtndk.submitCondFfrtTask(); var flag2 = ffrtndk.submitCondFfrtTask();
var flag3 = ffrtndk.submitQueueFfrtTask(); var flag3 = ffrtndk.submitQueueFfrtTask();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册