未验证 提交 f6716b41 编写于 作者: O openharmony_ci 提交者: Gitee

!5689 Fix xts failure for xml module

Merge pull request !5689 from 李_文强/master
...@@ -1097,7 +1097,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1097,7 +1097,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' + ' </h:tr>' +
' </h:table>' + ' </h:table>' +
'</note>'; '</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2); var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer); var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length; var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) { for (var i = 0; i < strLen; ++i) {
...@@ -1166,7 +1166,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1166,7 +1166,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' + ' </h:tr>' +
' </h:table>' + ' </h:table>' +
'</note>'; '</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2); var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer); var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length; var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) { for (var i = 0; i < strLen; ++i) {
...@@ -1232,7 +1232,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1232,7 +1232,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' + ' </h:tr>' +
' </h:table>' + ' </h:table>' +
'</note>'; '</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2); var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer); var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length; var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) { for (var i = 0; i < strLen; ++i) {
...@@ -1299,7 +1299,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1299,7 +1299,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' + ' </h:tr>' +
' </h:table>' + ' </h:table>' +
'</note>'; '</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2); var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer); var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length; var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) { for (var i = 0; i < strLen; ++i) {
...@@ -1343,7 +1343,7 @@ describe('XmlSerializerXmlPullParserTest', function () { ...@@ -1343,7 +1343,7 @@ describe('XmlSerializerXmlPullParserTest', function () {
' </h:tr>' + ' </h:tr>' +
' </h:table>' + ' </h:table>' +
'</note>'; '</note>';
var arrayBuffer = new ArrayBuffer(strXml.length*2); var arrayBuffer = new ArrayBuffer(strXml.length);
var bufView = new Uint8Array(arrayBuffer); var bufView = new Uint8Array(arrayBuffer);
var strLen = strXml.length; var strLen = strXml.length;
for (var i = 0; i < strLen; ++i) { for (var i = 0; i < strLen; ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册