Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
270df466
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看板
未验证
提交
270df466
编写于
8月 05, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 05, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4754 image XTS整改
Merge pull request !4754 from liuxueqi/master
上级
6044d68b
17de958b
变更
34
展开全部
隐藏空白更改
内联
并排
Showing
34 changed file
with
6644 addition
and
6419 deletion
+6644
-6419
multimedia/image/image_js_standard/image/Test.json
multimedia/image/image_js_standard/image/Test.json
+12
-15
multimedia/image/image_js_standard/image/src/main/js/test/List.test.js
...age/image_js_standard/image/src/main/js/test/List.test.js
+5
-2
multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js
...image_js_standard/image/src/main/js/test/addImage.test.js
+304
-0
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
...ge/image_js_standard/image/src/main/js/test/image.test.js
+2734
-1486
multimedia/image/image_js_standard/image/src/main/js/test/testImg.js
...image/image_js_standard/image/src/main/js/test/testImg.js
+11
-1
multimedia/image/image_js_standard/imageColorspace/Test.json
multimedia/image/image_js_standard/imageColorspace/Test.json
+8
-0
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/List.test.js
...js_standard/imageColorspace/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
...ndard/imageColorspace/src/main/js/test/colorspace.test.js
+2
-2
multimedia/image/image_js_standard/imageDecodeOptions/Test.json
...edia/image/image_js_standard/imageDecodeOptions/Test.json
+12
-12
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/List.test.js
...standard/imageDecodeOptions/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
...tandard/imageDecodeOptions/src/main/js/test/image.test.js
+2330
-2680
multimedia/image/image_js_standard/imageExif/Test.json
multimedia/image/image_js_standard/imageExif/Test.json
+11
-11
multimedia/image/image_js_standard/imageExif/src/main/js/test/List.test.js
...image_js_standard/imageExif/src/main/js/test/List.test.js
+0
-1
multimedia/image/image_js_standard/imageExif/src/main/js/test/addImage.test.js
...e_js_standard/imageExif/src/main/js/test/addImage.test.js
+0
-302
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
...mage_js_standard/imageExif/src/main/js/test/image.test.js
+52
-1210
multimedia/image/image_js_standard/imageExif/src/main/js/test/testImg.js
...e/image_js_standard/imageExif/src/main/js/test/testImg.js
+0
-22
multimedia/image/image_js_standard/imageModifyProperty/Test.json
...dia/image/image_js_standard/imageModifyProperty/Test.json
+7
-4
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/List.test.js
...tandard/imageModifyProperty/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
...ndard/imageModifyProperty/src/main/js/test/modify.test.js
+39
-49
multimedia/image/image_js_standard/imagePacking/Test.json
multimedia/image/image_js_standard/imagePacking/Test.json
+19
-8
multimedia/image/image_js_standard/imagePacking/src/main/js/test/List.test.js
...ge_js_standard/imagePacking/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
...js_standard/imagePacking/src/main/js/test/packing.test.js
+937
-454
multimedia/image/image_js_standard/imagePixelMapFramework/Test.json
.../image/image_js_standard/imagePixelMapFramework/Test.json
+8
-0
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/List.test.js
...dard/imagePixelMapFramework/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
...imagePixelMapFramework/src/main/js/test/framework.test.js
+2
-2
multimedia/image/image_js_standard/imageReceiver/Test.json
multimedia/image/image_js_standard/imageReceiver/Test.json
+6
-18
multimedia/image/image_js_standard/imageWebp/Test.json
multimedia/image/image_js_standard/imageWebp/Test.json
+6
-14
multimedia/image/image_js_standard/imageWebp/src/main/js/test/List.test.js
...image_js_standard/imageWebp/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
...image_js_standard/imageWebp/src/main/js/test/webp.test.js
+87
-46
multimedia/image/image_js_standard/imageYUV/Test.json
multimedia/image/image_js_standard/imageYUV/Test.json
+7
-11
multimedia/image/image_js_standard/imageYUV/src/main/js/test/List.test.js
.../image_js_standard/imageYUV/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
...e/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
+22
-53
multimedia/image/image_js_standard/image_ndk_test/Test.json
multimedia/image/image_js_standard/image_ndk_test/Test.json
+8
-1
multimedia/image/image_js_standard/image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets
.../image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets
+1
-1
未找到文件。
multimedia/image/image_js_standard/image/Test.json
浏览文件 @
270df466
...
...
@@ -19,31 +19,28 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"mkdir /data/app/el2/100/base/ohos.acts.multimedia.image/files"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files"
]
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/"
,
"chmod -R 666 /data/app/el2/100/base/ohos.acts.multimedia.image/haps/entry/files/*"
],
"teardown-command"
:
[]
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[],
"push"
:
[
"./resource/image/test.bmp ->/data/app/el2/100/base/ohos.acts.multimedia.image/files"
,
"./resource/image/test.png ->/data/app/el2/100/base/ohos.acts.multimedia.image/files"
,
"./resource/image/test.123 ->/data/app/el2/100/base/ohos.acts.multimedia.image/files"
,
"./resource/image/test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image/files"
,
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/files"
,
"./resource/image/moving_test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image/files"
"./resource/image/test.bmp ->/data/app/el2/100/base/ohos.acts.multimedia.image/
haps/entry/
files"
,
"./resource/image/test.png ->/data/app/el2/100/base/ohos.acts.multimedia.image/
haps/entry/
files"
,
"./resource/image/test.123 ->/data/app/el2/100/base/ohos.acts.multimedia.image/
haps/entry/
files"
,
"./resource/image/test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image/
haps/entry/
files"
,
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image/
haps/entry/
files"
,
"./resource/image/moving_test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image/
haps/entry/
files"
]
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.bmp"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.png"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.123"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.gif"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/test.jpg"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image/files/moving_test.gif"
"hilog -Q pidoff"
,
"hilog -b D"
],
"teardown-command"
:
[]
}
...
...
multimedia/image/image_js_standard/image/src/main/js/test/List.test.js
浏览文件 @
270df466
...
...
@@ -13,7 +13,10 @@
* limitations under the License.
*/
import
Image_test
from
'
./image.test.js
'
import
imageJsTest
from
'
./image.test.js
'
import
addImage
from
'
./addImage.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imageJsTest
()
addImage
()
}
multimedia/image/image_js_standard/image/src/main/js/test/addImage.test.js
0 → 100644
浏览文件 @
270df466
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
image
from
'
@ohos.multimedia.image
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
testPng
}
from
'
./testImg
'
export
default
function
addImage
()
{
describe
(
'
addImage
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
})
beforeEach
(
function
()
{
console
.
info
(
'
beforeEach case
'
);
})
afterEach
(
async
function
()
{
console
.
info
(
'
afterEach case
'
);
})
afterAll
(
async
function
()
{
console
.
info
(
'
afterAll case
'
);
})
function
createPixMapPromise
(
done
,
testNum
,
opts
)
{
const
Color
=
new
ArrayBuffer
(
96
);
image
.
createPixelMap
(
Color
,
opts
)
.
then
(
pixelmap
=>
{
expect
(
pixelmap
!=
undefined
).
assertTrue
();
console
.
info
(
`
${
testNum
}
success`
);
done
();
})
.
catch
(
error
=>
{
console
.
log
(
`
${
testNum
}
error: `
+
error
);
expect
(
false
).
assertTrue
();
done
();
})
}
function
createPixMapCb
(
done
,
testNum
,
opts
)
{
const
Color
=
new
ArrayBuffer
(
96
);
image
.
createPixelMap
(
Color
,
opts
,
(
err
,
pixelmap
)
=>
{
expect
(
pixelmap
!=
undefined
).
assertTrue
();
console
.
info
(
`
${
testNum
}
success`
);
done
();
})
}
/**
* @tc.number : addImage_001
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 0)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_001
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
0
}
createPixMapPromise
(
done
,
'
add_01_001
'
,
opts
);
})
/**
* @tc.number : add_01_002
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 1)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_002
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
1
}
createPixMapPromise
(
done
,
'
add_01_002
'
,
opts
);
})
/**
* @tc.number : add_01_003
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 0, alphaType: 2)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_003
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
2
}
createPixMapPromise
(
done
,
'
add_01_003
'
,
opts
);
})
/**
* @tc.number : add_01_004
* @tc.name : create pixelmap-promise (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 0, alphaType: 3)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_01_004
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
3
}
createPixMapPromise
(
done
,
'
add_01_004
'
,
opts
);
})
/**
* @tc.number : add_02_001
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 0, alphaType: 0)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_001
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
0
}
createPixMapCb
(
done
,
'
add_02_001
'
,
opts
);
})
/**
* @tc.number : add_02_002
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 0, alphaType: 1)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_002
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
0
,
alphaType
:
1
}
createPixMapCb
(
done
,
'
add_02_002
'
,
opts
);
})
/**
* @tc.number : add_02_003
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 2)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_003
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
2
}
createPixMapCb
(
done
,
'
add_02_003
'
,
opts
);
})
/**
* @tc.number : add_02_004
* @tc.name : create pixelmap-callback (editable: true, pixelFormat: RGBA_8888, size: { height: 4, width: 6 }, bytes = buffer,scaleMode: 1, alphaType: 3)
* @tc.desc : 1.create InitializationOptions object
* 2.set editable,pixeFormat,size
* 3.using color and opts create newPixelMap
* 4.return newpixelmap not empty
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 0
*/
it
(
'
add_02_004
'
,
0
,
async
function
(
done
)
{
let
opts
=
{
editable
:
true
,
pixelFormat
:
3
,
size
:
{
height
:
4
,
width
:
6
},
scaleMode
:
1
,
alphaType
:
3
}
createPixMapCb
(
done
,
'
add_02_004
'
,
opts
);
})
/**
* @tc.number : add_053
* @tc.name : createIncrementalSource-updateData-png-promise
* @tc.desc : 1.create imagesource
* 2.update data
* 3.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
add_053
'
,
0
,
async
function
(
done
)
{
try
{
let
testimagebuffer
=
testPng
;
console
.
info
(
'
add_053 0003
'
+
testimagebuffer
.
length
);
let
bufferSize
=
5000
;
let
offset
=
0
;
const
incSouce
=
image
.
createIncrementalSource
(
new
ArrayBuffer
(
1
));
let
ret
;
let
isFinished
=
false
;
while
(
offset
<
testimagebuffer
.
length
)
{
console
.
info
(
'
add_053 0006
'
+
testimagebuffer
.
length
);
var
oneStep
=
testimagebuffer
.
slice
(
offset
,
offset
+
bufferSize
);
console
.
info
(
'
add_053 0007
'
+
oneStep
.
length
);
if
(
oneStep
.
length
<
bufferSize
)
{
isFinished
=
true
;
}
ret
=
await
incSouce
.
updateData
(
oneStep
,
isFinished
,
0
,
oneStep
.
length
);
if
(
!
ret
)
{
console
.
info
(
'
add_053 updateData failed
'
);
expect
(
ret
).
assertTrue
();
break
;
}
offset
=
offset
+
oneStep
.
length
;
console
.
info
(
'
add_053 0011
'
+
offset
);
}
if
(
ret
)
{
console
.
info
(
'
add_053 updateData success
'
);
let
decodingOptions
=
{
sampleSize
:
1
};
incSouce
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
console
.
info
(
'
add_053 0014
'
+
pixelmap
);
expect
(
pixelmap
!=
undefined
).
assertTrue
();
done
();
})
}
else
{
expect
(
false
).
assertTrue
();
done
();
}
}
catch
(
error
)
{
expect
(
false
).
assertTrue
();
console
.
info
(
'
add_053 updateData failed
'
+
error
);
}
})
/**
* @tc.number : add_053-1
* @tc.name : createIncrementalSource-updateData-png-promise
* @tc.desc : 1.create imagesource
* 2.update data
* 3.create pixelmap
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.level : Level 1
*/
it
(
'
add_053-1
'
,
0
,
async
function
(
done
)
{
try
{
let
testimagebuffer
=
testPng
;
console
.
info
(
'
add_053-1 0001
'
+
testimagebuffer
.
length
);
let
bufferSize
=
5000
;
let
offset
=
0
;
const
incSouce
=
image
.
createIncrementalSource
(
new
ArrayBuffer
(
1
));
let
ret
;
let
isFinished
=
false
;
while
(
offset
<
testimagebuffer
.
length
)
{
var
oneStep
=
testimagebuffer
.
slice
(
offset
,
offset
+
bufferSize
);
console
.
info
(
'
add_053-1 0002
'
+
oneStep
.
length
);
if
(
oneStep
.
length
<
bufferSize
)
{
isFinished
=
true
;
}
ret
=
await
new
Promise
(
res
=>
{
incSouce
.
updateData
(
oneStep
,
isFinished
,
0
,
oneStep
.
length
,
(
err
,
ret
)
=>
{
res
(
ret
);
})
})
if
(
!
ret
)
{
console
.
info
(
'
add_053-1 updateData failed
'
);
expect
(
ret
).
assertTrue
();
break
;
}
offset
=
offset
+
oneStep
.
length
;
console
.
info
(
'
add_053-1 0003
'
+
offset
);
}
if
(
ret
)
{
console
.
info
(
'
add_053-1 updateData success
'
);
let
decodingOptions
=
{
sampleSize
:
1
};
incSouce
.
createPixelMap
(
decodingOptions
,
(
err
,
pixelmap
)
=>
{
console
.
info
(
'
add_053-1 0004
'
+
pixelmap
);
expect
(
pixelmap
!=
undefined
).
assertTrue
();
done
();
})
}
else
{
expect
(
false
).
assertTrue
();
done
();
}
}
catch
(
error
)
{
expect
(
false
).
assertTrue
();
console
.
info
(
'
add_053-1 updateData failed
'
+
error
);
}
})
})
}
\ No newline at end of file
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/image/src/main/js/test/testImg.js
浏览文件 @
270df466
...
...
@@ -607,4 +607,14 @@ let testJpg = new Uint8Array([255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
2
,
138
,
40
,
160
,
15
,
255
,
217
])
export
{
testPng
,
testJpg
}
\ No newline at end of file
let
tcBuf020
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tcBuf020_1
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tcBuf021
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tcBuf021_1
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tcBuf022
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
export
{
testPng
,
testJpg
,
tcBuf020
,
tcBuf020_1
,
tcBuf021
,
tcBuf021_1
,
tcBuf022
}
\ No newline at end of file
multimedia/image/image_js_standard/imageColorspace/Test.json
浏览文件 @
270df466
...
...
@@ -15,6 +15,14 @@
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"hilog -Q pidoff"
,
"hilog -b D"
],
"teardown-command"
:
[]
}
]
}
\ No newline at end of file
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/List.test.js
浏览文件 @
270df466
...
...
@@ -14,7 +14,7 @@
*/
import
Image_test
from
'
./colorspace.test.js
'
import
imageColorSpace
from
'
./colorspace.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imageColorSpace
()
}
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
浏览文件 @
270df466
...
...
@@ -17,8 +17,8 @@ import image from '@ohos.multimedia.image'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
{
iccbuf
}
from
'
./testImg2
'
export
default
function
Image_test
()
{
describe
(
'
Image_test
'
,
function
()
{
export
default
function
imageColorSpace
()
{
describe
(
'
imageColorSpace
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
})
...
...
multimedia/image/image_js_standard/imageDecodeOptions/Test.json
浏览文件 @
270df466
...
...
@@ -19,29 +19,29 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"mkdir /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/haps/entry/files/"
,
"chmod -R 666 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/haps/entry/files/*"
],
"teardown-command"
:[
]
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[],
"push"
:
[
"./resource/image/test.bmp ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
,
"./resource/image/test.png ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
,
"./resource/image/test.tiff ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
,
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
,
"./resource/image/moving_test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files"
"./resource/image/test.bmp ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/
haps/entry/
files"
,
"./resource/image/test.png ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/
haps/entry/
files"
,
"./resource/image/test.tiff ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/
haps/entry/
files"
,
"./resource/image/test.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/
haps/entry/
files"
,
"./resource/image/moving_test.gif ->/data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/
haps/entry/
files"
]
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.bmp"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.png"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.tiff"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/test.jpg"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.DecodeOptions/files/moving_test.gif"
"hilog -Q pidoff"
,
"hilog -b D"
],
"teardown-command"
:
[]
}
...
...
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/List.test.js
浏览文件 @
270df466
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
Image_test
from
'
./image.test.js
'
import
imageDecodeOptions
from
'
./image.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imageDecodeOptions
()
}
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageExif/Test.json
浏览文件 @
270df466
...
...
@@ -17,8 +17,11 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"mkdir /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/haps/entry/files/"
,
"chmod -R 666 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/haps/entry/files/*"
],
"teardown-command"
:[
]
},
{
...
...
@@ -26,20 +29,17 @@
"pre-push"
:
[
],
"push"
:
[
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
,
"./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files"
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/
haps/entry/
files"
,
"./resource/image/test_exif1.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.Exif/
haps/entry/
files"
]
},
{
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"
chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files/test_exif.jpg
"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Exif/files/test_exif1.jpg
"
"
hilog -Q pidoff
"
,
"hilog -b D
"
],
"teardown-command"
:[
]
"teardown-command"
:
[]
}
]
...
...
multimedia/image/image_js_standard/imageExif/src/main/js/test/List.test.js
浏览文件 @
270df466
...
...
@@ -14,4 +14,3 @@
*/
require
(
'
./image.test.js
'
)
require
(
'
./addImage.test.js
'
)
multimedia/image/image_js_standard/imageExif/src/main/js/test/addImage.test.js
已删除
100755 → 0
浏览文件 @
6044d68b
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageExif/src/main/js/test/testImg.js
已删除
100644 → 0
浏览文件 @
6044d68b
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
let
tc_020buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc_020_1buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc_021buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc_021_1buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc_022buf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
export
{
tc_020buf
,
tc_020_1buf
,
tc_021buf
,
tc_021_1buf
,
tc_022buf
}
\ No newline at end of file
multimedia/image/image_js_standard/imageModifyProperty/Test.json
浏览文件 @
270df466
...
...
@@ -18,15 +18,18 @@
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"mkdir /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/files"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/files"
"mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/"
,
"chmod -R 666 /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/*"
],
"teardown-command"
:[
]
},
{
"type"
:
"PushKit"
,
"pre-push"
:
[],
"push"
:
[
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/files"
"./resource/image/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/
haps/entry/
files"
]
},
{
...
...
@@ -34,7 +37,7 @@
"run-command"
:
[
"hilog -Q pidoff"
,
"hilog -b D"
,
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/files/test_exif.jpg"
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/
haps/entry/
files/test_exif.jpg"
],
"teardown-command"
:
[
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/*"
...
...
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/List.test.js
浏览文件 @
270df466
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
Image
from
'
./modify.test.js
'
import
imageModifyProperty
from
'
./modify.test.js
'
export
default
function
testsuite
()
{
Image
()
imageModifyProperty
()
}
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePacking/Test.json
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePacking/src/main/js/test/List.test.js
浏览文件 @
270df466
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
Image_test
from
'
./packing.test.js
'
import
imagePacking
from
'
./packing.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imagePacking
()
}
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePixelMapFramework/Test.json
浏览文件 @
270df466
...
...
@@ -15,6 +15,14 @@
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"hilog -Q pidoff"
,
"hilog -b D"
],
"teardown-command"
:
[]
}
]
}
\ No newline at end of file
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/List.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageReceiver/Test.json
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageWebp/Test.json
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageWebp/src/main/js/test/List.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageYUV/Test.json
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageYUV/src/main/js/test/List.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/image_ndk_test/Test.json
浏览文件 @
270df466
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/image_ndk_test/entry/src/main/ets/test/NativeApiTest.ets
浏览文件 @
270df466
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录