src/sap.ui.core/src/sap/ui/qunit/utils/ControlIterator.js
function(aLibrariesToTest, aExcludedLibraries, bIncludeDistLayer, QUnit) {
		var mLibraries = aLibrariesToTest ?
				getRequestedLibraries(aLibrariesToTest)
				:
				getAllLibraries(aExcludedLibraries, bIncludeDistLayer);

		QUnit.test("Should load at least one library and some controls", function(assert) {
			assert.expect(2);

			var bLibFound = false;

			for (var sLibName in mLibraries) {
				if (mLibraries[sLibName]) {
					if (!bLibFound) {
						assert.ok(mLibraries[sLibName], "Should have loaded at least one library");
						bLibFound = true;
					}
					var iControls = mLibraries[sLibName].controls ? mLibraries[sLibName].controls.length : 0;
					if (iControls > 0) {
						assert.ok(iControls > 0, "Should find at least 10 controls in a library");
						break;
					}
				}
			}
		});

		return mLibraries;
	}
function(aLibrariesToTest, aExcludedLibraries, bIncludeDistLayer, QUnit) {
		var mLibraries = aLibrariesToTest ?
				getRequestedLibraries(aLibrariesToTest)
				:
				getAllLibraries(aExcludedLibraries, bIncludeDistLayer);

		QUnit.test("Should load at least one library and some controls", function(assert) {
			assert.expect(2);

			var bLibFound = false;

			for (var sLibName in mLibraries) {
				if (mLibraries[sLibName]) {
					if (!bLibFound) {
						assert.ok(mLibraries[sLibName], "Should have loaded at least one library");
						bLibFound = true;
					}
					var iControls = mLibraries[sLibName].controls ? mLibraries[sLibName].controls.length : 0;
					if (iControls > 0) {
						assert.ok(iControls > 0, "Should find at least 10 controls in a library");
						break;
					}
				}
			}
		});

		return mLibraries;
	}
function ( aLibrariesToTest , aExcludedLibraries , bIncludeDistLayer , QUnit ) { var mLibraries = aLibrariesToTest ? getRequestedLibraries ( aLibrariesToTest ) : getAllLibraries ( aExcludedLibraries , bIncludeDistLayer ) ; QUnit . test ( "Should load at least one library and some controls" , function ( assert ) { assert . expect ( 2 ) ; var bLibFound = false ; for ( var sLibName in mLibraries ) { if ( mLibraries [ sLibName ] ) { if ( ! bLibFound ) { assert . ok ( mLibraries [ sLibName ] , "Should have loaded at least one library" ) ; bLibFound = true ; } var iControls = mLibraries [ sLibName ] . controls ? mLibraries [ sLibName ] . controls . length : 0 ; if ( iControls > 0 ) { assert . ok ( iControls > 0 , "Should find at least 10 controls in a library" ) ; break ; } } } } ) ; return mLibraries ; }
Returns a map of libraries - either exactly those requested in aLibrariesToTest, if defined, or all discoverable libraries
under the given conditions.
Returns a map of libraries - either exactly those requested in aLibrariesToTest if defined or all discoverable libraries under the given conditions .