src/aria/Aria.js
function (packageName, context) {
        context = context || '';
        if (!packageName) {
            Aria.$logError(Aria.INVALID_PACKAGENAME_FORMAT, [packageName, context]);
            return false;
        }
        if (Aria.isJsReservedWord(packageName)) {
            Aria.$logError(Aria.INVALID_PACKAGENAME_RESERVED, [packageName, context]);
            return false;
        }
        if (!packageName.match(/^[a-z]\w*$/)) {
            Aria.$logInfo(Aria.INVALID_PACKAGENAME_FORMAT, [packageName, context]);
        }
        return true;
    }
function (packageName, context) {
        context = context || '';
        if (!packageName) {
            Aria.$logError(Aria.INVALID_PACKAGENAME_FORMAT, [packageName, context]);
            return false;
        }
        if (Aria.isJsReservedWord(packageName)) {
            Aria.$logError(Aria.INVALID_PACKAGENAME_RESERVED, [packageName, context]);
            return false;
        }
        if (!packageName.match(/^[a-z]\w*$/)) {
            Aria.$logInfo(Aria.INVALID_PACKAGENAME_FORMAT, [packageName, context]);
        }
        return true;
    }
function ( packageName , context ) { context = context || '' ; if ( ! packageName ) { Aria . $logError ( Aria . INVALID_PACKAGENAME_FORMAT , [ packageName , context ] ) ; return false ; } if ( Aria . isJsReservedWord ( packageName ) ) { Aria . $logError ( Aria . INVALID_PACKAGENAME_RESERVED , [ packageName , context ] ) ; return false ; } if ( ! packageName . match ( / ^[a-z]\w*$ / ) ) { Aria . $logInfo ( Aria . INVALID_PACKAGENAME_FORMAT , [ packageName , context ] ) ; } return true ; }
Package name validation method
@param {String} packageName package name to validate - e.g. 'TestSuite'
@param {String} context additional context information
@return {Boolean} true if class path is OK
Package name validation method