Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
91404314
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看板
未验证
提交
91404314
编写于
11月 19, 2022
作者:
O
openharmony_ci
提交者:
Gitee
11月 19, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6516 Remediate the exception use case specification
Merge pull request !6516 from 小马奔腾/master
上级
ac36c607
f0c307ce
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
31 addition
and
31 deletion
+31
-31
commonlibrary/ets_utils/xml_lib_standard/src/main/js/test/xml.test.js
...y/ets_utils/xml_lib_standard/src/main/js/test/xml.test.js
+31
-31
未找到文件。
commonlibrary/ets_utils/xml_lib_standard/src/main/js/test/xml.test.js
浏览文件 @
91404314
...
...
@@ -1406,10 +1406,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError001
* @tc.name: test
Xml
BusinessError001
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError001
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError001
'
,
0
,
function
()
{
try
{
new
xml
.
XmlSerializer
(
123
,
"
utf-8
"
);
}
catch
(
e
)
{
...
...
@@ -1418,10 +1418,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError002
* @tc.name: test
Xml
BusinessError002
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError002
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError002
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
new
xml
.
XmlSerializer
(
arrayBuffer
,
123
);
...
...
@@ -1431,10 +1431,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError003
* @tc.name: test
Xml
BusinessError003
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError003
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError003
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1445,10 +1445,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError004
* @tc.name: test
Xml
BusinessError004
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError004
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError004
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1460,10 +1460,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError005
* @tc.name: test
Xml
BusinessError005
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError005
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError005
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1475,10 +1475,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError006
* @tc.name: test
Xml
BusinessError006
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError006
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError006
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1491,10 +1491,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError007
* @tc.name: test
Xml
BusinessError007
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError007
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError007
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1506,10 +1506,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError008
* @tc.name: test
Xml
BusinessError008
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError008
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError008
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1521,10 +1521,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError009
* @tc.name: test
Xml
BusinessError009
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError009
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError009
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1536,10 +1536,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError010
* @tc.name: test
Xml
BusinessError010
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
testBusinessError010
'
,
0
,
function
()
{
it
(
'
test
Xml
BusinessError010
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1551,10 +1551,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError011
* @tc.name: test
Xml
BusinessError011
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
test
BusinessError0
011
'
,
0
,
function
()
{
it
(
'
test
XmlBusinessError
011
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1565,10 +1565,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError012
* @tc.name: test
Xml
BusinessError012
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
test
BusinessError0
012
'
,
0
,
function
()
{
it
(
'
test
XmlBusinessError
012
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
,
"
utf-8
"
);
...
...
@@ -1579,10 +1579,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError013
* @tc.name: test
Xml
BusinessError013
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
test
BusinessError0
013
'
,
0
,
function
()
{
it
(
'
test
XmlBusinessError
013
'
,
0
,
function
()
{
try
{
new
xml
.
XmlPullParser
(
111
,
'
UTF-8
'
);
}
catch
(
e
)
{
...
...
@@ -1591,10 +1591,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError014
* @tc.name: test
Xml
BusinessError014
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
test
BusinessError0
014
'
,
0
,
function
()
{
it
(
'
test
XmlBusinessError
014
'
,
0
,
function
()
{
try
{
var
arrayBuffer
=
new
ArrayBuffer
(
2048
);
new
xml
.
XmlPullParser
(
arrayBuffer
,
111
);
...
...
@@ -1604,10 +1604,10 @@ describe('XmlSerializerXmlPullParserTest', function () {
})
/**
* @tc.name: testBusinessError015
* @tc.name: test
Xml
BusinessError015
* @tc.desc: To XML text to JavaScript object.
*/
it
(
'
test
BusinessError0
015
'
,
0
,
function
()
{
it
(
'
test
XmlBusinessError
015
'
,
0
,
function
()
{
try
{
var
strXml
=
'
<?xml version="1.0" encoding="utf-8"?>
'
+
...
...
@@ -1641,7 +1641,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
str1
+=
name
+
'
:
'
+
value
;
return
true
;
}
var
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tagValueCallbackFunction
:
func1
}
var
options
=
111
that
.
parse
(
options
);
}
catch
(
e
)
{
expect
(
e
.
toString
()).
assertEqual
(
"
BusinessError: Parameter error.The type of 111 must be object
"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录