提交 4341756c 编写于 作者: 李_文强 提交者: lee-wen-qiang

Fix xts failure for xml module

issue:https://gitee.com/openharmony/xts_acts/issues/I5T8LA
原因(目的、解决的问题等)
Fix xts failure for xml module

描述(做了什么,变更了什么)
Fix xts failure for xml module
Signed-off-by: N李_文强 <liwenqiang33@huawei.com>
上级 7c2aae58
......@@ -1097,7 +1097,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' +
' </h:table>' +
'</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2);
var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) {
......@@ -1166,7 +1166,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' +
' </h:table>' +
'</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2);
var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) {
......@@ -1232,7 +1232,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' +
' </h:table>' +
'</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2);
var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) {
......@@ -1299,7 +1299,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' +
' </h:table>' +
'</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2);
var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) {
......@@ -1343,7 +1343,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' +
' </h:table>' +
'</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2);
var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册