Skip to content

Commit

Permalink
replace formatters for helptext.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Nov 2, 2016
1 parent eafaa33 commit 48f44c9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 85 deletions.
2 changes: 1 addition & 1 deletion lighthouse-cli/test/fixtures/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"time": 18.540999999999997
}
],
"formatter": "estimatedInputLatency"
"formatter": "null"
},
"name": "estimated-input-latency",
"category": "Performance",
Expand Down
5 changes: 4 additions & 1 deletion lighthouse-core/audits/estimated-input-latency.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class EstimatedInputLatency extends Audit {
name: 'estimated-input-latency',
description: 'Estimated Input Latency',
optimalValue: SCORING_POINT_OF_DIMINISHING_RETURNS.toLocaleString() + 'ms',
helpText: 'Primarily a measure of the main thread\'s activity. ' +
'There is a 90% probabililty a user would encounter input latency of this amount or less. ' +
'10% of touches can expect additional latency.',
requiredArtifacts: ['traceContents']
};
}
Expand Down Expand Up @@ -67,7 +70,7 @@ class EstimatedInputLatency extends Audit {
displayValue: `${rawValue}ms`,
extendedInfo: {
value: latencyPercentiles,
formatter: Formatter.SUPPORTED_FORMATS.ESTIMATED_INPUT_LATENCY
formatter: Formatter.SUPPORTED_FORMATS.NULL
}
});
}
Expand Down
70 changes: 0 additions & 70 deletions lighthouse-core/formatters/estimated-input-latency.js

This file was deleted.

1 change: 0 additions & 1 deletion lighthouse-core/formatters/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class Formatter {
this._formatters = {
accessibility: require('./accessibility'),
criticalRequestChains: require('./critical-request-chains'),
estimatedInputLatency: require('./estimated-input-latency'),
urllist: require('./url-list'),
null: require('./null-formatter'),
speedline: require('./speedline-formatter'),
Expand Down
11 changes: 0 additions & 11 deletions lighthouse-core/formatters/partials/estimated-input-latency.html

This file was deleted.

2 changes: 1 addition & 1 deletion lighthouse-core/test/results/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"time": 18.540999999999997
}
],
"formatter": "estimatedInputLatency"
"formatter": "null"
},
"name": "estimated-input-latency",
"category": "Performance",
Expand Down

0 comments on commit 48f44c9

Please sign in to comment.