Merge "Add missed doxygen documentation" into devel/master
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / utc-Dali-Texture.cpp
index 436bcdc..1eada6c 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <dali/public-api/dali-core.h>
 #include <dali-test-suite-utils.h>
+#include <test-native-image.h>
 
 using namespace Dali;
 
@@ -52,6 +53,22 @@ int UtcDaliTextureNew02(void)
   END_TEST;
 }
 
+int UtcDaliTextureNew03(void)
+{
+  TestApplication application;
+
+  // Create a native image source.
+  TestNativeImageNoExtPointer testNativeImage = TestNativeImageNoExt::New( 64u, 64u );
+
+  // Create a texture from the native image source.
+  Texture nativeTexture = Texture::New( *testNativeImage );
+
+  // Check the texture was created OK.
+  DALI_TEST_CHECK( nativeTexture );
+
+  END_TEST;
+}
+
 int UtcDaliTextureCopyConstructor(void)
 {
   TestApplication application;