function checkTracing(assert, bDebug, aExpectedMessages, aViewContent, mSettings, vExpected) {
		var oLogMock = this.expects ? this : this.mock(jQuery.sap.log);

		oLogMock.expects("debug").never();
		oLogMock.expects("error").never();
		oLogMock.expects("warning").never();
		if (!bDebug) {
			jQuery.sap.log.setLevel(jQuery.sap.log.Level.WARNING);
		} else {
			aExpectedMessages.forEach(function (oExpectedMessage) {
				var vExpectedDetail = oExpectedMessage.d;
				if (typeof vExpectedDetail === "number") {
					vExpectedDetail = matchArg(aViewContent[vExpectedDetail]);
				}
				oLogMock.expects("debug")
					.withExactArgs(matchArg(oExpectedMessage.m), vExpectedDetail, sComponent);
			});
		}

		check.call(oLogMock, assert, aViewContent, mSettings, vExpected);
	}
/**
	 * Checks that the XMLPreprocessor works as expected on the given view content and that the
	 * tracing works as expected. The view content is automatically searched for constant test
	 * conditions and appropriate warnings are expected; log output is stubbed in order to keep
	 * console clean.
	 *
	 * BEWARE: Call via <code>checkTracing.call(this, ...)</code> so that <code>this</code> is a
	 * Sinon sandbox! Or pass a log mock as this.
	 *
	 * @param {object} assert the assertions
	 * @param {boolean} bDebug
	 *   whether debug output is accepted and expected (sets the log level accordingly)
	 * @param {object[]} aExpectedMessages
	 *   a array of expected debug messages with the message in <code>m</code> and optional details
	 *   in <code>d</code>. <code>m</code> may also contain a Sinon matcher, <code>d</code> a
	 *   number which is interpreted as index into <code>aViewContent</code>.
	 * @param {string[]} aViewContent
	 *   the original view content
	 * @param {object} [mSettings={}]
	 *   a settings object for the preprocessor
	 * @param {string[]|RegExp} [vExpected]
	 *   the expected content as string array, with root element omitted; if missing, the
	 *   expectation is derived from the original view content by smart filtering. Alternatively
	 *   a regular expression which is expected to match the serialized original view content.
	 */
Checks that the XMLPreprocessor works as expected on the given view content and that the
tracing works as expected. The view content is automatically searched for constant test
conditions and appropriate warnings are expected; log output is stubbed in order to keep
console clean.

Call via checkTracing.call(this, ...) so that this is a
Sinon sandbox. Or pass a log mock as this.

@param {object} assert the assertions
@param {boolean} bDebug
whether debug output is accepted and expected (sets the log level accordingly)
@param {object[]} aExpectedMessages
a array of expected debug messages with the message in m and optional details
in d. m may also contain a Sinon matcher, d a
number which is interpreted as index into aViewContent.
@param {string[]} aViewContent
the original view content
@param {object} [mSettings={}]
a settings object for the preprocessor
@param {string[]|RegExp} [vExpected]
the expected content as string array, with root element omitted; if missing, the
expectation is derived from the original view content by smart filtering. Alternatively
a regular expression which is expected to match the serialized original view content.
Checks that the XMLPreprocessor works as expected on the given view content and that the tracing works as expected . The view content is automatically searched for constant test conditions and appropriate warnings are expected ; log output is stubbed in order to keep console clean . Call via checkTracing . call ( this ... ) so that this is a Sinon sandbox . Or pass a log mock as this . @param { object } assert the assertions @param { boolean } bDebug whether debug output is accepted and expected ( sets the log level accordingly ) @param { object [] } aExpectedMessages a array of expected debug messages with the message in m and optional details in d . m may also contain a Sinon matcher d a number which is interpreted as index into aViewContent . @param { string [] } aViewContent the original view content @param { object } [ mSettings = {} ] a settings object for the preprocessor @param { string [] |RegExp } [ vExpected ] the expected content as string array with root element omitted ; if missing the expectation is derived from the original view content by smart filtering . Alternatively a regular expression which is expected to match the serialized original view content .
function checkTracing(assert, bDebug, aExpectedMessages, aViewContent, mSettings, vExpected) {
		var oLogMock = this.expects ? this : this.mock(jQuery.sap.log);
		oLogMock.expects("debug").never();
		oLogMock.expects("error").never();
		oLogMock.expects("warning").never();
		if (!bDebug) {
			jQuery.sap.log.setLevel(jQuery.sap.log.Level.WARNING);
		} else {
			aExpectedMessages.forEach(function (oExpectedMessage) {
				var vExpectedDetail = oExpectedMessage.d;
				if (typeof vExpectedDetail === "number") {
					vExpectedDetail = matchArg(aViewContent[vExpectedDetail]);
				}
				oLogMock.expects("debug")
					.withExactArgs(matchArg(oExpectedMessage.m), vExpectedDetail, sComponent);
			});
		}
		check.call(oLogMock, assert, aViewContent, mSettings, vExpected);
	}
function checkTracing ( assert , bDebug , aExpectedMessages , aViewContent , mSettings , vExpected ) { var oLogMock = this . expects ? this : this . mock ( jQuery . sap . log ) ; oLogMock . expects ( "debug" ) . never ( ) ; oLogMock . expects ( "error" ) . never ( ) ; oLogMock . expects ( "warning" ) . never ( ) ; if ( ! bDebug ) { jQuery . sap . log . setLevel ( jQuery . sap . log . Level . WARNING ) ; } else { aExpectedMessages . forEach ( function ( oExpectedMessage ) { var vExpectedDetail = oExpectedMessage . d ; if ( typeof vExpectedDetail === "number" ) { vExpectedDetail = matchArg ( aViewContent [ vExpectedDetail ] ) ; } oLogMock . expects ( "debug" ) . withExactArgs ( matchArg ( oExpectedMessage . m ) , vExpectedDetail , sComponent ) ; } ) ; } check . call ( oLogMock , assert , aViewContent , mSettings , vExpected ) ; }
Checks that the XMLPreprocessor works as expected on the given view content and that the
 tracing works as expected.
Checks that the XMLPreprocessor works as expected on the given view content and that the tracing works as expected .