X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Futc-Dali-ImageAtlas.cpp;h=9276f505b3de2c27abf000c4fece56bb9e646c5c;hp=25d83ba54ee6fb4e4636689cb1d7438e6971a6bc;hb=5bc22f12881a16d7c5143c5e220fc0075aef6061;hpb=26a3b93400d9b9de81db36cbe4cea39f51940d10 diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.cpp index 25d83ba..9276f50 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ImageAtlas.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -241,30 +241,32 @@ int UtcDaliImageAtlasUploadP(void) DALI_TEST_EQUALS( pixelArea1.height, 34, TEST_LOCATION ); TraceCallStack::NamedParams params; - params["width"] = ToString(pixelArea1.width); - params["height"] = ToString(pixelArea1.height); - params["xoffset"] = ToString(pixelArea1.x); - params["yoffset"] = ToString(pixelArea1.y); + params["width"] < pixelArea2 = TextureCoordinateToPixelArea(textureRect2, size); DALI_TEST_EQUALS( pixelArea2.width, 50, TEST_LOCATION ); DALI_TEST_EQUALS( pixelArea2.height, 50, TEST_LOCATION ); - params["width"] = ToString(pixelArea2.width); - params["height"] = ToString(pixelArea2.height); - params["xoffset"] = ToString(pixelArea2.x); - params["yoffset"] = ToString(pixelArea2.y); + params.mParams.clear(); + params["width"] < pixelArea3 = TextureCoordinateToPixelArea(textureRect3, size); DALI_TEST_EQUALS( pixelArea3.width, 128, TEST_LOCATION ); DALI_TEST_EQUALS( pixelArea3.height, 128, TEST_LOCATION ); - params["width"] = ToString(pixelArea3.width); - params["height"] = ToString(pixelArea3.height); - params["xoffset"] = ToString(pixelArea3.x); - params["yoffset"] = ToString(pixelArea3.y); + params.mParams.clear(); + params["width"] <