+ // Changed to return a different window handle after ReplaceWindow is called
+ // just for backward compatibility to make the test case pass
+ if ( mMainWindowReplaced )
+ {
+ Internal::Adaptor::Window* window = Internal::Adaptor::Window::New( PositionSize(), "ReplacedWindow", "", false );
+ return Dali::Window( window );
+ }
+ else
+ {
+ return mMainWindow;
+ }