@@ -12,7 +12,6 @@ import {
1212} from '../utils' ;
1313import { isVisibleToScreenReaders } from '../../commons/dom' ;
1414import constants from '../constants' ;
15- import log from '../log' ;
1615
1716export default function Rule ( spec , parentAudit ) {
1817 this . _audit = parentAudit ;
@@ -155,18 +154,23 @@ Rule.prototype.gather = function gather(context, options = {}) {
155154 markHiddenEnd ,
156155 {
157156 rule : this . id ,
158- type : " rule"
157+ type : ' rule'
159158 }
160159 ) ;
161160 }
162161 }
163162
164163 if ( options . performanceTimer ) {
165164 performanceTimer . mark ( markEnd ) ;
166- performanceTimer . measure ( 'rule_' + this . id + '#gather' , markStart , markEnd , {
167- rule : this . id ,
168- type : "rule"
169- } ) ;
165+ performanceTimer . measure (
166+ 'rule_' + this . id + '#gather' ,
167+ markStart ,
168+ markEnd ,
169+ {
170+ rule : this . id ,
171+ type : 'rule'
172+ }
173+ ) ;
170174 }
171175
172176 return elements ;
@@ -380,7 +384,7 @@ Rule.prototype._trackPerformance = function _trackPerformance() {
380384 * @param {Rule } rule The rule to log
381385 * @param {Array } nodes Result of rule.gather
382386 */
383- Rule . prototype . _logGatherPerformance = function _logGatherPerformance ( nodes ) {
387+ Rule . prototype . _logGatherPerformance = function _logGatherPerformance ( ) {
384388 // log('gather (', nodes.length, '):', performanceTimer.timeElapsed() + 'ms');
385389 performanceTimer . mark ( this . _markChecksStart ) ;
386390} ;
@@ -399,13 +403,13 @@ Rule.prototype._logRulePerformance = function _logRulePerformance() {
399403 this . _markChecksEnd ,
400404 {
401405 rule : this . id ,
402- type : " rule"
406+ type : ' rule'
403407 }
404408 ) ;
405409
406410 performanceTimer . measure ( 'rule_' + this . id , this . _markStart , this . _markEnd , {
407411 rule : this . id ,
408- type : " rule"
412+ type : ' rule'
409413 } ) ;
410414} ;
411415
@@ -467,7 +471,7 @@ Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(
467471 markMatchesEnd ,
468472 {
469473 rule : this . id ,
470- type : " rule"
474+ type : ' rule'
471475 }
472476 ) ;
473477 }
@@ -651,4 +655,3 @@ Rule.prototype.configure = function configure(spec) {
651655 this . impact = spec . impact ;
652656 }
653657} ;
654- ß
0 commit comments