src/aria/Aria.js
function (className, context) {
        context = context || '';
        if (!className || !className.match(/^[_A-Z]\w*$/)) {
            Aria.$logError(Aria.INVALID_CLASSNAME_FORMAT, [className, context]);
            return false;
        }
        if (Aria.isJsReservedWord(className)) {
            Aria.$logError(Aria.INVALID_CLASSNAME_RESERVED, [className, context]);
            return false;
        }
        return true;
    }
function (className, context) {
        context = context || '';
        if (!className || !className.match(/^[_A-Z]\w*$/)) {
            Aria.$logError(Aria.INVALID_CLASSNAME_FORMAT, [className, context]);
            return false;
        }
        if (Aria.isJsReservedWord(className)) {
            Aria.$logError(Aria.INVALID_CLASSNAME_RESERVED, [className, context]);
            return false;
        }
        return true;
    }
function ( className , context ) { context = context || '' ; if ( ! className || ! className . match ( / ^[_A-Z]\w*$ / ) ) { Aria . $logError ( Aria . INVALID_CLASSNAME_FORMAT , [ className , context ] ) ; return false ; } if ( Aria . isJsReservedWord ( className ) ) { Aria . $logError ( Aria . INVALID_CLASSNAME_RESERVED , [ className , context ] ) ; return false ; } return true ; }
Class name validation method
@param {String} className class name to validate - e.g. 'TestSuite'
@param {String} context additional context information
@return {Boolean} true if class path is OK
Class name validation method