function checkError(assert, aViewContent, sExpectedMessage, mSettings, vOffender) {
		var oLogMock = this.expects ? this : this.mock(jQuery.sap.log),
			oViewContent = xml(assert, aViewContent);

		if (vOffender === undefined || typeof vOffender === "number") {
			vOffender = aViewContent[vOffender || 1];
		}
		sExpectedMessage = sExpectedMessage.replace("{0}", vOffender);
		oLogMock.expects("error").withExactArgs(matchArg(sExpectedMessage), "qux", sComponent);

		try {
			process(oViewContent, mSettings);
			assert.ok(false);
		} catch (ex) {
			assert.strictEqual(
				normalizeXml(ex.message),
				normalizeXml("qux: " + sExpectedMessage),
				ex.stack
			);
		}
	}
/**
	 * Checks that the XML preprocessor throws the expected error message when called on the given
	 * view content. Expects the error to be logged additionally.
	 *
	 * BEWARE: Call via <code>checkError.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 {string[]} aViewContent
	 *   view content as separate lines
	 * @param {string} sExpectedMessage
	 *   no caller identification expected;
	 *   "{0}" is replaced with the indicated line of the view content (see vOffender)
	 * @param {object} [mSettings={}]
	 *   a settings object for the preprocessor
	 * @param {number|string} [vOffender=1]
	 *   (index of) offending statement
	 */
Checks that the XML preprocessor throws the expected error message when called on the given
view content. Expects the error to be logged additionally.

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


Checks that the XML preprocessor throws the expected error message when called on the given view content . Expects the error to be logged additionally . Call via checkError . call ( this ... ) so that this is a Sinon sandbox . Or pass a log mock as this .
function checkError(assert, aViewContent, sExpectedMessage, mSettings, vOffender) {
		var oLogMock = this.expects ? this : this.mock(jQuery.sap.log),
			oViewContent = xml(assert, aViewContent);
		if (vOffender === undefined || typeof vOffender === "number") {
			vOffender = aViewContent[vOffender || 1];
		}
		sExpectedMessage = sExpectedMessage.replace("{0}", vOffender);
		oLogMock.expects("error").withExactArgs(matchArg(sExpectedMessage), "qux", sComponent);
		try {
			process(oViewContent, mSettings);
			assert.ok(false);
		} catch (ex) {
			assert.strictEqual(
				normalizeXml(ex.message),
				normalizeXml("qux: " + sExpectedMessage),
				ex.stack
			);
		}
	}
function checkError ( assert , aViewContent , sExpectedMessage , mSettings , vOffender ) { var oLogMock = this . expects ? this : this . mock ( jQuery . sap . log ) , oViewContent = xml ( assert , aViewContent ) ; if ( vOffender === undefined || typeof vOffender === "number" ) { vOffender = aViewContent [ vOffender || 1 ] ; } sExpectedMessage = sExpectedMessage . replace ( "{0}" , vOffender ) ; oLogMock . expects ( "error" ) . withExactArgs ( matchArg ( sExpectedMessage ) , "qux" , sComponent ) ; try { process ( oViewContent , mSettings ) ; assert . ok ( false ) ; } catch ( ex ) { assert . strictEqual ( normalizeXml ( ex . message ) , normalizeXml ( "qux: " + sExpectedMessage ) , ex . stack ) ; } }
Checks that the XML preprocessor throws the expected error message when called on the given
 view content.
Checks that the XML preprocessor throws the expected error message when called on the given view content .