src/aria/utils/FrameATLoader.js
function (pattern) {
            var scripts = Aria.$frameworkWindow.document.getElementsByTagName("script");
            for (var i = 0, l = scripts.length; i < l; i++) {
                var script = scripts[i];
                if (script.attributes && script.attributes["src"]) {
                    var src = script.attributes["src"].nodeValue;
                    if (pattern.exec(src)) {
                        return src;
                    }
                }
            }
            this.$logError("Could not find the script corresponding to pattern: %1. Please set the aria.jsunit.FrameATLoader.frameworkHref property manually.");
            return null;
        }
function (pattern) {
            var scripts = Aria.$frameworkWindow.document.getElementsByTagName("script");
            for (var i = 0, l = scripts.length; i < l; i++) {
                var script = scripts[i];
                if (script.attributes && script.attributes["src"]) {
                    var src = script.attributes["src"].nodeValue;
                    if (pattern.exec(src)) {
                        return src;
                    }
                }
            }
            this.$logError("Could not find the script corresponding to pattern: %1. Please set the aria.jsunit.FrameATLoader.frameworkHref property manually.");
            return null;
        }
function ( pattern ) { var scripts = Aria . $frameworkWindow . document . getElementsByTagName ( "script" ) ; for ( var i = 0 , l = scripts . length ; i < l ; i ++ ) { var script = scripts [ i ] ; if ( script . attributes && script . attributes [ "src" ] ) { var src = script . attributes [ "src" ] . nodeValue ; if ( pattern . exec ( src ) ) { return src ; } } } this . $logError ( "Could not find the script corresponding to pattern: %1. Please set the aria.jsunit.FrameATLoader.frameworkHref property manually." ) ; return null ; }
Loop over script tags in the current document and return the address of the script which matches the pattern.
@param {RegExp} pattern
@return {String}
Loop over script tags in the current document and return the address of the script which matches the pattern .