Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
79fff3a5
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
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看板
提交
79fff3a5
编写于
6月 27, 2022
作者:
F
fengzewu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
code check
Signed-off-by:
N
fengzewu
<
fengzewu@huawei.com
>
上级
81ebcbee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1185 addition
and
1184 deletion
+1185
-1184
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
...ndard/imageModifyProperty/src/main/js/test/modify.test.js
+1181
-1181
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modifyBuffer.js
...dard/imageModifyProperty/src/main/js/test/modifyBuffer.js
+4
-3
未找到文件。
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
浏览文件 @
79fff3a5
/*
/*
* Copyright (C) 202
1 Huawei Device Co., Ltd.
* Copyright (C) 202
2 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
import
image
from
'
@ohos.multimedia.image
'
import
image
from
'
@ohos.multimedia.image
'
import
fileio
from
'
@ohos.fileio
'
import
fileio
from
'
@ohos.fileio
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
tc_184_buf2
}
from
'
./modifyBuffer
'
import
{
modifyBuf
}
from
'
./modifyBuffer
'
import
abilityAccessCtrl
from
'
@ohos.abilityAccessCtrl
'
import
abilityAccessCtrl
from
'
@ohos.abilityAccessCtrl
'
import
bundle
from
'
@ohos.bundle
'
import
bundle
from
'
@ohos.bundle
'
describe
(
'
Image
'
,
function
()
{
describe
(
'
Image
'
,
function
()
{
var
pathExifJpg
=
'
/data/storage/el2/base/files/test_exif.jpg
'
;
var
pathExifJpg
=
'
/data/storage/el2/base/files/test_exif.jpg
'
;
beforeAll
(
async
function
()
{
beforeAll
(
async
function
()
{
await
applyPermission
();
await
applyPermission
();
console
.
info
(
'
beforeAll case
'
);
console
.
info
(
'
beforeAll case
'
);
})
})
beforeEach
(
function
()
{
beforeEach
(
function
()
{
console
.
info
(
'
beforeEach case
'
);
console
.
info
(
'
beforeEach case
'
);
})
})
afterEach
(
function
()
{
afterEach
(
function
()
{
console
.
info
(
'
afterEach case
'
);
console
.
info
(
'
afterEach case
'
);
})
})
afterAll
(
function
()
{
afterAll
(
function
()
{
console
.
info
(
'
afterAll case
'
);
console
.
info
(
'
afterAll case
'
);
})
})
async
function
applyPermission
(){
async
function
applyPermission
(){
let
appInfo
=
await
bundle
.
getApplicationInfo
(
'
ohos.acts.multimedia.image.ModifyProperty
'
,
0
,
100
);
let
appInfo
=
await
bundle
.
getApplicationInfo
(
'
ohos.acts.multimedia.image.ModifyProperty
'
,
0
,
100
);
let
atManager
=
abilityAccessCtrl
.
createAtManager
();
let
atManager
=
abilityAccessCtrl
.
createAtManager
();
if
(
atManager
!=
null
){
if
(
atManager
!=
null
){
let
tokenID
=
appInfo
.
accessTokenId
;
let
tokenID
=
appInfo
.
accessTokenId
;
console
.
info
(
'
[permission]case accessTokenId is
'
+
tokenID
);
console
.
info
(
'
[permission]case accessTokenId is
'
+
tokenID
);
let
permissionName1
=
'
ohos.permission.MEDIA_LOCATION
'
;
let
permissionName1
=
'
ohos.permission.MEDIA_LOCATION
'
;
let
permissionName2
=
'
ohos.permission.READ_MEDIA
'
;
let
permissionName2
=
'
ohos.permission.READ_MEDIA
'
;
let
permissionName3
=
'
ohos.permission.WRITE_MEDIA
'
;
let
permissionName3
=
'
ohos.permission.WRITE_MEDIA
'
;
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionName1
).
then
((
result
)
=>
{
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionName1
).
then
((
result
)
=>
{
console
.
info
(
'
[permission]case grantUserGrantedPermission success:
'
+
result
);
console
.
info
(
'
[permission]case grantUserGrantedPermission success:
'
+
result
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
'
[permission]case grantUserGrantedPermission failed:
'
+
err
);
console
.
info
(
'
[permission]case grantUserGrantedPermission failed:
'
+
err
);
});
});
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionName2
).
then
((
result
)
=>
{
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionName2
).
then
((
result
)
=>
{
console
.
info
(
'
[permission]case grantUserGrantedPermission success:
'
+
result
);
console
.
info
(
'
[permission]case grantUserGrantedPermission success:
'
+
result
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
'
[permission]case grantUserGrantedPermission failed:
'
+
err
);
console
.
info
(
'
[permission]case grantUserGrantedPermission failed:
'
+
err
);
});
});
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionName3
).
then
((
result
)
=>
{
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionName3
).
then
((
result
)
=>
{
console
.
info
(
'
[permission]case grantUserGrantedPermission success:
'
+
result
);
console
.
info
(
'
[permission]case grantUserGrantedPermission success:
'
+
result
);
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
'
[permission]case grantUserGrantedPermission failed:
'
+
err
);
console
.
info
(
'
[permission]case grantUserGrantedPermission failed:
'
+
err
);
});
});
}
else
{
}
else
{
console
.
info
(
'
[permission]case apply permission failed,createAtManager failed
'
);
console
.
info
(
'
[permission]case apply permission failed,createAtManager failed
'
);
}
}
}
}
async
function
modifyPromise
(
done
,
testNum
,
type
,
key
,
value
,
checkProps
){
async
function
modifyPromise
(
done
,
testNum
,
type
,
key
,
value
,
checkProps
){
let
imageSourceApi
;
let
imageSourceApi
;
if
(
type
==
'
buffer
'
)
{
if
(
type
==
'
buffer
'
)
{
const
data
=
tc_184_buf2
.
buffer
;
const
data
=
modifyBuf
.
buffer
;
imageSourceApi
=
image
.
createImageSource
(
data
);
imageSourceApi
=
image
.
createImageSource
(
data
);
}
else
{
}
else
{
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
}
}
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create image source failed`
);
console
.
info
(
`
${
testNum
}
create image source failed`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
).
then
(()
=>
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
).
then
(()
=>
{
imageSourceApi
.
getImageProperty
(
key
).
then
(
data
=>
{
imageSourceApi
.
getImageProperty
(
key
).
then
(
data
=>
{
console
.
info
(
`
${
testNum
}
${
key
}
`
+
data
);
console
.
info
(
`
${
testNum
}
${
key
}
`
+
data
);
checkProps
(
data
);
checkProps
(
data
);
done
();
done
();
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
`
${
testNum
}
getImageProperty failed, err:
${
err
}
`
);
console
.
info
(
`
${
testNum
}
getImageProperty failed, err:
${
err
}
`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
})
})
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
console
.
info
(
`
${
testNum
}
modifyImageProperty failed, err:
${
err
}
`
);
console
.
info
(
`
${
testNum
}
modifyImageProperty failed, err:
${
err
}
`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
})
})
}
}
}
}
async
function
modifyCb
(
done
,
testNum
,
type
,
key
,
value
,
checkProps
){
async
function
modifyCb
(
done
,
testNum
,
type
,
key
,
value
,
checkProps
){
let
imageSourceApi
;
let
imageSourceApi
;
if
(
type
==
'
buffer
'
)
{
if
(
type
==
'
buffer
'
)
{
const
data
=
tc_184_buf2
.
buffer
;
const
data
=
modifyBuf
.
buffer
;
imageSourceApi
=
image
.
createImageSource
(
data
);
imageSourceApi
=
image
.
createImageSource
(
data
);
}
else
{
}
else
{
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
}
}
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create image source failed`
);
console
.
info
(
`
${
testNum
}
create image source failed`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
(
error
)
=>
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
(
error
)
=>
{
if
(
error
){
if
(
error
){
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
console
.
info
(
`
${
testNum
}
modify err: `
+
error
);
console
.
info
(
`
${
testNum
}
modify err: `
+
error
);
}
else
{
}
else
{
imageSourceApi
.
getImageProperty
(
key
,
(
error
,
data
)
=>
{
imageSourceApi
.
getImageProperty
(
key
,
(
error
,
data
)
=>
{
if
(
error
){
if
(
error
){
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
console
.
info
(
`
${
testNum
}
get err: `
+
error
);
console
.
info
(
`
${
testNum
}
get err: `
+
error
);
}
else
{
}
else
{
console
.
info
(
`
${
testNum
}
${
key
}
: `
+
data
);
console
.
info
(
`
${
testNum
}
${
key
}
: `
+
data
);
checkProps
(
data
);
checkProps
(
data
);
done
();
done
();
}
}
})
})
}
}
})
})
}
}
}
}
async
function
modifyCb1
(
done
,
testNum
,
type
,
key
,
value
,
checkProps
){
async
function
modifyCb1
(
done
,
testNum
,
type
,
key
,
value
,
checkProps
){
let
imageSourceApi
;
let
imageSourceApi
;
if
(
type
==
'
buffer
'
)
{
if
(
type
==
'
buffer
'
)
{
const
data
=
tc_184_buf2
.
buffer
;
const
data
=
modifyBuf
.
buffer
;
imageSourceApi
=
image
.
createImageSource
(
data
);
imageSourceApi
=
image
.
createImageSource
(
data
);
}
else
{
}
else
{
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
}
}
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create image source failed`
);
console
.
info
(
`
${
testNum
}
create image source failed`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
let
property
=
{
index
:
0
,
defaultValue
:
'
1
'
}
let
property
=
{
index
:
0
,
defaultValue
:
'
1
'
}
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
property
,
(
error
)
=>
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
property
,
(
error
)
=>
{
if
(
error
){
if
(
error
){
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
console
.
info
(
`
${
testNum
}
modify err: `
+
error
);
console
.
info
(
`
${
testNum
}
modify err: `
+
error
);
}
else
{
}
else
{
imageSourceApi
.
getImageProperty
(
key
,
(
error
,
data
)
=>
{
imageSourceApi
.
getImageProperty
(
key
,
(
error
,
data
)
=>
{
if
(
error
){
if
(
error
){
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
console
.
info
(
`
${
testNum
}
get err: `
+
error
);
console
.
info
(
`
${
testNum
}
get err: `
+
error
);
}
else
{
}
else
{
console
.
info
(
`
${
testNum
}
${
key
}
: `
+
data
);
console
.
info
(
`
${
testNum
}
${
key
}
: `
+
data
);
checkProps
(
data
);
checkProps
(
data
);
done
();
done
();
}
}
})
})
}
}
})
})
}
}
}
}
async
function
modify
ImageProperty_err_cb
(
done
,
testNum
,
type
,
key
,
value
)
{
async
function
modify
ErrCb
(
done
,
testNum
,
type
,
key
,
value
)
{
let
imageSourceApi
;
let
imageSourceApi
;
if
(
type
==
'
buffer
'
)
{
if
(
type
==
'
buffer
'
)
{
const
data
=
tc_184_buf2
.
buffer
;
const
data
=
modifyBuf
.
buffer
;
imageSourceApi
=
image
.
createImageSource
(
data
);
imageSourceApi
=
image
.
createImageSource
(
data
);
}
else
{
}
else
{
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
}
}
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create image source failed`
);
console
.
info
(
`
${
testNum
}
create image source failed`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
(
error
)
=>
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
(
error
)
=>
{
expect
(
error
.
code
!=
0
).
assertTrue
();
expect
(
error
.
code
!=
0
).
assertTrue
();
console
.
info
(
`
${
testNum
}
errormsg: `
+
error
)
console
.
info
(
`
${
testNum
}
errormsg: `
+
error
)
done
();
done
();
})
})
}
}
}
}
async
function
modify
ImageProperty_err_cb1
(
done
,
testNum
,
type
,
key
,
value
)
{
async
function
modify
ErrCb1
(
done
,
testNum
,
type
,
key
,
value
)
{
let
imageSourceApi
;
let
imageSourceApi
;
if
(
type
==
'
buffer
'
)
{
if
(
type
==
'
buffer
'
)
{
const
data
=
tc_184_buf2
.
buffer
;
const
data
=
modifyBuf
.
buffer
;
imageSourceApi
=
image
.
createImageSource
(
data
);
imageSourceApi
=
image
.
createImageSource
(
data
);
}
else
{
}
else
{
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
}
}
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create image source failed`
);
console
.
info
(
`
${
testNum
}
create image source failed`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
let
property
=
{
index
:
0
,
defaultValue
:
'
1
'
}
let
property
=
{
index
:
0
,
defaultValue
:
'
1
'
}
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
property
,
(
error
)
=>
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
,
property
,
(
error
)
=>
{
expect
(
error
.
code
!=
0
).
assertTrue
();
expect
(
error
.
code
!=
0
).
assertTrue
();
console
.
info
(
`
${
testNum
}
errormsg: `
+
error
)
console
.
info
(
`
${
testNum
}
errormsg: `
+
error
)
done
();
done
();
})
})
}
}
}
}
async
function
modifyImage
Property_err_promise
(
done
,
testNum
,
type
,
key
,
value
)
{
async
function
modifyImage
ErrPromise
(
done
,
testNum
,
type
,
key
,
value
)
{
let
imageSourceApi
;
let
imageSourceApi
;
try
{
try
{
if
(
type
==
'
buffer
'
)
{
if
(
type
==
'
buffer
'
)
{
const
data
=
tc_184_buf2
.
buffer
;
const
data
=
modifyBuf
.
buffer
;
imageSourceApi
=
image
.
createImageSource
(
data
);
imageSourceApi
=
image
.
createImageSource
(
data
);
}
else
{
}
else
{
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
let
fdExifJpg
=
fileio
.
openSync
(
pathExifJpg
,
0o2
|
0o100
,
0o777
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
imageSourceApi
=
image
.
createImageSource
(
fdExifJpg
);
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
}
if
(
imageSourceApi
==
undefined
)
{
if
(
imageSourceApi
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create image source failed`
);
console
.
info
(
`
${
testNum
}
create image source failed`
);
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}
else
{
}
else
{
imageSourceApi
.
modifyImageProperty
(
key
,
value
)
imageSourceApi
.
modifyImageProperty
(
key
,
value
)
.
then
(()
=>
{
.
then
(()
=>
{
expect
(
false
).
assertTrue
();
expect
(
false
).
assertTrue
();
done
();
done
();
}).
catch
((
error
)
=>
{
}).
catch
((
error
)
=>
{
expect
(
error
.
code
!=
0
).
assertTrue
();
expect
(
error
.
code
!=
0
).
assertTrue
();
console
.
info
(
`
${
testNum
}
message: `
+
error
);
console
.
info
(
`
${
testNum
}
message: `
+
error
);
done
();
done
();
})
})
}
}
}
}
/**
/**
* @tc.number : modify_01_001
* @tc.number : modify_01_001
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_001
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_001
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
Top-right
'
).
assertTrue
();
expect
(
result
==
'
Top-right
'
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_001
'
,
'
buffer
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_001
'
,
'
buffer
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_002
* @tc.number : modify_01_002
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_002
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_002
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_002
'
,
'
buffer
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_002
'
,
'
buffer
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_003
* @tc.number : modify_01_003
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_003
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_003
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_003
'
,
'
buffer
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_003
'
,
'
buffer
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_004
* @tc.number : modify_01_004
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_004
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_004
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
N
'
).
assertTrue
();
expect
(
result
==
'
N
'
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_004
'
,
'
buffer
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_004
'
,
'
buffer
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_005
* @tc.number : modify_01_005
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_005
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_005
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
W
'
).
assertTrue
();
expect
(
result
==
'
W
'
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_005
'
,
'
buffer
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_005
'
,
'
buffer
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_006
* @tc.number : modify_01_006
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_006
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_006
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
Top-right
'
).
assertTrue
();
expect
(
result
==
'
Top-right
'
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_006
'
,
'
fd
'
,
"
Orientation
"
,
"
2
"
,
checkProps
)
modifyPromise
(
done
,
'
modify_01_006
'
,
'
fd
'
,
"
Orientation
"
,
"
2
"
,
checkProps
)
})
})
/**
/**
* @tc.number : modify_01_007
* @tc.number : modify_01_007
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_007
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_007
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_007
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_007
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_008
* @tc.number : modify_01_008
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_008
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_008
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_008
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_008
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_009
* @tc.number : modify_01_009
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_009
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_009
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
N
'
).
assertTrue
();
expect
(
result
==
'
N
'
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_009
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_009
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_010
* @tc.number : modify_01_010
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_010
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_010
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
W
'
).
assertTrue
();
expect
(
result
==
'
W
'
).
assertTrue
();
}
}
modifyPromise
(
done
,
'
modify_01_010
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
modifyPromise
(
done
,
'
modify_01_010
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_001
* @tc.number : modify_02_001
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_001
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_001
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
Top-right
'
).
assertTrue
();
expect
(
result
==
'
Top-right
'
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_001
'
,
'
buffer
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_001
'
,
'
buffer
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_002
* @tc.number : modify_02_002
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_002
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_002
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_002
'
,
'
buffer
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_002
'
,
'
buffer
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_003
* @tc.number : modify_02_003
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_003
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_003
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_003
'
,
'
buffer
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_003
'
,
'
buffer
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_004
* @tc.number : modify_02_004
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_004
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_004
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
N
"
).
assertTrue
();
expect
(
result
==
"
N
"
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_004
'
,
'
buffer
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_004
'
,
'
buffer
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
})
})
/**
/**
* @tc.number :modify_02_005
* @tc.number :modify_02_005
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_005
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_005
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
W
"
).
assertTrue
();
expect
(
result
==
"
W
"
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_005
'
,
'
buffer
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_005
'
,
'
buffer
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_006
* @tc.number : modify_02_006
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.name : modifyImageProperty(Orientation)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_006
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_006
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
Top-right
'
).
assertTrue
();
expect
(
result
==
'
Top-right
'
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_006
'
,
'
fd
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_006
'
,
'
fd
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_007
* @tc.number : modify_02_007
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.name : modifyImageProperty(GPSLatitude)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_007
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_007
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_007
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_007
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_008
* @tc.number : modify_02_008
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.name : modifyImageProperty(GPSLongitude)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_008
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_008
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_008
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_008
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_009
* @tc.number : modify_02_009
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.name : modifyImageProperty(GPSLatitudeRef)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_009
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_009
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
N
"
).
assertTrue
();
expect
(
result
==
"
N
"
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_009
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_009
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_02_010
* @tc.number : modify_02_010
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.name : modifyImageProperty(GPSLongitudeRef)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_010
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_010
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
W
"
).
assertTrue
();
expect
(
result
==
"
W
"
).
assertTrue
();
}
}
modifyCb
(
done
,
'
modify_02_010
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
modifyCb
(
done
,
'
modify_02_010
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_001
* @tc.number : modify_03_001
* @tc.name : modifyImageProperty(Orientation,property)-callback
* @tc.name : modifyImageProperty(Orientation,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_001
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_001
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
Top-right
'
).
assertTrue
();
expect
(
result
==
'
Top-right
'
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_001
'
,
'
buffer
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_001
'
,
'
buffer
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_002
* @tc.number : modify_03_002
* @tc.name : modifyImageProperty(GPSLatitude,property)-callback
* @tc.name : modifyImageProperty(GPSLatitude,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_002
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_002
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_002
'
,
'
buffer
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_002
'
,
'
buffer
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_003
* @tc.number : modify_03_003
* @tc.name : modifyImageProperty(GPSLongitude,property)-callback
* @tc.name : modifyImageProperty(GPSLongitude,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_003
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_003
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_003
'
,
'
buffer
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_003
'
,
'
buffer
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_004
* @tc.number : modify_03_004
* @tc.name : modifyImageProperty(GPSLatitudeRef,property)-callback
* @tc.name : modifyImageProperty(GPSLatitudeRef,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_004
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_004
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
N
"
).
assertTrue
();
expect
(
result
==
"
N
"
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_004
'
,
'
buffer
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_004
'
,
'
buffer
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_005
* @tc.number : modify_03_005
* @tc.name : modifyImageProperty(GPSLongitudeRef,property)-callback
* @tc.name : modifyImageProperty(GPSLongitudeRef,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_005
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_005
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
W
"
).
assertTrue
();
expect
(
result
==
"
W
"
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_005
'
,
'
buffer
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_005
'
,
'
buffer
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_006
* @tc.number : modify_03_006
* @tc.name : modifyImageProperty(Orientation,property)-callback
* @tc.name : modifyImageProperty(Orientation,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_006
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_006
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
'
Top-right
'
).
assertTrue
();
expect
(
result
==
'
Top-right
'
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_006
'
,
'
fd
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_006
'
,
'
fd
'
,
"
Orientation
"
,
"
2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_007
* @tc.number : modify_03_007
* @tc.name : modifyImageProperty(GPSLatitude,property)-callback
* @tc.name : modifyImageProperty(GPSLatitude,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_007
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_007
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
38
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_007
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_007
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
114,3
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_008
* @tc.number : modify_03_008
* @tc.name : modifyImageProperty(GPSLongitude,property)-callback
* @tc.name : modifyImageProperty(GPSLongitude,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_008
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_008
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
expect
(
result
.
search
(
"
9
"
)
!=
-
1
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_008
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_008
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
18,2
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_009
* @tc.number : modify_03_009
* @tc.name : modifyImageProperty(GPSLatitudeRef,property)-callback
* @tc.name : modifyImageProperty(GPSLatitudeRef,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_009
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_009
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
N
"
).
assertTrue
();
expect
(
result
==
"
N
"
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_009
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_009
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
N
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_03_010
* @tc.number : modify_03_010
* @tc.name : modifyImageProperty(GPSLongitudeRef,property)-callback
* @tc.name : modifyImageProperty(GPSLongitudeRef,property)-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value,options)
* 2.call modifyImageProperty(key,value,options)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_010
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_010
'
,
0
,
async
function
(
done
)
{
function
checkProps
(
result
){
function
checkProps
(
result
){
expect
(
result
==
"
W
"
).
assertTrue
();
expect
(
result
==
"
W
"
).
assertTrue
();
}
}
modifyCb1
(
done
,
'
modify_03_010
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
modifyCb1
(
done
,
'
modify_03_010
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
W
"
,
checkProps
);
})
})
/**
/**
* @tc.number : modify_01_011
* @tc.number : modify_01_011
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.name : modifyImageProperty(Orientation)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_011
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_011
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
'
modify_01_011
'
,
'
fd
'
,
"
Orientation
"
,
"
abcdef
"
)
modifyImage
ErrPromise
(
done
,
'
modify_01_011
'
,
'
fd
'
,
"
Orientation
"
,
"
abcdef
"
)
})
})
/**
/**
* @tc.number : modify_01_012
* @tc.number : modify_01_012
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.name : modifyImageProperty(GPSLatitude)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_012
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_012
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
'
modify_01_012
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
abc,3
"
)
modifyImage
ErrPromise
(
done
,
'
modify_01_012
'
,
'
fd
'
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
})
/**
/**
* @tc.number : modify_01_013
* @tc.number : modify_01_013
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.name : modifyImageProperty(GPSLongitude)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_013
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_013
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
'
modify_01_013
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
abc,2
"
)
modifyImage
ErrPromise
(
done
,
'
modify_01_013
'
,
'
fd
'
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
})
/**
/**
* @tc.number : modify_01_014
* @tc.number : modify_01_014
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.name : modifyImageProperty(GPSLatitudeRef)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_014
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_014
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
'
modify_01_014
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
456
"
)
modifyImage
ErrPromise
(
done
,
'
modify_01_014
'
,
'
fd
'
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
})
/**
/**
* @tc.number : modify_01_015
* @tc.number : modify_01_015
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.name : modifyImageProperty(GPSLongitudeRef)-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_015
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_015
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
'
modify_01_015
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
1234
"
)
modifyImage
ErrPromise
(
done
,
'
modify_01_015
'
,
'
fd
'
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
})
/**
/**
* @tc.number : modify_01_016
* @tc.number : modify_01_016
* @tc.name : modifyImageProperty()-promise
* @tc.name : modifyImageProperty()-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_016
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_016
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
"
modify_01_016
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
modifyImage
ErrPromise
(
done
,
"
modify_01_016
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
})
})
/**
/**
* @tc.number : modify_01_017
* @tc.number : modify_01_017
* @tc.name : modifyImageProperty()-promise
* @tc.name : modifyImageProperty()-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_017
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_017
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
"
modify_01_017
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
modifyImage
ErrPromise
(
done
,
"
modify_01_017
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
})
/**
/**
* @tc.number : modify_01_018
* @tc.number : modify_01_018
* @tc.name : modifyImageProperty()-promise
* @tc.name : modifyImageProperty()-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_018
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_018
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
"
modify_01_018
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
modifyImage
ErrPromise
(
done
,
"
modify_01_018
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
})
/**
/**
* @tc.number : modify_01_019
* @tc.number : modify_01_019
* @tc.name : modifyImageProperty()-promise
* @tc.name : modifyImageProperty()-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_019
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_019
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
"
modify_01_019
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
modifyImage
ErrPromise
(
done
,
"
modify_01_019
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
})
/**
/**
* @tc.number : modify_01_020
* @tc.number : modify_01_020
* @tc.name : modifyImageProperty()-promise
* @tc.name : modifyImageProperty()-promise
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_01_020
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_01_020
'
,
0
,
async
function
(
done
)
{
modifyImage
Property_err_promise
(
done
,
"
modify_01_020
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
modifyImage
ErrPromise
(
done
,
"
modify_01_020
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
})
/**
/**
* @tc.number : modify_02_011
* @tc.number : modify_02_011
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_011
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_011
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_011
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
modify
ErrCb
(
done
,
"
modify_02_011
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
})
})
/**
/**
* @tc.number : modify_02_012
* @tc.number : modify_02_012
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_012
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_012
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_012
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
modify
ErrCb
(
done
,
"
modify_02_012
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
})
/**
/**
* @tc.number : modify_02_013
* @tc.number : modify_02_013
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_013
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_013
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_013
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
modify
ErrCb
(
done
,
"
modify_02_013
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
})
/**
/**
* @tc.number : modify_02_014
* @tc.number : modify_02_014
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_014
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_014
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_014
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
modify
ErrCb
(
done
,
"
modify_02_014
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
})
/**
/**
* @tc.number : modify_02_015
* @tc.number : modify_02_015
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_015
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_015
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_015
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
modify
ErrCb
(
done
,
"
modify_02_015
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
})
/**
/**
* @tc.number : modify_02_016
* @tc.number : modify_02_016
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_016
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_016
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_016
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
modify
ErrCb
(
done
,
"
modify_02_016
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcdef
"
)
})
})
/**
/**
* @tc.number : modify_02_017
* @tc.number : modify_02_017
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_017
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_017
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_017
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
modify
ErrCb
(
done
,
"
modify_02_017
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
})
/**
/**
* @tc.number : modify_02_018
* @tc.number : modify_02_018
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_018
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_018
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_018
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
modify
ErrCb
(
done
,
"
modify_02_018
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
})
/**
/**
* @tc.number : modify_02_019
* @tc.number : modify_02_019
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_019
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_019
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_019
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
modify
ErrCb
(
done
,
"
modify_02_019
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
})
/**
/**
* @tc.number : modify_02_020
* @tc.number : modify_02_020
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_02_020
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_02_020
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb
(
done
,
"
modify_02_020
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
modify
ErrCb
(
done
,
"
modify_02_020
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
})
/**
/**
* @tc.number : modify_03_011
* @tc.number : modify_03_011
* @tc.name : modifyImageProperty()-callback
* @tc.name : modifyImageProperty()-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_011
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_011
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_011
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
modify
ErrCb1
(
done
,
"
modify_03_011
"
,
"
fd
"
,
"
Orientation
"
,
"
abcdef
"
)
})
})
/**
/**
* @tc.number : modify_03_012
* @tc.number : modify_03_012
* @tc.name : modifyImageProperty()-callback
* @tc.name : modifyImageProperty()-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_012
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_012
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_012
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
modify
ErrCb1
(
done
,
"
modify_03_012
"
,
"
fd
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
})
/**
/**
* @tc.number : modify_03_013
* @tc.number : modify_03_013
* @tc.name : modifyImageProperty()-callback
* @tc.name : modifyImageProperty()-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_013
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_013
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_013
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
modify
ErrCb1
(
done
,
"
modify_03_013
"
,
"
fd
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
})
/**
/**
* @tc.number : modify_03_014
* @tc.number : modify_03_014
* @tc.name : modifyImageProperty()-callback
* @tc.name : modifyImageProperty()-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_014
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_014
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_014
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
1234
"
)
modify
ErrCb1
(
done
,
"
modify_03_014
"
,
"
fd
"
,
"
GPSLatitudeRef
"
,
"
1234
"
)
})
})
/**
/**
* @tc.number : modify_03_015
* @tc.number : modify_03_015
* @tc.name : modifyImageProperty()-callback
* @tc.name : modifyImageProperty()-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_015
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_015
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_015
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
567
"
)
modify
ErrCb1
(
done
,
"
modify_03_015
"
,
"
fd
"
,
"
GPSLongitudeRef
"
,
"
567
"
)
})
})
/**
/**
* @tc.number : modify_03_016
* @tc.number : modify_03_016
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_016
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_016
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_016
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcef
"
)
modify
ErrCb1
(
done
,
"
modify_03_016
"
,
"
buffer
"
,
"
Orientation
"
,
"
abcef
"
)
})
})
/**
/**
* @tc.number : modify_03_017
* @tc.number : modify_03_017
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_017
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_017
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_017
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
modify
ErrCb1
(
done
,
"
modify_03_017
"
,
"
buffer
"
,
"
GPSLatitude
"
,
"
abc,3
"
)
})
})
/**
/**
* @tc.number : modify_03_018
* @tc.number : modify_03_018
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_018
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_018
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_018
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
modify
ErrCb1
(
done
,
"
modify_03_018
"
,
"
buffer
"
,
"
GPSLongitude
"
,
"
abc,2
"
)
})
})
/**
/**
* @tc.number : modify_03_019
* @tc.number : modify_03_019
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_019
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_019
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_019
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
modify
ErrCb1
(
done
,
"
modify_03_019
"
,
"
buffer
"
,
"
GPSLatitudeRef
"
,
"
456
"
)
})
})
/**
/**
* @tc.number : modify_03_020
* @tc.number : modify_03_020
* @tc.name : modifyImageProperty-callback
* @tc.name : modifyImageProperty-callback
* @tc.desc : 1.create imagesource
* @tc.desc : 1.create imagesource
* 2.call modifyImageProperty(key,value)
* 2.call modifyImageProperty(key,value)
* 3.return undefined
* 3.return undefined
* @tc.size : MEDIUM
* @tc.size : MEDIUM
* @tc.type : Functional
* @tc.type : Functional
* @tc.level : Level 1
* @tc.level : Level 1
*/
*/
it
(
'
modify_03_020
'
,
0
,
async
function
(
done
)
{
it
(
'
modify_03_020
'
,
0
,
async
function
(
done
)
{
modify
ImageProperty_err_cb1
(
done
,
"
modify_03_020
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
modify
ErrCb1
(
done
,
"
modify_03_020
"
,
"
buffer
"
,
"
GPSLongitudeRef
"
,
"
1234
"
)
})
})
})
})
\ No newline at end of file
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modifyBuffer.js
浏览文件 @
79fff3a5
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录