src/sap.ui.core/src/sap/ui/qunit/utils/ControlIterator.js
function getRequestedLibraries(aLibrariesToTest) {
		var mLibraries = sap.ui.getCore().getLoadedLibraries(),
			bNewLibrary,
			i;

		// make sure the explicitly requested libraries are there
		for (i = 0; i < aLibrariesToTest.length; i++) {
			if (!mLibraries[aLibrariesToTest[i]]) {
				sap.ui.getCore().loadLibrary(aLibrariesToTest[i]); // no try-catch, as this library was explicitly requested
				bNewLibrary = true;
			}
		}

		if (bNewLibrary) {
			mLibraries = sap.ui.getCore().getLoadedLibraries();
		}

		for (var sLibraryName in mLibraries) {
			if (aLibrariesToTest.indexOf(sLibraryName) === -1) {
				mLibraries[sLibraryName] = undefined;
			}
		}

		return mLibraries;
	}
function getRequestedLibraries(aLibrariesToTest) {
		var mLibraries = sap.ui.getCore().getLoadedLibraries(),
			bNewLibrary,
			i;

		// make sure the explicitly requested libraries are there
		for (i = 0; i < aLibrariesToTest.length; i++) {
			if (!mLibraries[aLibrariesToTest[i]]) {
				sap.ui.getCore().loadLibrary(aLibrariesToTest[i]); // no try-catch, as this library was explicitly requested
				bNewLibrary = true;
			}
		}

		if (bNewLibrary) {
			mLibraries = sap.ui.getCore().getLoadedLibraries();
		}

		for (var sLibraryName in mLibraries) {
			if (aLibrariesToTest.indexOf(sLibraryName) === -1) {
				mLibraries[sLibraryName] = undefined;
			}
		}

		return mLibraries;
	}
function getRequestedLibraries ( aLibrariesToTest ) { var mLibraries = sap . ui . getCore ( ) . getLoadedLibraries ( ) , bNewLibrary , i ; // make sure the explicitly requested libraries are there for ( i = 0 ; i < aLibrariesToTest . length ; i ++ ) { if ( ! mLibraries [ aLibrariesToTest [ i ] ] ) { sap . ui . getCore ( ) . loadLibrary ( aLibrariesToTest [ i ] ) ; // no try-catch, as this library was explicitly requested bNewLibrary = true ; } } if ( bNewLibrary ) { mLibraries = sap . ui . getCore ( ) . getLoadedLibraries ( ) ; } for ( var sLibraryName in mLibraries ) { if ( aLibrariesToTest . indexOf ( sLibraryName ) === - 1 ) { mLibraries [ sLibraryName ] = undefined ; } } return mLibraries ; }
Returns a map with library infos for the requested libraries

@param {Array} aLibrariesToTest list of libraries to load
@returns a map of library infos
Returns a map with library infos for the requested libraries