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 .
Tests that all libraries are loaded and that there are at least 10 controls in a library