Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8d449029
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看板
提交
8d449029
编写于
4月 18, 2022
作者:
高
高曦
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
电话服务用例整改
Signed-off-by:
N
高曦
<
gaoxi785@huawei.com
>
上级
c1492ae3
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
82 addition
and
82 deletion
+82
-82
telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/ConvertOptionsJsunit.test.ets
...c/main/ets/MainAbility/test/ConvertOptionsJsunit.test.ets
+79
-79
telephony/telephonyjstest/sms_mms/sms_mms_error/entry/src/main/js/test/SmsMmsError.test.js
.../sms_mms_error/entry/src/main/js/test/SmsMmsError.test.js
+3
-3
未找到文件。
telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/ConvertOptionsJsunit.test.ets
浏览文件 @
8d449029
...
...
@@ -15,7 +15,7 @@
*/
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import
ConvertXML
from '@ohos.convertxml'
import
convertxml
from '@ohos.convertxml'
export default function convertOptionsJsunit() {
describe('XmlTest',function () {
console.log("************* settings Test start*************");
...
...
@@ -27,8 +27,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false,trim :true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false,trim :true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -59,8 +59,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreDeclaration: true}
);
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreDeclaration: true})
);
var str1 = '{"_elements":[{"_type":"element",'+
'"_name":"note",'+
'"_attributes":{"importance":"high",'+
...
...
@@ -89,8 +89,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreDeclaration: true}
);
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreDeclaration: true})
);
var str1 = '{"_elements":[{"_type":"element",'+
'"_name":"note",'+
'"_attributes":{"importance":"high",'+
...
...
@@ -119,8 +119,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreAttributes: true}
);
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreAttributes: true})
);
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -150,8 +150,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreComment: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreComment: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -183,8 +183,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreCDATA: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreCDATA: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -216,8 +216,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreDoctype: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreDoctype: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -248,8 +248,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreText: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreText: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -274,8 +274,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, declarationKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, declarationKey: "123"}));
var str1 = '{"123":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -307,8 +307,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, instructionKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, instructionKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -343,8 +343,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, attributesKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, attributesKey: "123"}));
var str1 = '{"_declaration":{"123":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"123":{"importance":"high",'+
...
...
@@ -378,8 +378,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, textKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, textKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -411,8 +411,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, cdataKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, cdataKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -446,8 +446,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, doctypeKey: 'doctype'})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, doctypeKey: 'doctype'}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"doctype","doctype":"foo"},'+
...
...
@@ -480,8 +480,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, commentKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, commentKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"123":"note",'+
...
...
@@ -515,8 +515,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, parentKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, parentKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -551,8 +551,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, typeKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, typeKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"123":"element",'+
...
...
@@ -583,8 +583,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, nameKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, nameKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"123":"note",'+
...
...
@@ -615,8 +615,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, elementsKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, elementsKey: "123"}));
var str1 = '{"123":[{"123":[{"123":[{"_type":"text",'+
'"_text":"Happy"}],'+
'"_type":"element",'+
...
...
@@ -647,8 +647,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false,trim :true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false,trim :true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -679,8 +679,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreDeclaration: true}
);
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreDeclaration: true})
);
var str1 = '{"_elements":[{"_type":"element",'+
'"_name":"note",'+
'"_attributes":{"importance":"high",'+
...
...
@@ -709,8 +709,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreDeclaration: true}
);
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreDeclaration: true})
);
var str1 = '{"_elements":[{"_type":"element",'+
'"_name":"note",'+
'"_attributes":{"importance":"high",'+
...
...
@@ -739,8 +739,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreAttributes: true}
);
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreAttributes: true})
);
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -770,8 +770,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreComment: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreComment: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -803,8 +803,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreCDATA: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreCDATA: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -836,8 +836,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreDoctype: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreDoctype: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -868,8 +868,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreText: true})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreText: true}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -894,8 +894,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, declarationKey: "456"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, declarationKey: "456"}));
var str1 = '{"456":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -927,8 +927,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, instructionKey: "456"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, instructionKey: "456"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -963,8 +963,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, attributesKey: "456"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, attributesKey: "456"}));
var str1 = '{"_declaration":{"456":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"456":{"importance":"high",'+
...
...
@@ -998,8 +998,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, textKey: "456"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, textKey: "456"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -1031,8 +1031,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, cdataKey: "456"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, cdataKey: "456"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -1066,8 +1066,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, doctypeKey: 'doctype_next'})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, doctypeKey: 'doctype_next'}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"doctype","doctype_next":"foo"},'+
...
...
@@ -1100,8 +1100,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, commentKey: "456"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, commentKey: "456"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"456":"note",'+
...
...
@@ -1135,8 +1135,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, parentKey: "456"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, parentKey: "456"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
@@ -1171,8 +1171,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, typeKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, typeKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"123":"element",'+
...
...
@@ -1203,8 +1203,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, nameKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, nameKey: "123"}));
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"123":"note",'+
...
...
@@ -1235,8 +1235,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, elementsKey: "123"})
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, elementsKey: "123"}));
var str1 = '{"123":[{"123":[{"123":[{"_type":"text",'+
'"_text":"Happy"}],'+
'"_type":"element",'+
...
...
@@ -1273,8 +1273,8 @@ export default function convertOptionsJsunit() {
' <todo>Work</todo>' +
' <todo>Play</todo>' +
'</note>';
var conv
ertml = new
ConvertXML();
var result1 =
convertml.convert(xml, {compact: false, ignoreInstruction: true}
);
var conv
= new convertxml.
ConvertXML();
var result1 =
JSON.stringify(conv.convert(xml, {compact: false, ignoreInstruction: true})
);
var str1 = '{"_declaration":{"_attributes":{"version":"1.0",'+
'"encoding":"utf-8"}},'+
'"_elements":[{"_type":"element",'+
...
...
telephony/telephonyjstest/sms_mms/sms_mms_error/entry/src/main/js/test/SmsMmsError.test.js
浏览文件 @
8d449029
...
...
@@ -343,8 +343,8 @@ describe('SmsMmsErrorTest', function () {
return
;
}
if
(
result
.
length
>
0
)
{
ex
cep
t
(
result
[
0
].
shortMessage
!=
null
).
assertTrue
();
ex
cep
t
(
result
[
0
].
indexOnSim
!=
-
1
).
assertTrue
();
ex
pec
t
(
result
[
0
].
shortMessage
!=
null
).
assertTrue
();
ex
pec
t
(
result
[
0
].
indexOnSim
!=
-
1
).
assertTrue
();
}
expect
(
result
===
undefined
||
result
.
length
===
0
).
assertTrue
();
console
.
log
(
'
Telephony_SmsMms_getAllSIMMessages_Async_0200 finish
'
);
...
...
@@ -776,7 +776,7 @@ describe('SmsMmsErrorTest', function () {
};
try
{
let
encodePromise
=
await
sms
.
encodeMms
({
messageType
:
sms
.
TYPE_MMS_READ_ORIG_IND
,
mmsType
});
expect
(
encodePromise
.
length
>
0
).
assertTrue
();
expect
(
encodePromise
.
length
==
0
).
assertTrue
();
console
.
log
(
'
Telephony_SmsMms_encodeMms_Promise_0900 encodeMms finish
'
);
let
promise
=
await
sms
.
decodeMms
(
encodePromise
);
expect
(
promise
.
messageType
===
sms
.
TYPE_MMS_READ_ORIG_IND
).
assertTrue
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录