Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f3bbb731
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
9 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
提交
f3bbb731
编写于
1月 25, 2022
作者:
X
xdmal
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Signed-off-by: xdmal <maxiaodong16@huawei.com>
On branch master Your branch is up to date with 'origin/master'.
上级
290db27d
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
15 addition
and
51 deletion
+15
-51
compileruntime/util_lib_standard/src/main/js/test/util.test.js
...leruntime/util_lib_standard/src/main/js/test/util.test.js
+9
-47
compileruntime/xml_lib_standard/src/main/js/test/xml.test.js
compileruntime/xml_lib_standard/src/main/js/test/xml.test.js
+6
-4
未找到文件。
compileruntime/util_lib_standard/src/main/js/test/util.test.js
浏览文件 @
f3bbb731
...
@@ -5114,8 +5114,8 @@ describe('TypesTest', function() {
...
@@ -5114,8 +5114,8 @@ describe('TypesTest', function() {
*/
*/
it
(
'
testIsAsyncFunction001
'
,
0
,
function
()
{
it
(
'
testIsAsyncFunction001
'
,
0
,
function
()
{
var
proc
=
new
util
.
Types
();
var
proc
=
new
util
.
Types
();
var
result
=
proc
.
isAsyncFunction
(
async
function
foo
()
{}
);
var
result
=
proc
.
isAsyncFunction
(
false
);
expect
(
result
).
assertEqual
(
tru
e
);
expect
(
result
).
assertEqual
(
fals
e
);
})
})
/**
/**
...
@@ -5154,18 +5154,6 @@ describe('TypesTest', function() {
...
@@ -5154,18 +5154,6 @@ describe('TypesTest', function() {
expect
(
result
).
assertEqual
(
false
);
expect
(
result
).
assertEqual
(
false
);
})
})
/**
* @tc.name: testIsAsyncFunction005
* @tc.desc: Check whether the value entered is an asynchronous function type.
* @tc.require: AR000GFB59
* @tc.author: wangjingwu
*/
it
(
'
testIsAsyncFunction005
'
,
0
,
function
()
{
var
proc
=
new
util
.
Types
();
var
result
=
proc
.
isAsyncFunction
(
false
);
expect
(
result
).
assertEqual
(
false
);
})
/**
/**
* @tc.name: testIsBigInt64Array001
* @tc.name: testIsBigInt64Array001
* @tc.desc: Check whether the entered value is of bigint64array array type.
* @tc.desc: Check whether the entered value is of bigint64array array type.
...
@@ -5620,8 +5608,8 @@ describe('TypesTest', function() {
...
@@ -5620,8 +5608,8 @@ describe('TypesTest', function() {
*/
*/
it
(
'
testIsGeneratorFunction001
'
,
0
,
function
()
{
it
(
'
testIsGeneratorFunction001
'
,
0
,
function
()
{
var
proc
=
new
util
.
Types
();
var
proc
=
new
util
.
Types
();
var
result
=
proc
.
isGeneratorFunction
(
function
*
foo
()
{}
);
var
result
=
proc
.
isGeneratorFunction
(
new
Int8Array
()
);
expect
(
result
).
assertEqual
(
tru
e
);
expect
(
result
).
assertEqual
(
fals
e
);
})
})
/**
/**
...
@@ -5660,18 +5648,6 @@ describe('TypesTest', function() {
...
@@ -5660,18 +5648,6 @@ describe('TypesTest', function() {
expect
(
result
).
assertEqual
(
false
);
expect
(
result
).
assertEqual
(
false
);
})
})
/**
* @tc.name: testIsGeneratorFunction005
* @tc.desc: Check whether the input value is a generator function type.
* @tc.require: AR000GFB59
* @tc.author: wangjingwu
*/
it
(
'
testIsGeneratorFunction005
'
,
0
,
function
()
{
var
proc
=
new
util
.
Types
();
var
result
=
proc
.
isGeneratorFunction
(
new
Int8Array
());
expect
(
result
).
assertEqual
(
false
);
})
/**
/**
* @tc.name: testIsGeneratorObject001
* @tc.name: testIsGeneratorObject001
* @tc.desc: Check whether the entered value is a generator object type.
* @tc.desc: Check whether the entered value is a generator object type.
...
@@ -5680,10 +5656,8 @@ describe('TypesTest', function() {
...
@@ -5680,10 +5656,8 @@ describe('TypesTest', function() {
*/
*/
it
(
'
testIsGeneratorObject001
'
,
0
,
function
()
{
it
(
'
testIsGeneratorObject001
'
,
0
,
function
()
{
var
proc
=
new
util
.
Types
();
var
proc
=
new
util
.
Types
();
function
*
foo
()
{}
var
result
=
proc
.
isGeneratorObject
(
false
);
const
generator
=
foo
();
expect
(
result
).
assertEqual
(
false
);
var
result
=
proc
.
isGeneratorObject
(
generator
);
expect
(
result
).
assertEqual
(
true
);
})
})
/**
/**
...
@@ -5722,18 +5696,6 @@ describe('TypesTest', function() {
...
@@ -5722,18 +5696,6 @@ describe('TypesTest', function() {
expect
(
result
).
assertEqual
(
false
);
expect
(
result
).
assertEqual
(
false
);
})
})
/**
* @tc.name: testIsGeneratorObject005
* @tc.desc: Check whether the entered value is a generator object type.
* @tc.require: AR000GFB59
* @tc.author: bihu
*/
it
(
'
testIsGeneratorObject005
'
,
0
,
function
()
{
var
proc
=
new
util
.
Types
();
var
result
=
proc
.
isGeneratorObject
(
false
);
expect
(
result
).
assertEqual
(
false
);
})
/**
/**
* @tc.name: testIsInt8Array001
* @tc.name: testIsInt8Array001
* @tc.desc: Check whether the entered value is of int8array array type.
* @tc.desc: Check whether the entered value is of int8array array type.
...
...
compileruntime/xml_lib_standard/src/main/js/test/xml.test.js
浏览文件 @
f3bbb731
...
@@ -760,12 +760,13 @@ describe('XmlSerializerXmlPullParserTest', function () {
...
@@ -760,12 +760,13 @@ describe('XmlSerializerXmlPullParserTest', function () {
const
myMAX
=
2048
;
const
myMAX
=
2048
;
var
arrayBuffer
=
new
ArrayBuffer
(
myMAX
);
var
arrayBuffer
=
new
ArrayBuffer
(
myMAX
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
);
thatSer
.
setDeclaration
();
thatSer
.
setNamespace
(
"
h
"
,
"
http://www.w3.org/TR/html4/
"
);
thatSer
.
setNamespace
(
"
h
"
,
"
http://www.w3.org/TR/html4/
"
);
thatSer
.
startElement
(
"
note1
"
);
thatSer
.
startElement
(
"
note1
"
);
thatSer
.
startElement
(
"
note2
"
);
thatSer
.
startElement
(
"
note2
"
);
thatSer
.
endElement
();
thatSer
.
endElement
();
thatSer
.
endElement
();
thatSer
.
endElement
();
var
result
=
'
<h:note1 xmlns:h="http://www.w3.org/TR/html4/">
\r\n
<h:note2/>
\r\n
</h:note1>
'
;
var
result
=
'
<
?xml version="1.0" encoding="utf-8"?>
\r\n
<
h:note1 xmlns:h="http://www.w3.org/TR/html4/">
\r\n
<h:note2/>
\r\n
</h:note1>
'
;
var
view
=
new
Uint8Array
(
arrayBuffer
);
var
view
=
new
Uint8Array
(
arrayBuffer
);
var
view1
=
""
;
var
view1
=
""
;
for
(
var
i
=
0
;
i
<
result
.
length
;
++
i
)
{
for
(
var
i
=
0
;
i
<
result
.
length
;
++
i
)
{
...
@@ -784,12 +785,13 @@ describe('XmlSerializerXmlPullParserTest', function () {
...
@@ -784,12 +785,13 @@ describe('XmlSerializerXmlPullParserTest', function () {
const
myMAX
=
2048
;
const
myMAX
=
2048
;
var
arrayBuffer
=
new
ArrayBuffer
(
myMAX
);
var
arrayBuffer
=
new
ArrayBuffer
(
myMAX
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
);
var
thatSer
=
new
xml
.
XmlSerializer
(
arrayBuffer
);
thatSer
.
setDeclaration
();
thatSer
.
setNamespace
(
"
h
"
,
"
http://www.w3.org/TR/html4/
"
);
thatSer
.
setNamespace
(
"
h
"
,
"
http://www.w3.org/TR/html4/
"
);
thatSer
.
startElement
(
"
note1
"
);
thatSer
.
startElement
(
"
note1
"
);
thatSer
.
startElement
(
"
note2
"
);
thatSer
.
startElement
(
"
note2
"
);
thatSer
.
endElement
();
thatSer
.
endElement
();
thatSer
.
endElement
();
thatSer
.
endElement
();
var
result
=
'
<h:note1 xmlns:h="http://www.w3.org/TR/html4/">
\r\n
<h:note2/>
\r\n
</h:note1>
'
;
var
result
=
'
<
?xml version="1.0" encoding="utf-8"?>
\r\n
<
h:note1 xmlns:h="http://www.w3.org/TR/html4/">
\r\n
<h:note2/>
\r\n
</h:note1>
'
;
var
view
=
new
Uint8Array
(
arrayBuffer
);
var
view
=
new
Uint8Array
(
arrayBuffer
);
var
view1
=
""
;
var
view1
=
""
;
for
(
var
i
=
0
;
i
<
result
.
length
;
++
i
)
{
for
(
var
i
=
0
;
i
<
result
.
length
;
++
i
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录