[Tizen] Do not call PreRender if rendering will be skipped
[platform/core/uifw/dali-adaptor.git] / automated-tests / src / dali-adaptor / utc-Dali-NativeImageSource.cpp
index 679409a..58a9888 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 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.
  *
  */
 
-#include <dali/dali.h>
 #include <dali-test-suite-utils.h>
-
-#include <Ecore_X.h>
+#include <dali/dali.h>
 
 using namespace Dali;
 
-
 void utc_dali_native_image_source_startup(void)
 {
   test_return_value = TET_UNDEF;
@@ -35,21 +32,21 @@ void utc_dali_native_image_source_cleanup(void)
 
 int UtcDaliNativeImageSourceNewN(void)
 {
-  unsigned int width = 256u;
-  unsigned int heigth = 256u;
+  unsigned int width  = 256u;
+  unsigned int height = 256u;
 
   try
   {
-    NativeImageSourcePtr nativeImageSource = NativeImageSource::New(width, heigth, NativeImageSource::COLOR_DEPTH_DEFAULT );
+    NativeImageSourcePtr nativeImageSource = NativeImageSource::New(width, height, NativeImageSource::COLOR_DEPTH_DEFAULT);
   }
   catch(Dali::DaliException& e)
   {
-    DALI_TEST_PRINT_ASSERT( e );
+    DALI_TEST_PRINT_ASSERT(e);
     DALI_TEST_ASSERT(e, "Adaptor::IsAvailable()", TEST_LOCATION);
   }
   catch(...)
   {
-    tet_printf("Assertion test failed - wrong Exception\n" );
+    tet_printf("Assertion test failed - wrong Exception\n");
     tet_result(TET_FAIL);
   }