Sha256: 9dfe080486fd6739cc43319d1017b68fca8d1f9ec5ed760b17cb908a737c1369
Contents?: true
Size: 864 Bytes
Versions: 375
Compression:
Stored size: 864 Bytes
Contents
/*global helpers */ /** * Add information about the environment axe was run in. * @return {Object} */ helpers.getEnvironmentData = function getEnvironmentData(win = window) { // TODO: remove parameter once we are testing axe-core in jsdom and other // supported environments const { screen = {}, navigator = {}, location = {}, innerHeight, innerWidth } = win; const orientation = screen.msOrientation || screen.orientation || screen.mozOrientation || {}; return { testEngine: { name: 'axe-core', version: axe.version }, testRunner: { name: axe._audit.brand }, testEnvironment: { userAgent: navigator.userAgent, windowWidth: innerWidth, windowHeight: innerHeight, orientationAngle: orientation.angle, orientationType: orientation.type }, timestamp: new Date().toISOString(), url: location.href }; };
Version data entries
375 entries across 375 versions & 1 rubygems