function unexpected(assert, aViewContent, sExpectedMessage) {
		var iUnexpected;

		aViewContent.forEach(function (sViewContent, i) {
			if (/id="unexpected"/.test(sViewContent)) {
				iUnexpected = i;
			}
		});

		checkError.call(this, assert, aViewContent, sExpectedMessage, undefined, iUnexpected);
	}
/**
	 * Checks that the XML preprocessor throws the expected error message when called on the given
	 * view content. Determines the offending content by <code>id="unexpected"</code>.
	 *
	 * BEWARE: Call via <code>unexpected(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 line of the view content which has id="unexpected"
	 */
Checks that the XML preprocessor throws the expected error message when called on the given
view content. Determines the offending content by id="unexpected".

Call via unexpected(this, ...) so that this 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 line of the view content which has id="unexpected"
Checks that the XML preprocessor throws the expected error message when called on the given view content . Determines the offending content by id = " unexpected " . Call via unexpected ( this ... ) so that this 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 line of the view content which has id = " unexpected "
function unexpected(assert, aViewContent, sExpectedMessage) {
		var iUnexpected;
		aViewContent.forEach(function (sViewContent, i) {
			if (/id="unexpected"/.test(sViewContent)) {
				iUnexpected = i;
			}
		});
		checkError.call(this, assert, aViewContent, sExpectedMessage, undefined, iUnexpected);
	}
function unexpected ( assert , aViewContent , sExpectedMessage ) { var iUnexpected ; aViewContent . forEach ( function ( sViewContent , i ) { if ( / id="unexpected" / . test ( sViewContent ) ) { iUnexpected = i ; } } ) ; checkError . call ( this , assert , aViewContent , sExpectedMessage , undefined , iUnexpected ) ; }
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 .