提交 fd828ca7 编写于 作者: H huangke11

add cust js api test

Signed-off-by: Nhuangke11 <huangke11@huawei.com>
上级 9994c8b2
...@@ -20,12 +20,12 @@ ohos_js_hap_suite("custjs_test") { ...@@ -20,12 +20,12 @@ ohos_js_hap_suite("custjs_test") {
":custjs_resources", ":custjs_resources",
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "CustJsApiTest" hap_name = "ActsCustJsTest"
} }
ohos_js_assets("resmgrjs_assets") { ohos_js_assets("custjs_assets") {
source_dir = "./src/main/js/default" source_dir = "./src/main/js/default"
} }
ohos_resources("resmgrjs_resources") { ohos_resources("custjs_resources") {
sources = [ "./src/main/resources" ] sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json" hap_profile = "./src/main/config.json"
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"kits": [ "kits": [
{ {
"test-file-name": [ "test-file-name": [
"CustJSApiTest.hap" "ActsCustJsTest.hap"
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
* 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 device from '@system.device';
export default { export default {
onCreate() { onCreate() {
......
<div class="container"> <div class="container">
<text class="title"> <text class="title">
{{ $t('strings.hello') }} {{title}} {{ $t('strings.hello') }} {{ title }}
</text> </text>
</div> </div>
...@@ -126,7 +126,7 @@ describe('CustTest', function () { ...@@ -126,7 +126,7 @@ describe('CustTest', function () {
it('getCfgDirList_test_005', 0, async function (done) { it('getCfgDirList_test_005', 0, async function (done) {
cust.getCfgDirList((error, value) => { cust.getCfgDirList((error, value) => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('getCfgDirList_test_005:' + value); console.log('CustTest getCfgDirList_test_005:' + value);
}); });
done(); done();
}) })
...@@ -139,7 +139,7 @@ describe('CustTest', function () { ...@@ -139,7 +139,7 @@ describe('CustTest', function () {
it('getCfgDirList_test_006', 0, async function (done) { it('getCfgDirList_test_006', 0, async function (done) {
cust.getCfgDirList().then(value => { cust.getCfgDirList().then(value => {
expect(value.length != 0).assertTrue(); expect(value.length != 0).assertTrue();
console.log('getCfgDirList_test_006:' + value); console.log('CustTest getCfgDirList_test_006:' + value);
}); });
done(); done();
}) })
......
...@@ -12,4 +12,5 @@ ...@@ -12,4 +12,5 @@
* 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.
*/ */
require('./Resmgr.test.js')
require('./Cust.test.js')
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册