function createViewInComponent(bAsync) {
			this.oUiComponent = new Comp({
				id: "comp",
				componentData: {
					async: bAsync
				}
			});
			return this.oUiComponent.oViewPromise.then(function() {
				// Place component in container and display
				this.oUiComponentContainer = new ComponentContainer({
					component: this.oUiComponent,
					height: "100%"
				});
				this.oUiComponentContainer.placeAt(mOptions.placeAt || "qunit-fixture");

				this.oView = this.oUiComponent.getRootControl();

				if (mOptions.model instanceof Model) {
					this.oView.setModel(mOptions.model);
				}

				sap.ui.getCore().applyChanges();

				return mOptions.model && mOptions.model.getMetaModel() && mOptions.model.getMetaModel().loaded();
			}.bind(this));
		}
// Create UI component containing the view to adapt
Create UI component containing the view to adapt
Create UI component containing the view to adapt
function createViewInComponent(bAsync) {
			this.oUiComponent = new Comp({
				id: "comp",
				componentData: {
					async: bAsync
				}
			});
			return this.oUiComponent.oViewPromise.then(function() {
				this.oUiComponentContainer = new ComponentContainer({
					component: this.oUiComponent,
					height: "100%"
				});
				this.oUiComponentContainer.placeAt(mOptions.placeAt || "qunit-fixture");
				this.oView = this.oUiComponent.getRootControl();
				if (mOptions.model instanceof Model) {
					this.oView.setModel(mOptions.model);
				}
				sap.ui.getCore().applyChanges();
				return mOptions.model && mOptions.model.getMetaModel() && mOptions.model.getMetaModel().loaded();
			}.bind(this));
		}
function createViewInComponent ( bAsync ) { this . oUiComponent = new Comp ( { id : "comp" , componentData : { async : bAsync } } ) ; return this . oUiComponent . oViewPromise . then ( function ( ) { this . oUiComponentContainer = new ComponentContainer ( { component : this . oUiComponent , height : "100%" } ) ; this . oUiComponentContainer . placeAt ( mOptions . placeAt || "qunit-fixture" ) ; this . oView = this . oUiComponent . getRootControl ( ) ; if ( mOptions . model instanceof Model ) { this . oView . setModel ( mOptions . model ) ; } sap . ui . getCore ( ) . applyChanges ( ) ; return mOptions . model && mOptions . model . getMetaModel ( ) && mOptions . model . getMetaModel ( ) . loaded ( ) ; } . bind ( this ) ) ; }
Create UI component containing the view to adapt
Create UI component containing the view to adapt
// Place component in container and display