public class WindowTests
{
private string TAG = "NUI";
+ bool isSurfacelessContextSupported = false;
[SetUp]
public void Init()
Tizen.Log.Info(TAG, "Init() is called!");
App.MainTitleChangeText("WindowTests");
App.MainTitleChangeBackgroundColor(null);
+ Tizen.System.Information.TryGetValue("http://tizen.org/feature/opengles.surfaceless_context", out isSurfacelessContextSupported);
}
[TearDown]
public void Window_INIT()
{
/* TEST CODE */
+ if( isSurfacelessContextSupported == false )
+ {
+ Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+ return;
+ }
+
var window = new Window(new Rectangle(0,0,1920,1080), false );
Assert.IsNotNull(window, "The instance should be not null");
Assert.IsInstanceOf<Window>(window, "Should return View instance.");
public void Window_INIT_NAME()
{
/* TEST CODE */
+ if( isSurfacelessContextSupported == false )
+ {
+ Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+ return;
+ }
+
var window = new Window("Test Window", new Rectangle(0,0,1920,1080), false );
Assert.IsNotNull(window, "The instance should be not null");
Assert.IsInstanceOf<Window>(window, "Should return View instance.");
public void SetParent_CHECK_RETURN_VALUE()
{
/* TEST CODE */
+ if( isSurfacelessContextSupported == false )
+ {
+ Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+ return;
+ }
+
try
{
var window = Window.Instance;
public void Unparent_CHECK_RETURN_VALUE()
{
/* TEST CODE */
+ if( isSurfacelessContextSupported == false )
+ {
+ Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+ return;
+ }
+
try
{
var window = Window.Instance;
public void GetParent_CHECK_RETURN_VALUE()
{
/* TEST CODE */
+ if( isSurfacelessContextSupported == false )
+ {
+ Assert.Pass("Test skipped! This Device is not support to opengles.surfaceless_context");
+ return;
+ }
+
try
{
var window = Window.Instance;