function fnAssertR2(oEvent) {
			assert.ok(true, "Generic UI5Event is fired");
			assert.equal(oEvent.detail.additionalAttributes.hash, "/register", "with correct hash");
			assert.equal(oEvent.detail.additionalAttributes.previousHash, "/home", "with correct previous hash");

			//Clean up
			router.destroy();
			window.removeEventListener("UI5Event", fnAssertR2);
			done();
		}
// Second routeMatched handler (in order to check the hash & previousHash property)
Second routeMatched handler (in order to check the hash & previousHash property)
Second routeMatched handler ( in order to check the hash & previousHash property )
function fnAssertR2(oEvent) {
			assert.ok(true, "Generic UI5Event is fired");
			assert.equal(oEvent.detail.additionalAttributes.hash, "/register", "with correct hash");
			assert.equal(oEvent.detail.additionalAttributes.previousHash, "/home", "with correct previous hash");
			router.destroy();
			window.removeEventListener("UI5Event", fnAssertR2);
			done();
		}
function fnAssertR2 ( oEvent ) { assert . ok ( true , "Generic UI5Event is fired" ) ; assert . equal ( oEvent . detail . additionalAttributes . hash , "/register" , "with correct hash" ) ; assert . equal ( oEvent . detail . additionalAttributes . previousHash , "/home" , "with correct previous hash" ) ; router . destroy ( ) ; window . removeEventListener ( "UI5Event" , fnAssertR2 ) ; done ( ) ; }
Second routeMatched handler (in order to check the hash & previousHash property)
Second routeMatched handler ( in order to check the hash & previousHash property )
//Clean up