Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3375daf3
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3375daf3
编写于
7月 16, 2021
作者:
C
Catherine_MK
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
houjing8@huawei.com
Signed-off-by:
N
Catherine_MK
<
houjing8@huawei.com
>
上级
ac501aa0
变更
37
隐藏空白更改
内联
并排
Showing
37 changed file
with
392 addition
and
121 deletion
+392
-121
demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MainAbility.java
...ntry/src/main/java/com/example/assertion/MainAbility.java
+0
-16
demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MyApplication.java
...ry/src/main/java/com/example/assertion/MyApplication.java
+0
-10
demo/hjsunit/Assertion/entry/src/main/js/default/app.js
demo/hjsunit/Assertion/entry/src/main/js/default/app.js
+14
-0
demo/hjsunit/Assertion/entry/src/main/js/default/pages/index/index.js
.../Assertion/entry/src/main/js/default/pages/index/index.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/java/com/example/assertion/ExampleOhosTest.java
.../ohosTest/java/com/example/assertion/ExampleOhosTest.java
+0
-14
demo/hjsunit/Assertion/entry/src/ohosTest/js/default/app.js
demo/hjsunit/Assertion/entry/src/ohosTest/js/default/app.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/default/pages/index/index.js
...ertion/entry/src/ohosTest/js/default/pages/index/index.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/ExampleJsunit.test.js
...ssertion/entry/src/ohosTest/js/test/ExampleJsunit.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertClose.test.js
.../Assertion/entry/src/ohosTest/js/test/assertClose.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertContain.test.js
...ssertion/entry/src/ohosTest/js/test/assertContain.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFail.test.js
...t/Assertion/entry/src/ohosTest/js/test/assertFail.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFalse.test.js
.../Assertion/entry/src/ohosTest/js/test/assertFalse.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertInstantceOf.test.js
...tion/entry/src/ohosTest/js/test/assertInstantceOf.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLarger.test.js
...Assertion/entry/src/ohosTest/js/test/assertLarger.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLess.test.js
...t/Assertion/entry/src/ohosTest/js/test/assertLess.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertNull.test.js
...t/Assertion/entry/src/ohosTest/js/test/assertNull.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertThrowError.test.js
...rtion/entry/src/ohosTest/js/test/assertThrowError.test.js
+14
-0
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertUndefined.test.js
...ertion/entry/src/ohosTest/js/test/assertUndefined.test.js
+14
-0
demo/hjsunit/Async/entry/src/main/java/com/example/async/MainAbility.java
...nc/entry/src/main/java/com/example/async/MainAbility.java
+0
-16
demo/hjsunit/Async/entry/src/main/java/com/example/async/MyApplication.java
.../entry/src/main/java/com/example/async/MyApplication.java
+0
-10
demo/hjsunit/Async/entry/src/main/js/default/app.js
demo/hjsunit/Async/entry/src/main/js/default/app.js
+14
-0
demo/hjsunit/Async/entry/src/main/js/default/pages/index/index.js
...unit/Async/entry/src/main/js/default/pages/index/index.js
+14
-0
demo/hjsunit/Async/entry/src/ohosTest/java/com/example/async/ExampleOhosTest.java
.../src/ohosTest/java/com/example/async/ExampleOhosTest.java
+0
-14
demo/hjsunit/Async/entry/src/ohosTest/js/default/app.js
demo/hjsunit/Async/entry/src/ohosTest/js/default/app.js
+14
-0
demo/hjsunit/Async/entry/src/ohosTest/js/default/pages/index/index.js
.../Async/entry/src/ohosTest/js/default/pages/index/index.js
+14
-0
demo/hjsunit/Async/entry/src/ohosTest/js/test/Callback.test.js
...hjsunit/Async/entry/src/ohosTest/js/test/Callback.test.js
+14
-0
demo/hjsunit/Async/entry/src/ohosTest/js/test/List.test.js
demo/hjsunit/Async/entry/src/ohosTest/js/test/List.test.js
+14
-0
demo/hjsunit/Async/entry/src/ohosTest/js/test/Promise.test.js
.../hjsunit/Async/entry/src/ohosTest/js/test/Promise.test.js
+14
-0
demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MainAbility.java
...try/src/main/java/com/example/datadriver/MainAbility.java
+0
-16
demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MyApplication.java
...y/src/main/java/com/example/datadriver/MyApplication.java
+0
-10
demo/hjsunit/DataDriver/entry/src/main/js/default/app.js
demo/hjsunit/DataDriver/entry/src/main/js/default/app.js
+14
-0
demo/hjsunit/DataDriver/entry/src/main/js/default/pages/index/index.js
...DataDriver/entry/src/main/js/default/pages/index/index.js
+14
-0
demo/hjsunit/DataDriver/entry/src/ohosTest/java/com/example/datadriver/ExampleOhosTest.java
...ohosTest/java/com/example/datadriver/ExampleOhosTest.java
+0
-14
demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/app.js
demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/app.js
+14
-0
demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/pages/index/index.js
...Driver/entry/src/ohosTest/js/default/pages/index/index.js
+14
-1
demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/DataDriver.test.js
.../DataDriver/entry/src/ohosTest/js/test/DataDriver.test.js
+14
-0
demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/List.test.js
...jsunit/DataDriver/entry/src/ohosTest/js/test/List.test.js
+14
-0
未找到文件。
demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MainAbility.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.assertion
;
import
ohos.ace.ability.AceAbility
;
import
ohos.aafwk.content.Intent
;
public
class
MainAbility
extends
AceAbility
{
@Override
public
void
onStart
(
Intent
intent
)
{
super
.
onStart
(
intent
);
}
@Override
public
void
onStop
()
{
super
.
onStop
();
}
}
demo/hjsunit/Assertion/entry/src/main/java/com/example/assertion/MyApplication.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.assertion
;
import
ohos.aafwk.ability.AbilityPackage
;
public
class
MyApplication
extends
AbilityPackage
{
@Override
public
void
onInitialize
()
{
super
.
onInitialize
();
}
}
demo/hjsunit/Assertion/entry/src/main/js/default/app.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
onCreate
()
{
onCreate
()
{
console
.
info
(
'
AceApplication onCreate
'
);
console
.
info
(
'
AceApplication onCreate
'
);
...
...
demo/hjsunit/Assertion/entry/src/main/js/default/pages/index/index.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
data
:
{
data
:
{
title
:
""
title
:
""
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/java/com/example/assertion/ExampleOhosTest.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.assertion
;
import
ohos.aafwk.ability.delegation.AbilityDelegatorRegistry
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
public
class
ExampleOhosTest
{
@Test
public
void
testBundleName
()
{
final
String
actualBundleName
=
AbilityDelegatorRegistry
.
getArguments
().
getTestBundleName
();
assertEquals
(
"com.example.assertion"
,
actualBundleName
);
}
}
\ No newline at end of file
demo/hjsunit/Assertion/entry/src/ohosTest/js/default/app.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
onCreate
()
{
onCreate
()
{
console
.
info
(
'
TestApplication onCreate
'
);
console
.
info
(
'
TestApplication onCreate
'
);
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/default/pages/index/index.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
file
from
'
@system.file
'
import
file
from
'
@system.file
'
import
app
from
'
@system.app
'
import
app
from
'
@system.app
'
import
device
from
'
@system.device
'
import
device
from
'
@system.device
'
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/ExampleJsunit.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
app
from
'
@system.app
'
import
app
from
'
@system.app
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertClose.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertClose
'
,
function
()
{
describe
(
'
assertClose
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertContain.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertContain
'
,
function
()
{
describe
(
'
assertContain
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFail.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertFail
'
,
function
()
{
describe
(
'
assertFail
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertFalse.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertFalse
'
,
function
()
{
describe
(
'
assertFalse
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertInstantceOf.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertInstanceOf
'
,
function
()
{
describe
(
'
assertInstanceOf
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLarger.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertLarger
'
,
function
()
{
describe
(
'
assertLarger
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertLess.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertLess
'
,
function
()
{
describe
(
'
assertLess
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertNull.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertNull
'
,
function
()
{
describe
(
'
assertNull
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertThrowError.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertThrowError
'
,
function
()
{
describe
(
'
assertThrowError
'
,
function
()
{
...
...
demo/hjsunit/Assertion/entry/src/ohosTest/js/test/assertUndefined.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
assertUndefined
'
,
function
()
{
describe
(
'
assertUndefined
'
,
function
()
{
...
...
demo/hjsunit/Async/entry/src/main/java/com/example/async/MainAbility.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.async
;
import
ohos.ace.ability.AceAbility
;
import
ohos.aafwk.content.Intent
;
public
class
MainAbility
extends
AceAbility
{
@Override
public
void
onStart
(
Intent
intent
)
{
super
.
onStart
(
intent
);
}
@Override
public
void
onStop
()
{
super
.
onStop
();
}
}
demo/hjsunit/Async/entry/src/main/java/com/example/async/MyApplication.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.async
;
import
ohos.aafwk.ability.AbilityPackage
;
public
class
MyApplication
extends
AbilityPackage
{
@Override
public
void
onInitialize
()
{
super
.
onInitialize
();
}
}
demo/hjsunit/Async/entry/src/main/js/default/app.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
onCreate
()
{
onCreate
()
{
console
.
info
(
'
AceApplication onCreate
'
);
console
.
info
(
'
AceApplication onCreate
'
);
...
...
demo/hjsunit/Async/entry/src/main/js/default/pages/index/index.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
data
:
{
data
:
{
title
:
""
title
:
""
...
...
demo/hjsunit/Async/entry/src/ohosTest/java/com/example/async/ExampleOhosTest.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.async
;
import
ohos.aafwk.ability.delegation.AbilityDelegatorRegistry
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
public
class
ExampleOhosTest
{
@Test
public
void
testBundleName
()
{
final
String
actualBundleName
=
AbilityDelegatorRegistry
.
getArguments
().
getTestBundleName
();
assertEquals
(
"com.example.async"
,
actualBundleName
);
}
}
\ No newline at end of file
demo/hjsunit/Async/entry/src/ohosTest/js/default/app.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
onCreate
()
{
onCreate
()
{
console
.
info
(
'
TestApplication onCreate
'
);
console
.
info
(
'
TestApplication onCreate
'
);
...
...
demo/hjsunit/Async/entry/src/ohosTest/js/default/pages/index/index.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
file
from
'
@system.file
'
import
file
from
'
@system.file
'
import
app
from
'
@system.app
'
import
app
from
'
@system.app
'
import
device
from
'
@system.device
'
import
device
from
'
@system.device
'
...
...
demo/hjsunit/Async/entry/src/ohosTest/js/test/Callback.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
}
from
'
deccjsunit/index
'
import
{
describe
,
it
}
from
'
deccjsunit/index
'
describe
(
'
callback
'
,
function
()
{
describe
(
'
callback
'
,
function
()
{
...
...
demo/hjsunit/Async/entry/src/ohosTest/js/test/List.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require
(
'
./Callback.test.js
'
)
require
(
'
./Callback.test.js
'
)
require
(
'
./Promise.test.js
'
)
require
(
'
./Promise.test.js
'
)
\ No newline at end of file
demo/hjsunit/Async/entry/src/ohosTest/js/test/Promise.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
}
from
'
deccjsunit/index
'
import
{
describe
,
it
}
from
'
deccjsunit/index
'
describe
(
'
promise
'
,
function
()
{
describe
(
'
promise
'
,
function
()
{
...
...
demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MainAbility.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.datadriver
;
import
ohos.ace.ability.AceAbility
;
import
ohos.aafwk.content.Intent
;
public
class
MainAbility
extends
AceAbility
{
@Override
public
void
onStart
(
Intent
intent
)
{
super
.
onStart
(
intent
);
}
@Override
public
void
onStop
()
{
super
.
onStop
();
}
}
demo/hjsunit/DataDriver/entry/src/main/java/com/example/datadriver/MyApplication.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.datadriver
;
import
ohos.aafwk.ability.AbilityPackage
;
public
class
MyApplication
extends
AbilityPackage
{
@Override
public
void
onInitialize
()
{
super
.
onInitialize
();
}
}
demo/hjsunit/DataDriver/entry/src/main/js/default/app.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
onCreate
()
{
onCreate
()
{
console
.
info
(
'
AceApplication onCreate
'
);
console
.
info
(
'
AceApplication onCreate
'
);
...
...
demo/hjsunit/DataDriver/entry/src/main/js/default/pages/index/index.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
data
:
{
data
:
{
title
:
""
title
:
""
...
...
demo/hjsunit/DataDriver/entry/src/ohosTest/java/com/example/datadriver/ExampleOhosTest.java
已删除
100755 → 0
浏览文件 @
ac501aa0
package
com.example.datadriver
;
import
ohos.aafwk.ability.delegation.AbilityDelegatorRegistry
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
public
class
ExampleOhosTest
{
@Test
public
void
testBundleName
()
{
final
String
actualBundleName
=
AbilityDelegatorRegistry
.
getArguments
().
getTestBundleName
();
assertEquals
(
"com.example.datadriver"
,
actualBundleName
);
}
}
\ No newline at end of file
demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/app.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
export
default
{
onCreate
()
{
onCreate
()
{
console
.
info
(
'
TestApplication onCreate
'
);
console
.
info
(
'
TestApplication onCreate
'
);
...
...
demo/hjsunit/DataDriver/entry/src/ohosTest/js/default/pages/index/index.js
浏览文件 @
3375daf3
// @ts-nocheck
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
file
from
'
@system.file
'
import
file
from
'
@system.file
'
import
app
from
'
@system.app
'
import
app
from
'
@system.app
'
import
device
from
'
@system.device
'
import
device
from
'
@system.device
'
...
...
demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/DataDriver.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
testSuite01
'
,
function
()
{
describe
(
'
testSuite01
'
,
function
()
{
...
...
demo/hjsunit/DataDriver/entry/src/ohosTest/js/test/List.test.js
浏览文件 @
3375daf3
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require
(
'
./DataDriver.test.js
'
)
require
(
'
./DataDriver.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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录