Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7f9ca8b7
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7f9ca8b7
编写于
12月 07, 2021
作者:
O
openharmony_ci
提交者:
Gitee
12月 07, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1305 Update test code
Merge pull request !1305 from blackleon/update_master_1207
上级
46c18d59
b3ca6989
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
13 addition
and
99 deletion
+13
-99
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/publishIcon.js
...ivebtn/activebutton/entry/src/main/js/test/publishIcon.js
+3
-4
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/publishImage.js
...vebtn/activebutton/entry/src/main/js/test/publishImage.js
+2
-3
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/entry/.gitignore
...publish_test/badgedisplayed/badgedisplay/entry/.gitignore
+0
-1
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/entry/src/main/js/test/BadgeDisplay.js
...layed/badgedisplay/entry/src/main/js/test/BadgeDisplay.js
+2
-3
notification/ans_standard/publish_test/enablenotification/enablenotification/entry/src/main/js/test/EnableNotification.js
...notification/entry/src/main/js/test/EnableNotification.js
+2
-3
notification/ans_standard/publish_test/getactive/actsansgetactive/signature/openharmony_sx.p7b
...t/getactive/actsansgetactive/signature/openharmony_sx.p7b
+0
-0
notification/ans_standard/publish_test/publishcontentype/publishtype/.gitignore
...ard/publish_test/publishcontentype/publishtype/.gitignore
+0
-15
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/.gitignore
...blish_test/publishcontentype/publishtype/.idea/.gitignore
+0
-3
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/compiler.xml
...ish_test/publishcontentype/publishtype/.idea/compiler.xml
+0
-6
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/gradle.xml
...blish_test/publishcontentype/publishtype/.idea/gradle.xml
+0
-22
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/jarRepositories.xml
...t/publishcontentype/publishtype/.idea/jarRepositories.xml
+0
-30
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/misc.xml
...publish_test/publishcontentype/publishtype/.idea/misc.xml
+0
-4
notification/ans_standard/publish_test/publishcontentype/publishtype/entry/.gitignore
...blish_test/publishcontentype/publishtype/entry/.gitignore
+0
-1
notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js
...agent/wantagent1/entry/src/main/js/test/WantAgent.test.js
+4
-4
未找到文件。
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/publishIcon.js
浏览文件 @
7f9ca8b7
...
...
@@ -16,7 +16,6 @@
import
notification
from
'
@ohos.notification
'
import
image
from
'
@ohos.multimedia.image
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
var
ERR_ANS_ICON_OVER_SIZE
=
67108882
var
largeIconA
var
smallIconA
var
largeBufferA
...
...
@@ -52,7 +51,7 @@ describe('ActsAnsPublishIconTest', function () {
}
function
publishCallbackB
(
err
){
console
.
log
(
'
ActsAnsPublishIconTest publishCallbackB asyncCallback
'
+
err
.
code
)
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_ICON_OVER_SIZE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
}
function
consumeCallbackA
(
data
)
{
console
.
debug
(
"
===consumeCallbackA data : ===>
"
+
JSON
.
stringify
(
data
));
...
...
@@ -310,10 +309,10 @@ describe('ActsAnsPublishIconTest', function () {
largeIcon
:
largeIconD
,
}).
then
().
catch
((
err
)
=>
{
console
.
debug
(
"
===ACTS_PublishIconTest_0400 promise===>
"
+
err
.
code
);
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_ICON_OVER_SIZE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
done
()
});
})
});
});
})
\ No newline at end of file
})
notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/publishImage.js
浏览文件 @
7f9ca8b7
...
...
@@ -27,7 +27,6 @@ var pubimageA
var
pubimageB
var
pubimageC
var
pubimageD
var
ERR_ANS_PICTURE_OVER_SIZE
=
67108883
describe
(
'
ActsAnsPublishImageTest
'
,
function
()
{
console
.
info
(
"
===ActsAnsPublishImageTest start===>
"
);
...
...
@@ -55,7 +54,7 @@ describe('ActsAnsPublishImageTest', function () {
}
function
publishCallbackB
(
err
){
console
.
log
(
'
ActsAnsPublishImageTest publishCallbackB asyncCallback
'
+
err
.
code
)
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_PICTURE_OVER_SIZE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
}
/*
...
...
@@ -221,7 +220,7 @@ describe('ActsAnsPublishImageTest', function () {
sortingKey
:
"
sortingKeyD
"
,
}).
then
().
catch
((
err
)
=>
{
console
.
debug
(
"
===ActsPublishImage_test_0400 err===>
"
+
err
.
code
);
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_PICTURE_OVER_SIZE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
done
();
});
})
...
...
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/entry/.gitignore
已删除
100644 → 0
浏览文件 @
46c18d59
/build
notification/ans_standard/publish_test/badgedisplayed/badgedisplay/entry/src/main/js/test/BadgeDisplay.js
浏览文件 @
7f9ca8b7
...
...
@@ -16,7 +16,6 @@
import
notify
from
'
@ohos.notification
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
var
time
=
1000
var
ERR_ANS_INVALID_BUNDLE
=
67108870
describe
(
'
ActsAnsBadgeDisplayTest
'
,
function
()
{
console
.
info
(
"
===ActsAnsBadgeDisplayTest start===>
"
);
/*
...
...
@@ -74,7 +73,7 @@ describe('ActsAnsBadgeDisplayTest', function () {
bundle
:
"
wrong BundleName
"
,
}).
then
().
catch
((
err
)
=>
{
console
.
log
(
"
===>ActsGetDisplay_test_0400 success===>
"
+
err
.
code
)
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_INVALID_BUNDLE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
done
();
})
...
...
@@ -211,7 +210,7 @@ describe('ActsAnsBadgeDisplayTest', function () {
bundle
:
"
Wrong BundleName
"
},
true
).
then
().
catch
((
err
)
=>
{
console
.
log
(
"
===>ActsSetDisplay_test_0400 err===>
"
+
err
.
code
)
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_INVALID_BUNDLE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
done
();
})
})
...
...
notification/ans_standard/publish_test/enablenotification/enablenotification/entry/src/main/js/test/EnableNotification.js
浏览文件 @
7f9ca8b7
...
...
@@ -16,7 +16,6 @@
import
notify
from
'
@ohos.notification
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
var
time
=
1000
var
ERR_ANS_INVALID_BUNDLE
=
67108870
describe
(
'
ActsAnsEnableNotificationTest
'
,
function
()
{
console
.
info
(
"
===========ActsAnsEnableNotificationTest start====================>
"
);
/*
...
...
@@ -82,7 +81,7 @@ describe('ActsAnsEnableNotificationTest', function () {
bundle
:
"
wrong BundleName
"
,
}).
then
().
catch
((
err
)
=>
{
console
.
debug
(
"
====>ActsGetEnable_test_0400 promsie====>
"
+
err
.
code
);
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_INVALID_BUNDLE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
done
();
})
})
...
...
@@ -241,7 +240,7 @@ describe('ActsAnsEnableNotificationTest', function () {
bundle
:
"
Wrong BundleName
"
},
true
).
then
().
catch
((
err
)
=>
{
console
.
log
(
"
===>ActsSetEnable_test_0400 err===>
"
+
err
.
code
)
expect
(
err
.
code
).
assertEqual
(
ERR_ANS_INVALID_BUNDLE
)
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
done
();
})
})
...
...
notification/ans_standard/publish_test/getactive/actsansgetactive/signature/openharmony_sx.p7b
浏览文件 @
7f9ca8b7
无法预览此类型文件
notification/ans_standard/publish_test/publishcontentype/publishtype/.gitignore
已删除
100644 → 0
浏览文件 @
46c18d59
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
/entry/.preview
.cxx
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/.gitignore
已删除
100644 → 0
浏览文件 @
46c18d59
# Default ignored files
/shelf/
/workspace.xml
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/compiler.xml
已删除
100644 → 0
浏览文件 @
46c18d59
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"CompilerConfiguration"
>
<bytecodeTargetLevel
target=
"1.8"
/>
</component>
</project>
\ No newline at end of file
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/gradle.xml
已删除
100644 → 0
浏览文件 @
46c18d59
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"GradleMigrationSettings"
migrationVersion=
"1"
/>
<component
name=
"GradleSettings"
>
<option
name=
"linkedExternalProjectsSettings"
>
<GradleProjectSettings>
<option
name=
"testRunner"
value=
"PLATFORM"
/>
<option
name=
"distributionType"
value=
"LOCAL"
/>
<option
name=
"externalProjectPath"
value=
"$PROJECT_DIR$"
/>
<option
name=
"gradleHome"
value=
"D:\HUAWEI\DevEco Studio 2.1.0.301\tools\gradle"
/>
<option
name=
"modules"
>
<set>
<option
value=
"$PROJECT_DIR$"
/>
<option
value=
"$PROJECT_DIR$/entry"
/>
</set>
</option>
<option
name=
"resolveModulePerSourceSet"
value=
"false"
/>
<option
name=
"useQualifiedModuleNames"
value=
"false"
/>
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/jarRepositories.xml
已删除
100644 → 0
浏览文件 @
46c18d59
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"RemoteRepositoriesConfiguration"
>
<remote-repository>
<option
name=
"id"
value=
"central"
/>
<option
name=
"name"
value=
"Maven Central repository"
/>
<option
name=
"url"
value=
"https://repo1.maven.org/maven2"
/>
</remote-repository>
<remote-repository>
<option
name=
"id"
value=
"jboss.community"
/>
<option
name=
"name"
value=
"JBoss Community repository"
/>
<option
name=
"url"
value=
"https://repository.jboss.org/nexus/content/repositories/public/"
/>
</remote-repository>
<remote-repository>
<option
name=
"id"
value=
"maven2"
/>
<option
name=
"name"
value=
"maven2"
/>
<option
name=
"url"
value=
"https://developer.huawei.com/repo/"
/>
</remote-repository>
<remote-repository>
<option
name=
"id"
value=
"BintrayJCenter"
/>
<option
name=
"name"
value=
"BintrayJCenter"
/>
<option
name=
"url"
value=
"https://jcenter.bintray.com/"
/>
</remote-repository>
<remote-repository>
<option
name=
"id"
value=
"maven"
/>
<option
name=
"name"
value=
"maven"
/>
<option
name=
"url"
value=
"https://repo.huaweicloud.com/repository/maven/"
/>
</remote-repository>
</component>
</project>
\ No newline at end of file
notification/ans_standard/publish_test/publishcontentype/publishtype/.idea/misc.xml
已删除
100644 → 0
浏览文件 @
46c18d59
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
/>
</project>
\ No newline at end of file
notification/ans_standard/publish_test/publishcontentype/publishtype/entry/.gitignore
已删除
100644 → 0
浏览文件 @
46c18d59
/build
notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js
浏览文件 @
7f9ca8b7
...
...
@@ -32,8 +32,8 @@ describe('ActsAnsWantAgentOneTest', function () {
wants
:
[
{
deviceId
:
""
,
bundleName
:
"
com.example.WantAgentTest
"
,
abilityName
:
"
com.example.WantAgentTest.MainAbility
"
,
bundleName
:
"
com.example.WantAgentTest
1
"
,
abilityName
:
"
com.example.WantAgentTest
1
.MainAbility
"
,
action
:
"
action1
"
,
entities
:
[
"
entity1
"
],
type
:
"
MIMETYPE
"
,
...
...
@@ -73,8 +73,8 @@ describe('ActsAnsWantAgentOneTest', function () {
expect
(
data
.
finalCode
).
assertEqual
(
0
);
expect
(
data
.
finalData
).
assertEqual
(
""
);
expect
(
data
.
want
.
deviceId
).
assertEqual
(
""
);
expect
(
data
.
want
.
bundleName
).
assertEqual
(
"
com.example.WantAgentTest
"
);
expect
(
data
.
want
.
abilityName
).
assertEqual
(
"
com.example.WantAgentTest.MainAbility
"
);
expect
(
data
.
want
.
bundleName
).
assertEqual
(
"
com.example.WantAgentTest
1
"
);
expect
(
data
.
want
.
abilityName
).
assertEqual
(
"
com.example.WantAgentTest
1
.MainAbility
"
);
expect
(
data
.
want
.
uri
).
assertEqual
(
"
key={true,true,false}
"
);
expect
(
JSON
.
stringify
(
data
.
want
.
entities
)).
assertEqual
(
JSON
.
stringify
([
"
entity1
"
]));
expect
(
data
.
want
.
action
).
assertEqual
(
"
action1
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录