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

!9946 camera失败用例修改

Merge pull request !9946 from 董新丽/master
......@@ -75,6 +75,7 @@ let fileAsset;
let fdNumber;
let metadataOutput;
let mMetadataObjectTypeArray;
let receiver;
export default function CameraErrorCodeUsecaseTest() {
function sleep(ms) {
......@@ -183,7 +184,7 @@ export default function CameraErrorCodeUsecaseTest() {
async function getPhotoReceiverSurface() {
console.log(TAG + 'Entering getPhotoReceiverSurface')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Photo receiver is created successfully')
......
......@@ -74,6 +74,7 @@ let videoSurfaceId;
let fdPath;
let fileAsset;
let fdNumber;
let receiver;
let mMetadataObjectTypeArray;
let mMetadataObjectArray;
......@@ -82,7 +83,7 @@ export default function cameraJSUnitOutput() {
async function getImageReceiverSurfaceId() {
console.log(TAG + 'Entering create Image receiver')
var receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Receiver is ok')
......
......@@ -34,6 +34,7 @@ let mFdNumber;
// CAMERA-0 letiables
let mCameraNum;
let receiver;
let mVideoProfileCfg = {
audioBitrate: 48000,
......@@ -64,7 +65,7 @@ export default function cameraManagerTest() {
async function getImageReceiverSurfaceId() {
console.log(TAG + 'Entering create Image receiver')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Receiver is ok')
......
......@@ -68,6 +68,7 @@ let mVideoConfig = {
maxSize: 100,
maxDuration: 500
}
let receiver;
export default function cameraSessionTest() {
......@@ -117,7 +118,7 @@ export default function cameraSessionTest() {
async function getPhotoReceiverSurface() {
console.log(TAG + 'Entering getPhotoReceiverSurface')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Photo receiver is created successfully')
......
......@@ -123,6 +123,7 @@ let mMETERINGPointInvalidRB = {
}
let mEnableCheckInvalidMETERINGPoint = false;
let receiver;
export default function cameraSessionExposureTest() {
......@@ -172,7 +173,7 @@ export default function cameraSessionExposureTest() {
async function getPhotoReceiverSurface() {
console.log(TAG + 'Entering getPhotoReceiverSurface')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Photo receiver is created successfully')
......
......@@ -74,6 +74,7 @@ let mVideoConfig = {
let mPicWidthMax = 8192;
let mPicHeightMax = 8192;
let receiver;
export default function cameraSessionFlashTest() {
......@@ -123,7 +124,7 @@ export default function cameraSessionFlashTest() {
async function getPhotoReceiverSurface() {
console.log(TAG + 'Entering getPhotoReceiverSurface')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Photo receiver is created successfully')
......
......@@ -120,6 +120,7 @@ let mFocusPointInvalidRB = {
}
let mEnableCheckInvalidFocusPoint = false;
let receiver;
export default function cameraSessionFocusTest() {
......@@ -169,7 +170,7 @@ export default function cameraSessionFocusTest() {
async function getPhotoReceiverSurface() {
console.log(TAG + 'Entering getPhotoReceiverSurface')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Photo receiver is created successfully')
......
......@@ -73,6 +73,7 @@ let mVideoConfig = {
let mPicWidthMax = 8192;
let mPicHeightMax = 8192;
let receiver;
export default function cameraSessionVideoStabilizationTest() {
......@@ -122,7 +123,7 @@ export default function cameraSessionVideoStabilizationTest() {
async function getPhotoReceiverSurface() {
console.log(TAG + 'Entering getPhotoReceiverSurface')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Photo receiver is created successfully')
......
......@@ -75,6 +75,7 @@ let mVideoConfig = {
let mPicWidthMax = 8192;
let mPicHeightMax = 8192;
let receiver;
export default function cameraSessionZoomRatioTest() {
......@@ -124,7 +125,7 @@ export default function cameraSessionZoomRatioTest() {
async function getPhotoReceiverSurface() {
console.log(TAG + 'Entering getPhotoReceiverSurface')
let receiver = image.createImageReceiver(640, 480, 4, 8)
receiver = image.createImageReceiver(640, 480, 4, 8)
console.log(TAG + 'before receiver check')
if (receiver !== undefined) {
console.log(TAG + 'Photo receiver is created successfully')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册