Release v2.10.1-rc.1
diff --git a/Changelog.md b/Changelog.md
index e68793a..db22789 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,3 +1,5 @@
+## 2.10.1-rc.1 - 2016-09-10
+
## 2.10.1-rc.0 - 2016-01-13
### Bug fixes:
diff --git a/bower.json b/bower.json
index 4d5c77c..90f386d 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "accessibility-developer-tools",
- "version": "2.10.1-rc.0",
+ "version": "2.10.1-rc.1",
"homepage": "https://github.com/GoogleChrome/accessibility-developer-tools",
"authors": [
"Google"
diff --git a/dist/js/axs_testing.js b/dist/js/axs_testing.js
index 00c26e0..c516868 100644
--- a/dist/js/axs_testing.js
+++ b/dist/js/axs_testing.js
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
- * Generated from http://github.com/GoogleChrome/accessibility-developer-tools/tree/582ba71c124ed834d640ce2109dcd91b7864922f
+ * Generated from http://github.com/GoogleChrome/accessibility-developer-tools/tree/83e11c18f233b80cd09f4e857eb9a4be336d3c19
*
* See project README for build steps.
*/
@@ -43,28 +43,76 @@
goog.LOCALE = "en";
goog.TRUSTED_SITE = !0;
goog.STRICT_MODE_COMPATIBLE = !1;
+goog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG;
+goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1;
goog.provide = function(a) {
+ if (goog.isInModuleLoader_()) {
+ throw Error("goog.provide can not be used within a goog.module.");
+ }
+ if (!COMPILED && goog.isProvided_(a)) {
+ throw Error('Namespace "' + a + '" already declared.');
+ }
+ goog.constructNamespace_(a);
+};
+goog.constructNamespace_ = function(a, b) {
+ if (!COMPILED) {
+ delete goog.implicitNamespaces_[a];
+ for (var c = a;(c = c.substring(0, c.lastIndexOf("."))) && !goog.getObjectByName(c);) {
+ goog.implicitNamespaces_[c] = !0;
+ }
+ }
+ goog.exportPath_(a, b);
+};
+goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
+goog.module = function(a) {
+ if (!goog.isString(a) || !a || -1 == a.search(goog.VALID_MODULE_RE_)) {
+ throw Error("Invalid module identifier");
+ }
+ if (!goog.isInModuleLoader_()) {
+ throw Error("Module " + a + " has been loaded incorrectly.");
+ }
+ if (goog.moduleLoaderState_.moduleName) {
+ throw Error("goog.module may only be called once per module.");
+ }
+ goog.moduleLoaderState_.moduleName = a;
if (!COMPILED) {
if (goog.isProvided_(a)) {
throw Error('Namespace "' + a + '" already declared.');
}
delete goog.implicitNamespaces_[a];
- for (var b = a;(b = b.substring(0, b.lastIndexOf("."))) && !goog.getObjectByName(b);) {
- goog.implicitNamespaces_[b] = !0;
- }
}
- goog.exportPath_(a);
+};
+goog.module.get = function(a) {
+ return goog.module.getInternal_(a);
+};
+goog.module.getInternal_ = function(a) {
+ if (!COMPILED) {
+ return goog.isProvided_(a) ? a in goog.loadedModules_ ? goog.loadedModules_[a] : goog.getObjectByName(a) : null;
+ }
+};
+goog.moduleLoaderState_ = null;
+goog.isInModuleLoader_ = function() {
+ return null != goog.moduleLoaderState_;
+};
+goog.module.declareLegacyNamespace = function() {
+ if (!COMPILED && !goog.isInModuleLoader_()) {
+ throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");
+ }
+ if (!COMPILED && !goog.moduleLoaderState_.moduleName) {
+ throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");
+ }
+ goog.moduleLoaderState_.declareLegacyNamespace = !0;
};
goog.setTestOnly = function(a) {
- if (COMPILED && !goog.DEBUG) {
- throw a = a || "", Error("Importing test-only code into non-debug environment" + a ? ": " + a : ".");
+ if (goog.DISALLOW_TEST_ONLY_CODE) {
+ throw a = a || "", Error("Importing test-only code into non-debug environment" + (a ? ": " + a : "."));
}
};
goog.forwardDeclare = function(a) {
};
COMPILED || (goog.isProvided_ = function(a) {
- return !goog.implicitNamespaces_[a] && goog.isDefAndNotNull(goog.getObjectByName(a));
-}, goog.implicitNamespaces_ = {});
+ return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && goog.isDefAndNotNull(goog.getObjectByName(a));
+}, goog.implicitNamespaces_ = {"goog.module":!0});
goog.getObjectByName = function(a, b) {
for (var c = a.split("."), d = b || goog.global, e;e = c.shift();) {
if (goog.isDefAndNotNull(d[e])) {
@@ -81,40 +129,44 @@
c[d] = a[d];
}
};
-goog.addDependency = function(a, b, c) {
+goog.addDependency = function(a, b, c, d) {
if (goog.DEPENDENCIES_ENABLED) {
- var d;
+ var e;
a = a.replace(/\\/g, "/");
- for (var e = goog.dependencies_, f = 0;d = b[f];f++) {
- e.nameToPath[d] = a, a in e.pathToNames || (e.pathToNames[a] = {}), e.pathToNames[a][d] = !0;
+ var f = goog.dependencies_;
+ d && "boolean" !== typeof d || (d = d ? {module:"goog"} : {});
+ for (var g = 0;e = b[g];g++) {
+ f.nameToPath[e] = a, f.loadFlags[a] = d;
}
for (d = 0;b = c[d];d++) {
- a in e.requires || (e.requires[a] = {}), e.requires[a][b] = !0;
+ a in f.requires || (f.requires[a] = {}), f.requires[a][b] = !0;
}
}
};
goog.ENABLE_DEBUG_LOADER = !0;
+goog.logToConsole_ = function(a) {
+ goog.global.console && goog.global.console.error(a);
+};
goog.require = function(a) {
- if (!COMPILED && !goog.isProvided_(a)) {
+ if (!COMPILED) {
+ goog.ENABLE_DEBUG_LOADER && goog.IS_OLD_IE_ && goog.maybeProcessDeferredDep_(a);
+ if (goog.isProvided_(a)) {
+ return goog.isInModuleLoader_() ? goog.module.getInternal_(a) : null;
+ }
if (goog.ENABLE_DEBUG_LOADER) {
var b = goog.getPathFromDeps_(a);
if (b) {
- goog.included_[b] = !0;
- goog.writeScripts_();
- return;
+ return goog.writeScripts_(b), null;
}
}
a = "goog.require could not find: " + a;
- goog.global.console && goog.global.console.error(a);
+ goog.logToConsole_(a);
throw Error(a);
}
};
goog.basePath = "";
goog.nullFunction = function() {
};
-goog.identityFunction = function(a, b) {
- return a;
-};
goog.abstractMethod = function() {
throw Error("unimplemented abstract method");
};
@@ -128,16 +180,21 @@
};
};
goog.instantiatedSingletons_ = [];
+goog.LOAD_MODULE_USING_EVAL = !0;
+goog.SEAL_MODULE_EXPORTS = goog.DEBUG;
+goog.loadedModules_ = {};
goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;
-goog.DEPENDENCIES_ENABLED && (goog.included_ = {}, goog.dependencies_ = {pathToNames:{}, nameToPath:{}, requires:{}, visited:{}, written:{}}, goog.inHtmlDocument_ = function() {
+goog.ALWAYS_TRANSPILE = !1;
+goog.NEVER_TRANSPILE = !1;
+goog.DEPENDENCIES_ENABLED && (goog.dependencies_ = {loadFlags:{}, nameToPath:{}, requires:{}, visited:{}, written:{}, deferred:{}}, goog.inHtmlDocument_ = function() {
var a = goog.global.document;
- return "undefined" != typeof a && "write" in a;
+ return null != a && "write" in a;
}, goog.findBasePath_ = function() {
- if (goog.global.CLOSURE_BASE_PATH) {
+ if (goog.isDef(goog.global.CLOSURE_BASE_PATH)) {
goog.basePath = goog.global.CLOSURE_BASE_PATH;
} else {
if (goog.inHtmlDocument_()) {
- for (var a = goog.global.document.getElementsByTagName("script"), b = a.length - 1;0 <= b;--b) {
+ for (var a = goog.global.document.getElementsByTagName("SCRIPT"), b = a.length - 1;0 <= b;--b) {
var c = a[b].src, d = c.lastIndexOf("?"), d = -1 == d ? c.length : d;
if ("base.js" == c.substr(d - 7, 7)) {
goog.basePath = c.substr(0, d - 7);
@@ -146,53 +203,204 @@
}
}
}
-}, goog.importScript_ = function(a) {
- var b = goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_;
- !goog.dependencies_.written[a] && b(a) && (goog.dependencies_.written[a] = !0);
-}, goog.writeScriptTag_ = function(a) {
+}, goog.importScript_ = function(a, b) {
+ (goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_)(a, b) && (goog.dependencies_.written[a] = !0);
+}, goog.IS_OLD_IE_ = !(goog.global.atob || !goog.global.document || !goog.global.document.all), goog.importProcessedScript_ = function(a, b, c) {
+ goog.importScript_("", 'goog.retrieveAndExec_("' + a + '", ' + b + ", " + c + ");");
+}, goog.queuedModules_ = [], goog.wrapModule_ = function(a, b) {
+ return goog.LOAD_MODULE_USING_EVAL && goog.isDef(goog.global.JSON) ? "goog.loadModule(" + goog.global.JSON.stringify(b + "\n//# sourceURL=" + a + "\n") + ");" : 'goog.loadModule(function(exports) {"use strict";' + b + "\n;return exports});\n//# sourceURL=" + a + "\n";
+}, goog.loadQueuedModules_ = function() {
+ var a = goog.queuedModules_.length;
+ if (0 < a) {
+ var b = goog.queuedModules_;
+ goog.queuedModules_ = [];
+ for (var c = 0;c < a;c++) {
+ goog.maybeProcessDeferredPath_(b[c]);
+ }
+ }
+}, goog.maybeProcessDeferredDep_ = function(a) {
+ goog.isDeferredModule_(a) && goog.allDepsAreAvailable_(a) && (a = goog.getPathFromDeps_(a), goog.maybeProcessDeferredPath_(goog.basePath + a));
+}, goog.isDeferredModule_ = function(a) {
+ var b = (a = goog.getPathFromDeps_(a)) && goog.dependencies_.loadFlags[a] || {};
+ return a && ("goog" == b.module || goog.needsTranspile_(b.lang)) ? goog.basePath + a in goog.dependencies_.deferred : !1;
+}, goog.allDepsAreAvailable_ = function(a) {
+ if ((a = goog.getPathFromDeps_(a)) && a in goog.dependencies_.requires) {
+ for (var b in goog.dependencies_.requires[a]) {
+ if (!goog.isProvided_(b) && !goog.isDeferredModule_(b)) {
+ return !1;
+ }
+ }
+ }
+ return !0;
+}, goog.maybeProcessDeferredPath_ = function(a) {
+ if (a in goog.dependencies_.deferred) {
+ var b = goog.dependencies_.deferred[a];
+ delete goog.dependencies_.deferred[a];
+ goog.globalEval(b);
+ }
+}, goog.loadModuleFromUrl = function(a) {
+ goog.retrieveAndExec_(a, !0, !1);
+}, goog.loadModule = function(a) {
+ var b = goog.moduleLoaderState_;
+ try {
+ goog.moduleLoaderState_ = {moduleName:void 0, declareLegacyNamespace:!1};
+ var c;
+ if (goog.isFunction(a)) {
+ c = a.call(goog.global, {});
+ } else {
+ if (goog.isString(a)) {
+ c = goog.loadModuleFromSource_.call(goog.global, a);
+ } else {
+ throw Error("Invalid module definition");
+ }
+ }
+ var d = goog.moduleLoaderState_.moduleName;
+ if (!goog.isString(d) || !d) {
+ throw Error('Invalid module name "' + d + '"');
+ }
+ goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(d, c) : goog.SEAL_MODULE_EXPORTS && Object.seal && Object.seal(c);
+ goog.loadedModules_[d] = c;
+ } finally {
+ goog.moduleLoaderState_ = b;
+ }
+}, goog.loadModuleFromSource_ = function(a) {
+ eval(a);
+ return {};
+}, goog.writeScriptSrcNode_ = function(a) {
+ goog.global.document.write('<script type="text/javascript" src="' + a + '">\x3c/script>');
+}, goog.appendScriptSrcNode_ = function(a) {
+ var b = goog.global.document, c = b.createElement("script");
+ c.type = "text/javascript";
+ c.src = a;
+ c.defer = !1;
+ c.async = !1;
+ b.head.appendChild(c);
+}, goog.writeScriptTag_ = function(a, b) {
if (goog.inHtmlDocument_()) {
- var b = goog.global.document;
- if ("complete" == b.readyState) {
+ var c = goog.global.document;
+ if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && "complete" == c.readyState) {
if (/\bdeps.js$/.test(a)) {
return !1;
}
throw Error('Cannot write "' + a + '" after document load');
}
- b.write('<script type="text/javascript" src="' + a + '">\x3c/script>');
+ if (void 0 === b) {
+ if (goog.IS_OLD_IE_) {
+ var d = " onreadystatechange='goog.onScriptLoad_(this, " + ++goog.lastNonModuleScriptIndex_ + ")' ";
+ c.write('<script type="text/javascript" src="' + a + '"' + d + ">\x3c/script>");
+ } else {
+ goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING ? goog.appendScriptSrcNode_(a) : goog.writeScriptSrcNode_(a);
+ }
+ } else {
+ c.write('<script type="text/javascript">' + b + "\x3c/script>");
+ }
return !0;
}
return !1;
-}, goog.writeScripts_ = function() {
- function a(e) {
- if (!(e in d.written)) {
- if (!(e in d.visited) && (d.visited[e] = !0, e in d.requires)) {
- for (var g in d.requires[e]) {
- if (!goog.isProvided_(g)) {
- if (g in d.nameToPath) {
- a(d.nameToPath[g]);
+}, goog.needsTranspile_ = function(a) {
+ if (goog.ALWAYS_TRANSPILE) {
+ return !0;
+ }
+ if (goog.NEVER_TRANSPILE) {
+ return !1;
+ }
+ if (!goog.transpiledLanguages_) {
+ goog.transpiledLanguages_ = {es5:!0, es6:!0, "es6-impl":!0};
+ try {
+ goog.transpiledLanguages_.es5 = eval("[1,].length!=1"), eval('(()=>{"use strict";let a={};const X=class{constructor(){}x(z){return new Map([...arguments]).get(z[0])==3}};return new X().x([a,3])})()') && (goog.transpiledLanguages_["es6-impl"] = !1), eval('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()') &&
+ (goog.transpiledLanguages_.es6 = !1);
+ } catch (b) {
+ }
+ }
+ return !!goog.transpiledLanguages_[a];
+}, goog.transpiledLanguages_ = null, goog.lastNonModuleScriptIndex_ = 0, goog.onScriptLoad_ = function(a, b) {
+ "complete" == a.readyState && goog.lastNonModuleScriptIndex_ == b && goog.loadQueuedModules_();
+ return !0;
+}, goog.writeScripts_ = function(a) {
+ function b(a) {
+ if (!(a in e.written || a in e.visited)) {
+ e.visited[a] = !0;
+ if (a in e.requires) {
+ for (var f in e.requires[a]) {
+ if (!goog.isProvided_(f)) {
+ if (f in e.nameToPath) {
+ b(e.nameToPath[f]);
} else {
- throw Error("Undefined nameToPath for " + g);
+ throw Error("Undefined nameToPath for " + f);
}
}
}
}
- e in c || (c[e] = !0, b.push(e));
+ a in d || (d[a] = !0, c.push(a));
}
}
- var b = [], c = {}, d = goog.dependencies_, e;
- for (e in goog.included_) {
- d.written[e] || a(e);
+ var c = [], d = {}, e = goog.dependencies_;
+ b(a);
+ for (a = 0;a < c.length;a++) {
+ var f = c[a];
+ goog.dependencies_.written[f] = !0;
}
- for (e = 0;e < b.length;e++) {
- if (b[e]) {
- goog.importScript_(goog.basePath + b[e]);
+ var g = goog.moduleLoaderState_;
+ goog.moduleLoaderState_ = null;
+ for (a = 0;a < c.length;a++) {
+ if (f = c[a]) {
+ var h = e.loadFlags[f] || {}, k = goog.needsTranspile_(h.lang);
+ "goog" == h.module || k ? goog.importProcessedScript_(goog.basePath + f, "goog" == h.module, k) : goog.importScript_(goog.basePath + f);
} else {
- throw Error("Undefined script input");
+ throw goog.moduleLoaderState_ = g, Error("Undefined script input");
}
}
+ goog.moduleLoaderState_ = g;
}, goog.getPathFromDeps_ = function(a) {
return a in goog.dependencies_.nameToPath ? goog.dependencies_.nameToPath[a] : null;
}, goog.findBasePath_(), goog.global.CLOSURE_NO_DEPS || goog.importScript_(goog.basePath + "deps.js"));
+goog.normalizePath_ = function(a) {
+ a = a.split("/");
+ for (var b = 0;b < a.length;) {
+ "." == a[b] ? a.splice(b, 1) : b && ".." == a[b] && a[b - 1] && ".." != a[b - 1] ? a.splice(--b, 2) : b++;
+ }
+ return a.join("/");
+};
+goog.loadFileSync_ = function(a) {
+ if (goog.global.CLOSURE_LOAD_FILE_SYNC) {
+ return goog.global.CLOSURE_LOAD_FILE_SYNC(a);
+ }
+ try {
+ var b = new goog.global.XMLHttpRequest;
+ b.open("get", a, !1);
+ b.send();
+ return 0 == b.status || 200 == b.status ? b.responseText : null;
+ } catch (c) {
+ return null;
+ }
+};
+goog.retrieveAndExec_ = function(a, b, c) {
+ if (!COMPILED) {
+ var d = a;
+ a = goog.normalizePath_(a);
+ var e = goog.global.CLOSURE_IMPORT_SCRIPT || goog.writeScriptTag_, f = goog.loadFileSync_(a);
+ if (null == f) {
+ throw Error('Load of "' + a + '" failed');
+ }
+ c && (f = goog.transpile_.call(goog.global, f, a));
+ f = b ? goog.wrapModule_(a, f) : f + ("\n//# sourceURL=" + a);
+ goog.IS_OLD_IE_ ? (goog.dependencies_.deferred[d] = f, goog.queuedModules_.push(d)) : e(a, f);
+ }
+};
+goog.transpile_ = function(a, b) {
+ var c = goog.global.$jscomp;
+ c || (goog.global.$jscomp = c = {});
+ var d = c.transpile;
+ if (!d) {
+ var e = goog.basePath + "transpile.js", f = goog.loadFileSync_(e);
+ f && (eval(f + "\n//# sourceURL=" + e), c = goog.global.$jscomp, d = c.transpile);
+ }
+ d || (d = c.transpile = function(a, b) {
+ goog.logToConsole_(b + " requires transpilation but no transpiler was found.");
+ return a;
+ });
+ return d(a, b);
+};
goog.typeOf = function(a) {
var b = typeof a;
if ("object" == b) {
@@ -262,7 +470,7 @@
return !!a[goog.UID_PROPERTY_];
};
goog.removeUid = function(a) {
- "removeAttribute" in a && a.removeAttribute(goog.UID_PROPERTY_);
+ null !== a && "removeAttribute" in a && a.removeAttribute(goog.UID_PROPERTY_);
try {
delete a[goog.UID_PROPERTY_];
} catch (b) {
@@ -330,10 +538,21 @@
goog.global.execScript(a, "JavaScript");
} else {
if (goog.global.eval) {
- if (null == goog.evalWorksForGlobals_ && (goog.global.eval("var _et_ = 1;"), "undefined" != typeof goog.global._et_ ? (delete goog.global._et_, goog.evalWorksForGlobals_ = !0) : goog.evalWorksForGlobals_ = !1), goog.evalWorksForGlobals_) {
+ if (null == goog.evalWorksForGlobals_) {
+ if (goog.global.eval("var _evalTest_ = 1;"), "undefined" != typeof goog.global._evalTest_) {
+ try {
+ delete goog.global._evalTest_;
+ } catch (d) {
+ }
+ goog.evalWorksForGlobals_ = !0;
+ } else {
+ goog.evalWorksForGlobals_ = !1;
+ }
+ }
+ if (goog.evalWorksForGlobals_) {
goog.global.eval(a);
} else {
- var b = goog.global.document, c = b.createElement("script");
+ var b = goog.global.document, c = b.createElement("SCRIPT");
c.type = "text/javascript";
c.defer = !1;
c.appendChild(b.createTextNode(a));
@@ -366,11 +585,9 @@
};
!COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING && (goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING);
goog.getMsg = function(a, b) {
- var c = b || {}, d;
- for (d in c) {
- var e = ("" + c[d]).replace(/\$/g, "$$$$");
- a = a.replace(new RegExp("\\{\\$" + d + "\\}", "gi"), e);
- }
+ b && (a = a.replace(/\{\$([^}]+)}/g, function(a, d) {
+ return null != b && d in b ? b[d] : a;
+ }));
return a;
};
goog.getMsgWithFallback = function(a, b) {
@@ -390,7 +607,9 @@
a.prototype = new c;
a.prototype.constructor = a;
a.base = function(a, c, f) {
- var g = Array.prototype.slice.call(arguments, 2);
+ for (var g = Array(arguments.length - 2), h = 2;h < arguments.length;h++) {
+ g[h - 2] = arguments[h];
+ }
return b.prototype[c].apply(a, g);
};
};
@@ -400,9 +619,16 @@
throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");
}
if (d.superClass_) {
- return d.superClass_.constructor.apply(a, Array.prototype.slice.call(arguments, 1));
+ for (var e = Array(arguments.length - 1), f = 1;f < arguments.length;f++) {
+ e[f - 1] = arguments[f];
+ }
+ return d.superClass_.constructor.apply(a, e);
}
- for (var e = Array.prototype.slice.call(arguments, 2), f = !1, g = a.constructor;g;g = g.superClass_ && g.superClass_.constructor) {
+ e = Array(arguments.length - 2);
+ for (f = 2;f < arguments.length;f++) {
+ e[f - 2] = arguments[f];
+ }
+ for (var f = !1, g = a.constructor;g;g = g.superClass_ && g.superClass_.constructor) {
if (g.prototype[b] === d) {
f = !0;
} else {
@@ -417,8 +643,54 @@
throw Error("goog.base called from a method of one name to a method of a different name");
};
goog.scope = function(a) {
+ if (goog.isInModuleLoader_()) {
+ throw Error("goog.scope is not supported within a goog.module.");
+ }
a.call(goog.global);
};
+COMPILED || (goog.global.COMPILED = COMPILED);
+goog.defineClass = function(a, b) {
+ var c = b.constructor, d = b.statics;
+ c && c != Object.prototype.constructor || (c = function() {
+ throw Error("cannot instantiate an interface (no constructor defined).");
+ });
+ c = goog.defineClass.createSealingConstructor_(c, a);
+ a && goog.inherits(c, a);
+ delete b.constructor;
+ delete b.statics;
+ goog.defineClass.applyProperties_(c.prototype, b);
+ null != d && (d instanceof Function ? d(c) : goog.defineClass.applyProperties_(c, d));
+ return c;
+};
+goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG;
+goog.defineClass.createSealingConstructor_ = function(a, b) {
+ if (!goog.defineClass.SEAL_CLASS_INSTANCES) {
+ return a;
+ }
+ var c = !goog.defineClass.isUnsealable_(b), d = function() {
+ var b = a.apply(this, arguments) || this;
+ b[goog.UID_PROPERTY_] = b[goog.UID_PROPERTY_];
+ this.constructor === d && c && Object.seal instanceof Function && Object.seal(b);
+ return b;
+ };
+ return d;
+};
+goog.defineClass.isUnsealable_ = function(a) {
+ return a && a.prototype && a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_];
+};
+goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
+goog.defineClass.applyProperties_ = function(a, b) {
+ for (var c in b) {
+ Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);
+ }
+ for (var d = 0;d < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;d++) {
+ c = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d], Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);
+ }
+};
+goog.tagUnsealableClass = function(a) {
+ !COMPILED && goog.defineClass.SEAL_CLASS_INSTANCES && (a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_] = !0);
+};
+goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_ = "goog_defineClass_legacy_unsealable";
var axs = {};
axs.browserUtils = {};
axs.browserUtils.matchSelector = function(a, b) {
@@ -1016,7 +1288,7 @@
}
for (var c = c.split(" "), d = {roles:[], valid:!1}, e = 0;e < c.length;e++) {
var f = c[e], g = axs.constants.ARIA_ROLES[f], f = {name:f};
- g && !g.abstract ? (f.details = g, d.applied || (d.applied = f), f.valid = d.valid = !0) : f.valid = !1;
+ g && !g["abstract"] ? (f.details = g, d.applied || (d.applied = f), f.valid = d.valid = !0) : f.valid = !1;
d.roles.push(f);
}
return d;
@@ -1379,16 +1651,7 @@
b.ariaLabel = f;
}
c.hasAttribute("role") && "presentation" == c.getAttribute("role") || (a = axs.properties.getTextFromHostLanguageAttributes(c, b, a, e));
- if (e && axs.utils.elementIsHtmlControl(c)) {
- f = c.ownerDocument.defaultView;
- if (c instanceof f.HTMLInputElement) {
- var g = c;
- "text" == g.type && g.value && 0 < g.value.length && (b.controlValue = {text:g.value});
- "range" == g.type && (b.controlValue = {text:g.value});
- }
- c instanceof f.HTMLSelectElement && (b.controlValue = {text:c.value});
- b.controlValue && (f = b.controlValue, a ? f.unused = !0 : a = f.text);
- }
+ e && axs.utils.elementIsHtmlControl(c) && (f = c.ownerDocument.defaultView, c instanceof f.HTMLInputElement && ("text" == c.type && c.value && 0 < c.value.length && (b.controlValue = {text:c.value}), "range" == c.type && (b.controlValue = {text:c.value})), c instanceof f.HTMLSelectElement && (b.controlValue = {text:c.value}), b.controlValue && (f = b.controlValue, a ? f.unused = !0 : a = f.text));
if (e && axs.utils.elementIsAriaWidget(c)) {
e = c.getAttribute("role");
"textbox" == e && c.textContent && 0 < c.textContent.length && (b.controlValue = {text:c.textContent});
@@ -1396,15 +1659,15 @@
c.hasAttribute("aria-valuetext") ? b.controlValue = {text:c.getAttribute("aria-valuetext")} : c.hasAttribute("aria-valuenow") && (b.controlValue = {value:c.getAttribute("aria-valuenow"), text:"" + c.getAttribute("aria-valuenow")});
}
if ("menu" == e) {
- for (var h = c.querySelectorAll("[role=menuitemcheckbox], [role=menuitemradio]"), f = [], g = 0;g < h.length;g++) {
- "true" == h[g].getAttribute("aria-checked") && f.push(h[g]);
+ for (var g = c.querySelectorAll("[role=menuitemcheckbox], [role=menuitemradio]"), f = [], h = 0;h < g.length;h++) {
+ "true" == g[h].getAttribute("aria-checked") && f.push(g[h]);
}
if (0 < f.length) {
- h = "";
- for (g = 0;g < f.length;g++) {
- h += axs.properties.findTextAlternatives(f[g], {}, !0), g < f.length - 1 && (h += ", ");
+ g = "";
+ for (h = 0;h < f.length;h++) {
+ g += axs.properties.findTextAlternatives(f[h], {}, !0), h < f.length - 1 && (g += ", ");
}
- b.controlValue = {text:h};
+ b.controlValue = {text:g};
}
}
if ("combobox" == e || "select" == e) {
@@ -1494,7 +1757,7 @@
if (0 == Object.keys(b).length && ((a = axs.dom.asElement(a)) && axs.browserUtils.matchSelector(a, "img") && (b.alt = {valid:!1, errorMessage:"No alt value provided"}, a = a.src, "string" == typeof a && (c = a.split("/").pop(), b.filename = {text:c})), !c)) {
return null;
}
- b.hasProperties = Boolean(Object.keys(b).length);
+ b.hasProperties = !!Object.keys(b).length;
b.computedText = c;
b.lastWord = axs.properties.getLastWord(c);
return b;
@@ -1857,8 +2120,8 @@
axs.Audit.createReport = function(a, b) {
var c;
c = "*** Begin accessibility audit results ***\nAn accessibility audit found " + axs.Audit.auditResults(a).toString();
- b && (c += "\nFor more information, please see ", c += b);
- return c += "\n*** End accessibility audit results ***";
+ b && (c = c + "\nFor more information, please see " + b);
+ return c + "\n*** End accessibility audit results ***";
};
goog.exportSymbol("axs.Audit.createReport", axs.Audit.createReport);
axs.Audit.accessibilityErrorMessage = function(a) {
diff --git a/package.json b/package.json
index 07fdf14..7e9602c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "accessibility-developer-tools",
- "version": "2.10.1-rc.0",
+ "version": "2.10.1-rc.1",
"repository": {
"type": "git",
"url": "http://github.com/GoogleChrome/accessibility-developer-tools"
@@ -11,11 +11,11 @@
"grunt": "^0.4.5",
"grunt-bump": "^0.3.1",
"grunt-cli": "^0.1.13",
- "grunt-closurecompiler": "^0.9.9",
+ "grunt-closurecompiler": "0.9.9",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-coffee": "^0.13.0",
"grunt-contrib-copy": "^0.8.0",
- "grunt-contrib-qunit": "^0.7.0",
+ "grunt-contrib-qunit": "0.7.0",
"grunt-eslint": "^16.0.0",
"grunt-prompt": "^1.3.0",
"load-grunt-tasks": "^3.2.0",