function checkError(assert, oType, oValue, sReason, sAction) {
		var fnExpectedException;
		TestUtils.withNormalizedMessages(function () {
			try {
				if (sAction === "parseValue") {
					fnExpectedException = ParseException;
					oType[sAction](oValue, "string");
				} else if (sAction === "validateValue") {
					fnExpectedException = ValidateException;
					oType[sAction](oValue);
				}
				assert.ok(false);
			} catch (e) {
				assert.ok(e instanceof fnExpectedException, sReason + ": exception");
				assert.strictEqual(e.message, "EnterDate Dec 31, " + new Date().getFullYear(),
					sReason + ": message");
			}
		});
	}
/*
	 * Tests whether the given value causes a validation or parse exception to be thrown,
	 * depending on sAction.
	 * @param {string} sAction
	 *   validateValue to check for a validate exception
	 *   parseValue to check for a parse exception
	 */
Tests whether the given value causes a validation or parse exception to be thrown,
depending on sAction.
@param {string} sAction
validateValue to check for a validate exception
parseValue to check for a parse exception
Tests whether the given value causes a validation or parse exception to be thrown depending on sAction . @param { string } sAction validateValue to check for a validate exception parseValue to check for a parse exception
function checkError(assert, oType, oValue, sReason, sAction) {
		var fnExpectedException;
		TestUtils.withNormalizedMessages(function () {
			try {
				if (sAction === "parseValue") {
					fnExpectedException = ParseException;
					oType[sAction](oValue, "string");
				} else if (sAction === "validateValue") {
					fnExpectedException = ValidateException;
					oType[sAction](oValue);
				}
				assert.ok(false);
			} catch (e) {
				assert.ok(e instanceof fnExpectedException, sReason + ": exception");
				assert.strictEqual(e.message, "EnterDate Dec 31, " + new Date().getFullYear(),
					sReason + ": message");
			}
		});
	}
function checkError ( assert , oType , oValue , sReason , sAction ) { var fnExpectedException ; TestUtils . withNormalizedMessages ( function ( ) { try { if ( sAction === "parseValue" ) { fnExpectedException = ParseException ; oType [ sAction ] ( oValue , "string" ) ; } else if ( sAction === "validateValue" ) { fnExpectedException = ValidateException ; oType [ sAction ] ( oValue ) ; } assert . ok ( false ) ; } catch ( e ) { assert . ok ( e instanceof fnExpectedException , sReason + ": exception" ) ; assert . strictEqual ( e . message , "EnterDate Dec 31, " + new Date ( ) . getFullYear ( ) , sReason + ": message" ) ; } } ) ; }
Tests whether the given value causes a validation or parse exception to be thrown,
 depending on sAction.
Tests whether the given value causes a validation or parse exception to be thrown depending on sAction .