diff --git a/docs/recipes/custom-audit/searchable-audit.js b/docs/recipes/custom-audit/searchable-audit.js index 86ecdd2cf5d0..18fe226566cd 100644 --- a/docs/recipes/custom-audit/searchable-audit.js +++ b/docs/recipes/custom-audit/searchable-audit.js @@ -36,7 +36,7 @@ class LoadAudit extends Audit { const belowThreshold = loadMetrics.searchableTime <= MAX_SEARCHABLE_TIME; return { - rawValue: loadMetrics.searchableTime, + numericValue: loadMetrics.searchableTime, // Cast true/false to 1/0 score: Number(belowThreshold), }; diff --git a/docs/recipes/lighthouse-plugin-example/audits/preload-as.js b/docs/recipes/lighthouse-plugin-example/audits/preload-as.js index 48d8385ed798..892aba6c3285 100644 --- a/docs/recipes/lighthouse-plugin-example/audits/preload-as.js +++ b/docs/recipes/lighthouse-plugin-example/audits/preload-as.js @@ -37,7 +37,7 @@ class PreloadAsAudit extends Audit { const passed = noAsLinks.length === 0; return { - rawValue: passed, + score: passed ? 1 : 0, displayValue: `Found ${noAsLinks.length} preload requests with missing \`as\` attributes`, }; } diff --git a/lighthouse-core/audits/audit.js b/lighthouse-core/audits/audit.js index 3c9230a443f9..5daa69c5c4a8 100644 --- a/lighthouse-core/audits/audit.js +++ b/lighthouse-core/audits/audit.js @@ -270,7 +270,7 @@ class Audit { score, scoreDisplayMode, - numericValue: product.rawValue, + numericValue: product.numericValue, displayValue: product.displayValue, explanation: product.explanation, diff --git a/lighthouse-core/audits/bootup-time.js b/lighthouse-core/audits/bootup-time.js index c2cc645b606d..c5e178fef4ec 100644 --- a/lighthouse-core/audits/bootup-time.js +++ b/lighthouse-core/audits/bootup-time.js @@ -179,7 +179,7 @@ class BootupTime extends Audit { return { score, - rawValue: totalBootupTime, + numericValue: totalBootupTime, displayValue: totalBootupTime > 0 ? str_(i18n.UIStrings.seconds, {timeInMs: totalBootupTime}) : '', details, diff --git a/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js b/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js index 9c99a78fcd69..634f44851ff0 100644 --- a/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js +++ b/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js @@ -208,7 +208,7 @@ class UnusedBytes extends Audit { explanation: result.explanation, warnings: result.warnings, displayValue, - rawValue: wastedMs, + numericValue: wastedMs, score: UnusedBytes.scoreForWastedMs(wastedMs), extendedInfo: { value: { diff --git a/lighthouse-core/audits/byte-efficiency/render-blocking-resources.js b/lighthouse-core/audits/byte-efficiency/render-blocking-resources.js index 5e51c98a0f1a..bcd9de011e80 100644 --- a/lighthouse-core/audits/byte-efficiency/render-blocking-resources.js +++ b/lighthouse-core/audits/byte-efficiency/render-blocking-resources.js @@ -224,7 +224,7 @@ class RenderBlockingResources extends Audit { return { displayValue, score: ByteEfficiencyAudit.scoreForWastedMs(wastedMs), - rawValue: wastedMs, + numericValue: wastedMs, details, }; } diff --git a/lighthouse-core/audits/byte-efficiency/total-byte-weight.js b/lighthouse-core/audits/byte-efficiency/total-byte-weight.js index 542b726e8b5e..615f6ed99eb3 100644 --- a/lighthouse-core/audits/byte-efficiency/total-byte-weight.js +++ b/lighthouse-core/audits/byte-efficiency/total-byte-weight.js @@ -99,7 +99,7 @@ class TotalByteWeight extends ByteEfficiencyAudit { return { score, - rawValue: totalBytes, + numericValue: totalBytes, displayValue: str_(UIStrings.displayValue, {totalBytes}), extendedInfo: { value: { diff --git a/lighthouse-core/audits/byte-efficiency/uses-long-cache-ttl.js b/lighthouse-core/audits/byte-efficiency/uses-long-cache-ttl.js index 692fdc384c8a..0d4738055aee 100644 --- a/lighthouse-core/audits/byte-efficiency/uses-long-cache-ttl.js +++ b/lighthouse-core/audits/byte-efficiency/uses-long-cache-ttl.js @@ -284,7 +284,7 @@ class CacheHeaders extends Audit { return { score, - rawValue: totalWastedBytes, + numericValue: totalWastedBytes, displayValue: str_(UIStrings.displayValue, {itemCount: results.length}), extendedInfo: { value: { diff --git a/lighthouse-core/audits/diagnostics.js b/lighthouse-core/audits/diagnostics.js index 2a1fb54d4f69..ac52685d5fca 100644 --- a/lighthouse-core/audits/diagnostics.js +++ b/lighthouse-core/audits/diagnostics.js @@ -66,7 +66,6 @@ class Diagnostics extends Audit { return { score: 1, - rawValue: 1, details: { type: 'debugdata', // TODO: Consider not nesting diagnostics under `items`. diff --git a/lighthouse-core/audits/dobetterweb/dom-size.js b/lighthouse-core/audits/dobetterweb/dom-size.js index e02e9869ff6a..c3cffd61fbc9 100644 --- a/lighthouse-core/audits/dobetterweb/dom-size.js +++ b/lighthouse-core/audits/dobetterweb/dom-size.js @@ -135,7 +135,7 @@ class DOMSize extends Audit { return { score, - rawValue: stats.totalBodyElements, + numericValue: stats.totalBodyElements, displayValue: str_(UIStrings.displayValue, {itemCount: stats.totalBodyElements}), extendedInfo: { value: items, diff --git a/lighthouse-core/audits/errors-in-console.js b/lighthouse-core/audits/errors-in-console.js index 1df3399a4f31..079c6f8981b5 100644 --- a/lighthouse-core/audits/errors-in-console.js +++ b/lighthouse-core/audits/errors-in-console.js @@ -71,7 +71,7 @@ class ErrorLogs extends Audit { return { score: Number(numErrors === 0), - rawValue: numErrors, + numericValue: numErrors, details, }; } diff --git a/lighthouse-core/audits/load-fast-enough-for-pwa.js b/lighthouse-core/audits/load-fast-enough-for-pwa.js index 102fd9796c80..cbc226b74f23 100644 --- a/lighthouse-core/audits/load-fast-enough-for-pwa.js +++ b/lighthouse-core/audits/load-fast-enough-for-pwa.js @@ -95,7 +95,7 @@ class LoadFastEnough4Pwa extends Audit { score, displayValue, explanation, - rawValue: tti.timing, + numericValue: tti.timing, }; } } diff --git a/lighthouse-core/audits/main-thread-tasks.js b/lighthouse-core/audits/main-thread-tasks.js index 1399e6248761..e3265f8bb621 100644 --- a/lighthouse-core/audits/main-thread-tasks.js +++ b/lighthouse-core/audits/main-thread-tasks.js @@ -51,7 +51,7 @@ class MainThreadTasks extends Audit { return { score: 1, - rawValue: results.length, + numericValue: results.length, details: tableDetails, }; } diff --git a/lighthouse-core/audits/mainthread-work-breakdown.js b/lighthouse-core/audits/mainthread-work-breakdown.js index 9325693aebf6..1865613c3e4e 100644 --- a/lighthouse-core/audits/mainthread-work-breakdown.js +++ b/lighthouse-core/audits/mainthread-work-breakdown.js @@ -122,7 +122,7 @@ class MainThreadWorkBreakdown extends Audit { return { score, - rawValue: totalExecutionTime, + numericValue: totalExecutionTime, displayValue: str_(i18n.UIStrings.seconds, {timeInMs: totalExecutionTime}), details: tableDetails, }; diff --git a/lighthouse-core/audits/metrics.js b/lighthouse-core/audits/metrics.js index 8818812c810e..2a7db30681e3 100644 --- a/lighthouse-core/audits/metrics.js +++ b/lighthouse-core/audits/metrics.js @@ -117,7 +117,7 @@ class Metrics extends Audit { return { score: 1, - rawValue: (interactive && interactive.timing) || 0, + numericValue: (interactive && interactive.timing) || 0, details, }; } diff --git a/lighthouse-core/audits/metrics/estimated-input-latency.js b/lighthouse-core/audits/metrics/estimated-input-latency.js index 5c9128814a75..38efde2b3c26 100644 --- a/lighthouse-core/audits/metrics/estimated-input-latency.js +++ b/lighthouse-core/audits/metrics/estimated-input-latency.js @@ -66,7 +66,7 @@ class EstimatedInputLatency extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: metricResult.timing, + numericValue: metricResult.timing, displayValue: str_(i18n.UIStrings.ms, {timeInMs: metricResult.timing}), }; } diff --git a/lighthouse-core/audits/metrics/first-contentful-paint-3g.js b/lighthouse-core/audits/metrics/first-contentful-paint-3g.js index 1e9413fb639e..8742c2752bbb 100644 --- a/lighthouse-core/audits/metrics/first-contentful-paint-3g.js +++ b/lighthouse-core/audits/metrics/first-contentful-paint-3g.js @@ -55,7 +55,7 @@ class FirstContentfulPaint3G extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: metricResult.timing, + numericValue: metricResult.timing, displayValue: `${metricResult.timing}\xa0ms`, }; } diff --git a/lighthouse-core/audits/metrics/first-contentful-paint.js b/lighthouse-core/audits/metrics/first-contentful-paint.js index 5da25f0d9a50..aa8753738cec 100644 --- a/lighthouse-core/audits/metrics/first-contentful-paint.js +++ b/lighthouse-core/audits/metrics/first-contentful-paint.js @@ -63,7 +63,7 @@ class FirstContentfulPaint extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: metricResult.timing, + numericValue: metricResult.timing, displayValue: str_(i18n.UIStrings.seconds, {timeInMs: metricResult.timing}), }; } diff --git a/lighthouse-core/audits/metrics/first-cpu-idle.js b/lighthouse-core/audits/metrics/first-cpu-idle.js index fe2e3d5864ea..6557ba152ae9 100644 --- a/lighthouse-core/audits/metrics/first-cpu-idle.js +++ b/lighthouse-core/audits/metrics/first-cpu-idle.js @@ -67,7 +67,7 @@ class FirstCPUIdle extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: metricResult.timing, + numericValue: metricResult.timing, displayValue: str_(i18n.UIStrings.seconds, {timeInMs: metricResult.timing}), }; } diff --git a/lighthouse-core/audits/metrics/first-meaningful-paint.js b/lighthouse-core/audits/metrics/first-meaningful-paint.js index 6272884ae299..fe83fc0f7ef3 100644 --- a/lighthouse-core/audits/metrics/first-meaningful-paint.js +++ b/lighthouse-core/audits/metrics/first-meaningful-paint.js @@ -66,7 +66,7 @@ class FirstMeaningfulPaint extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: metricResult.timing, + numericValue: metricResult.timing, displayValue: str_(i18n.UIStrings.seconds, {timeInMs: metricResult.timing}), }; } diff --git a/lighthouse-core/audits/metrics/interactive.js b/lighthouse-core/audits/metrics/interactive.js index df3891628941..d1462844472a 100644 --- a/lighthouse-core/audits/metrics/interactive.js +++ b/lighthouse-core/audits/metrics/interactive.js @@ -78,7 +78,7 @@ class InteractiveMetric extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: timeInMs, + numericValue: timeInMs, displayValue: str_(i18n.UIStrings.seconds, {timeInMs}), extendedInfo: { value: extendedInfo, diff --git a/lighthouse-core/audits/metrics/max-potential-fid.js b/lighthouse-core/audits/metrics/max-potential-fid.js index 29bbbfc43fb6..3a81771bf6ce 100644 --- a/lighthouse-core/audits/metrics/max-potential-fid.js +++ b/lighthouse-core/audits/metrics/max-potential-fid.js @@ -66,7 +66,7 @@ class MaxPotentialFID extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: metricResult.timing, + numericValue: metricResult.timing, displayValue: str_(i18n.UIStrings.ms, {timeInMs: metricResult.timing}), }; } diff --git a/lighthouse-core/audits/metrics/speed-index.js b/lighthouse-core/audits/metrics/speed-index.js index 54ad2de7b08b..d8cb2f193210 100644 --- a/lighthouse-core/audits/metrics/speed-index.js +++ b/lighthouse-core/audits/metrics/speed-index.js @@ -65,7 +65,7 @@ class SpeedIndex extends Audit { context.options.scorePODR, context.options.scoreMedian ), - rawValue: metricResult.timing, + numericValue: metricResult.timing, displayValue: str_(i18n.UIStrings.seconds, {timeInMs: metricResult.timing}), }; } diff --git a/lighthouse-core/audits/network-requests.js b/lighthouse-core/audits/network-requests.js index 2a8235220e23..d15f8e28befd 100644 --- a/lighthouse-core/audits/network-requests.js +++ b/lighthouse-core/audits/network-requests.js @@ -90,7 +90,7 @@ class NetworkRequests extends Audit { return { score: 1, - rawValue: results.length, + numericValue: results.length, details: tableDetails, }; }); diff --git a/lighthouse-core/audits/network-rtt.js b/lighthouse-core/audits/network-rtt.js index 49986ca85925..13f074fe2c9f 100644 --- a/lighthouse-core/audits/network-rtt.js +++ b/lighthouse-core/audits/network-rtt.js @@ -69,7 +69,7 @@ class NetworkRTT extends Audit { return { score: 1, - rawValue: maxRtt, + numericValue: maxRtt, displayValue: str_(i18n.UIStrings.ms, {timeInMs: maxRtt}), details: tableDetails, }; diff --git a/lighthouse-core/audits/network-server-latency.js b/lighthouse-core/audits/network-server-latency.js index 1f3b378530c6..a3067a58dbee 100644 --- a/lighthouse-core/audits/network-server-latency.js +++ b/lighthouse-core/audits/network-server-latency.js @@ -68,7 +68,7 @@ class NetworkServerLatency extends Audit { return { score: Math.max(1 - (maxLatency / 500), 0), - rawValue: maxLatency, + numericValue: maxLatency, displayValue: str_(i18n.UIStrings.ms, {timeInMs: maxLatency}), details: tableDetails, }; diff --git a/lighthouse-core/audits/predictive-perf.js b/lighthouse-core/audits/predictive-perf.js index 369c1c07ead1..0c892df96b4b 100644 --- a/lighthouse-core/audits/predictive-perf.js +++ b/lighthouse-core/audits/predictive-perf.js @@ -88,7 +88,7 @@ class PredictivePerf extends Audit { return { score, - rawValue: values.roughEstimateOfTTI, + numericValue: values.roughEstimateOfTTI, displayValue: Util.formatMilliseconds(values.roughEstimateOfTTI), details: { type: 'debugdata', diff --git a/lighthouse-core/audits/redirects.js b/lighthouse-core/audits/redirects.js index a2b1c74564a9..9e40a18a1f23 100644 --- a/lighthouse-core/audits/redirects.js +++ b/lighthouse-core/audits/redirects.js @@ -108,7 +108,7 @@ class Redirects extends Audit { return { // We award a passing grade if you only have 1 redirect score: redirectRequests.length <= 2 ? 1 : UnusedBytes.scoreForWastedMs(totalWastedMs), - rawValue: totalWastedMs, + numericValue: totalWastedMs, displayValue: totalWastedMs ? str_(i18n.UIStrings.displayValueMsSavings, {wastedMs: totalWastedMs}) : '', diff --git a/lighthouse-core/audits/time-to-first-byte.js b/lighthouse-core/audits/time-to-first-byte.js index ec6610ff2588..37982b6e4e58 100644 --- a/lighthouse-core/audits/time-to-first-byte.js +++ b/lighthouse-core/audits/time-to-first-byte.js @@ -69,7 +69,7 @@ class TTFBMetric extends Audit { }; return { - rawValue: ttfb, + numericValue: ttfb, score: Number(passed), displayValue, details, diff --git a/lighthouse-core/audits/uses-rel-preconnect.js b/lighthouse-core/audits/uses-rel-preconnect.js index e08620b251a0..8e80cda448d9 100644 --- a/lighthouse-core/audits/uses-rel-preconnect.js +++ b/lighthouse-core/audits/uses-rel-preconnect.js @@ -188,7 +188,7 @@ class UsesRelPreconnectAudit extends Audit { return { score: UnusedBytes.scoreForWastedMs(maxWasted), - rawValue: maxWasted, + numericValue: maxWasted, displayValue: maxWasted ? str_(i18n.UIStrings.displayValueMsSavings, {wastedMs: maxWasted}) : '', diff --git a/lighthouse-core/audits/uses-rel-preload.js b/lighthouse-core/audits/uses-rel-preload.js index 671e2ffea579..240a6a9ba485 100644 --- a/lighthouse-core/audits/uses-rel-preload.js +++ b/lighthouse-core/audits/uses-rel-preload.js @@ -222,7 +222,7 @@ class UsesRelPreloadAudit extends Audit { return { score: UnusedBytes.scoreForWastedMs(wastedMs), - rawValue: wastedMs, + numericValue: wastedMs, displayValue: wastedMs ? str_(i18n.UIStrings.displayValueMsSavings, {wastedMs}) : '', diff --git a/lighthouse-core/test/audits/bootup-time-test.js b/lighthouse-core/test/audits/bootup-time-test.js index a91cb3be5e22..5365626bc35c 100644 --- a/lighthouse-core/test/audits/bootup-time-test.js +++ b/lighthouse-core/test/audits/bootup-time-test.js @@ -37,7 +37,7 @@ describe('Performance: bootup-time audit', () => { assert.deepEqual(roundedValueOf(output, 'https://www.google-analytics.com/analytics.js'), {scripting: 40.6, scriptParseCompile: 9.6, total: 53.4}); assert.deepEqual(roundedValueOf(output, 'Other'), {scripting: 11.7, scriptParseCompile: 0, total: 1123.8}); // eslint-disable-line max-len - assert.equal(Math.round(output.rawValue), 225); + assert.equal(Math.round(output.numericValue), 225); assert.equal(output.details.items.length, 5); assert.equal(output.score, 1); }); @@ -58,7 +58,7 @@ describe('Performance: bootup-time audit', () => { assert.equal(output.details.items.length, 8); assert.equal(output.score, 0.98); - assert.equal(Math.round(output.rawValue), 720); + assert.equal(Math.round(output.numericValue), 720); }); it('should get no data when no events are present', () => { @@ -72,7 +72,7 @@ describe('Performance: bootup-time audit', () => { .then(output => { assert.equal(output.details.items.length, 0); assert.equal(output.score, 1); - assert.equal(Math.round(output.rawValue), 0); + assert.equal(Math.round(output.numericValue), 0); }); }); }); diff --git a/lighthouse-core/test/audits/byte-efficiency/byte-efficiency-audit-test.js b/lighthouse-core/test/audits/byte-efficiency/byte-efficiency-audit-test.js index d000649f6145..1dd1369af048 100644 --- a/lighthouse-core/test/audits/byte-efficiency/byte-efficiency-audit-test.js +++ b/lighthouse-core/test/audits/byte-efficiency/byte-efficiency-audit-test.js @@ -88,7 +88,7 @@ describe('Byte efficiency base audit', () => { assert.deepEqual(result.details.items, []); }); - it('should set the rawValue', () => { + it('should set the numericValue', () => { const result = ByteEfficiencyAudit.createAuditProduct( { headings: baseHeadings, @@ -101,7 +101,7 @@ describe('Byte efficiency base audit', () => { ); // 900ms savings comes from the graph calculation - assert.equal(result.rawValue, 900); + assert.equal(result.numericValue, 900); }); it('should score the wastedMs', () => { @@ -200,7 +200,7 @@ describe('Byte efficiency base audit', () => { simulator ); - assert.equal(result.rawValue, 300); + assert.equal(result.numericValue, 300); }); it('should create load simulator with the specified settings', async () => { @@ -224,14 +224,14 @@ describe('Byte efficiency base audit', () => { let settings = {throttlingMethod: 'simulate', throttling: modestThrottling}; let result = await MockAudit.audit(artifacts, {settings, computedCache}); // expect modest savings - expect(result.rawValue).toBeLessThan(5000); - expect(result.rawValue).toMatchSnapshot(); + expect(result.numericValue).toBeLessThan(5000); + expect(result.numericValue).toMatchSnapshot(); settings = {throttlingMethod: 'simulate', throttling: ultraSlowThrottling}; result = await MockAudit.audit(artifacts, {settings, computedCache}); // expect lots of savings - expect(result.rawValue).not.toBeLessThan(5000); - expect(result.rawValue).toMatchSnapshot(); + expect(result.numericValue).not.toBeLessThan(5000); + expect(result.numericValue).toMatchSnapshot(); }); it('should allow overriding of computeWasteWithTTIGraph', async () => { @@ -262,7 +262,7 @@ describe('Byte efficiency base audit', () => { const result = await MockAudit.audit(artifacts, {settings, computedCache}); const resultTti = await MockJustTTIAudit.audit(artifacts, {settings, computedCache}); // expect less savings with just TTI - expect(resultTti.rawValue).toBeLessThan(result.rawValue); - expect({default: result.rawValue, justTTI: resultTti.rawValue}).toMatchSnapshot(); + expect(resultTti.numericValue).toBeLessThan(result.numericValue); + expect({default: result.numericValue, justTTI: resultTti.numericValue}).toMatchSnapshot(); }); }); diff --git a/lighthouse-core/test/audits/byte-efficiency/render-blocking-resources-test.js b/lighthouse-core/test/audits/byte-efficiency/render-blocking-resources-test.js index d0b256e7bc26..d1fd48b275b9 100644 --- a/lighthouse-core/test/audits/byte-efficiency/render-blocking-resources-test.js +++ b/lighthouse-core/test/audits/byte-efficiency/render-blocking-resources-test.js @@ -36,7 +36,7 @@ describe('Render blocking resources audit', () => { const computedCache = new Map(); const result = await RenderBlockingResourcesAudit.audit(artifacts, {settings, computedCache}); assert.equal(result.score, 1); - assert.equal(result.rawValue, 0); + assert.equal(result.numericValue, 0); }); describe('#estimateSavingsWithGraphs', () => { diff --git a/lighthouse-core/test/audits/byte-efficiency/total-byte-weight-test.js b/lighthouse-core/test/audits/byte-efficiency/total-byte-weight-test.js index 90afd4e46f24..2fe5e7e912b8 100644 --- a/lighthouse-core/test/audits/byte-efficiency/total-byte-weight-test.js +++ b/lighthouse-core/test/audits/byte-efficiency/total-byte-weight-test.js @@ -47,7 +47,7 @@ describe('Total byte weight audit', () => { ]); return TotalByteWeight.audit(artifacts, {options, computedCache: new Map()}).then(result => { - assert.strictEqual(result.rawValue, 150 * 1024); + assert.strictEqual(result.numericValue, 150 * 1024); assert.strictEqual(result.score, 1); const results = result.details.items; assert.strictEqual(results.length, 3); @@ -73,7 +73,7 @@ describe('Total byte weight audit', () => { return TotalByteWeight.audit(artifacts, {options, computedCache: new Map()}).then(result => { assert.ok(0.40 < result.score && result.score < 0.6, 'score is around 0.5'); - assert.strictEqual(result.rawValue, 4180 * 1024); + assert.strictEqual(result.numericValue, 4180 * 1024); const results = result.details.items; assert.strictEqual(results.length, 10, 'results are clipped at top 10'); assert.strictEqual(result.extendedInfo.value.totalCompletedRequests, 11); @@ -88,7 +88,7 @@ describe('Total byte weight audit', () => { ]); return TotalByteWeight.audit(artifacts, {options, computedCache: new Map()}).then(result => { - assert.strictEqual(result.rawValue, 15000 * 1024); + assert.strictEqual(result.numericValue, 15000 * 1024); assert.strictEqual(result.score, 0); }); }); diff --git a/lighthouse-core/test/audits/dobetterweb/dom-size-test.js b/lighthouse-core/test/audits/dobetterweb/dom-size-test.js index 152a6eb418bf..509568c443e2 100644 --- a/lighthouse-core/test/audits/dobetterweb/dom-size-test.js +++ b/lighthouse-core/test/audits/dobetterweb/dom-size-test.js @@ -24,7 +24,7 @@ describe('DOMSize audit', () => { it('calculates score hitting mid distribution', () => { const auditResult = DOMSize.audit(artifact, {options}); assert.equal(auditResult.score, 0.43); - assert.equal(auditResult.rawValue, numElements); + assert.equal(auditResult.numericValue, numElements); expect(auditResult.displayValue).toBeDisplayString('1,500 elements'); assert.equal(auditResult.details.items[0].value, numElements.toLocaleString()); assert.equal(auditResult.details.items[1].value, '1'); diff --git a/lighthouse-core/test/audits/errors-in-console-test.js b/lighthouse-core/test/audits/errors-in-console-test.js index 6382a9d465f9..482d52a0d0ad 100644 --- a/lighthouse-core/test/audits/errors-in-console-test.js +++ b/lighthouse-core/test/audits/errors-in-console-test.js @@ -16,7 +16,7 @@ describe('Console error logs audit', () => { ConsoleMessages: [], RuntimeExceptions: [], }); - assert.equal(auditResult.rawValue, 0); + assert.equal(auditResult.numericValue, 0); assert.equal(auditResult.score, 1); assert.ok(!auditResult.displayValue, 0); assert.equal(auditResult.details.items.length, 0); @@ -35,7 +35,7 @@ describe('Console error logs audit', () => { ], RuntimeExceptions: [], }); - assert.equal(auditResult.rawValue, 0); + assert.equal(auditResult.numericValue, 0); assert.equal(auditResult.score, 1); assert.equal(auditResult.details.items.length, 0); }); @@ -81,7 +81,7 @@ describe('Console error logs audit', () => { }], }); - assert.equal(auditResult.rawValue, 3); + assert.equal(auditResult.numericValue, 3); assert.equal(auditResult.score, 0); assert.equal(auditResult.details.items.length, 3); assert.equal(auditResult.details.items[0].url, 'http://www.example.com/favicon.ico'); @@ -107,7 +107,7 @@ describe('Console error logs audit', () => { ], RuntimeExceptions: [], }); - assert.equal(auditResult.rawValue, 1); + assert.equal(auditResult.numericValue, 1); assert.equal(auditResult.score, 0); assert.equal(auditResult.details.items.length, 1); // url is undefined @@ -138,7 +138,7 @@ describe('Console error logs audit', () => { }, }], }); - assert.equal(auditResult.rawValue, 1); + assert.equal(auditResult.numericValue, 1); assert.equal(auditResult.score, 0); assert.equal(auditResult.details.items.length, 1); assert.strictEqual(auditResult.details.items[0].url, 'http://example.com/fancybox.js'); diff --git a/lighthouse-core/test/audits/load-fast-enough-for-pwa-test.js b/lighthouse-core/test/audits/load-fast-enough-for-pwa-test.js index 90d2eceab73a..4b2ac5211c93 100644 --- a/lighthouse-core/test/audits/load-fast-enough-for-pwa-test.js +++ b/lighthouse-core/test/audits/load-fast-enough-for-pwa-test.js @@ -26,7 +26,7 @@ describe('PWA: load-fast-enough-for-pwa audit', () => { const settings = {throttlingMethod: 'devtools', throttling: mobileSlow4GThrottling}; return FastPWAAudit.audit(artifacts, {settings, computedCache: new Map()}).then(result => { assert.equal(result.score, true, 'fixture trace is not passing audit'); - assert.equal(result.rawValue, 1582.189); + assert.equal(result.numericValue, 1582.189); }); }); @@ -50,7 +50,7 @@ describe('PWA: load-fast-enough-for-pwa audit', () => { const settings = {throttlingMethod: 'devtools', throttling: mobileSlow4GThrottling}; return FastPWAAudit.audit(artifacts, {settings, computedCache: new Map()}).then(result => { assert.equal(result.score, false, 'not failing a long TTI value'); - assert.equal(result.rawValue, 15000); + assert.equal(result.numericValue, 15000); expect(result.displayValue).toBeDisplayString('Interactive at 15.0\xa0s'); assert.ok(result.explanation); }); @@ -64,7 +64,7 @@ describe('PWA: load-fast-enough-for-pwa audit', () => { const settings = {throttlingMethod: 'devtools', throttling: mobileSlow4GThrottling}; const result = await FastPWAAudit.audit(artifacts, {settings, computedCache: new Map()}); - assert.equal(Math.round(result.rawValue), 1582); + assert.equal(Math.round(result.numericValue), 1582); }); it('overrides with simulated result when throttling is modified', async () => { @@ -75,8 +75,8 @@ describe('PWA: load-fast-enough-for-pwa audit', () => { const settings = {throttlingMethod: 'provided', throttling: {rttMs: 40, throughput: 100000}}; const result = await FastPWAAudit.audit(artifacts, {settings, computedCache: new Map()}); - expect(result.rawValue).toBeGreaterThan(2000); // If not overridden this would be 1582 - expect(Math.round(result.rawValue)).toMatchSnapshot(); + expect(result.numericValue).toBeGreaterThan(2000); // If not overridden this would be 1582 + expect(Math.round(result.numericValue)).toMatchSnapshot(); }); it('overrides when throttling is modified but method is not "provided"', async () => { @@ -87,7 +87,7 @@ describe('PWA: load-fast-enough-for-pwa audit', () => { const settings = {throttlingMethod: 'devtools', throttling: {rttMs: 40, throughput: 100000}}; const result = await FastPWAAudit.audit(artifacts, {settings, computedCache: new Map()}); - expect(result.rawValue).toBeGreaterThan(2000); // If not overridden this would be 1582 + expect(result.numericValue).toBeGreaterThan(2000); // If not overridden this would be 1582 }); it('overrides when throttling is "provided" and fails the simulated TTI value', async () => { @@ -110,6 +110,6 @@ describe('PWA: load-fast-enough-for-pwa audit', () => { const result = await FastPWAAudit.audit(artifacts, {settings, computedCache: new Map()}); expect(result.displayValue) .toBeDisplayString('Interactive on simulated mobile network at 24.9\xa0s'); - expect(result.rawValue).toBeGreaterThan(10000); + expect(result.numericValue).toBeGreaterThan(10000); }); }); diff --git a/lighthouse-core/test/audits/mainthread-work-breakdown-test.js b/lighthouse-core/test/audits/mainthread-work-breakdown-test.js index 4710b4ac19a9..e3f5e473df12 100644 --- a/lighthouse-core/test/audits/mainthread-work-breakdown-test.js +++ b/lighthouse-core/test/audits/mainthread-work-breakdown-test.js @@ -56,7 +56,7 @@ describe('Performance: page execution timings audit', () => { const output = await PageExecutionTimings.audit(artifacts, {options, computedCache: new Map()}); assert.deepStrictEqual(keyOutput(output), acceptableTraceExpectations); - assert.equal(Math.round(output.rawValue), 1360); + assert.equal(Math.round(output.numericValue), 1360); assert.equal(output.details.items.length, 7); assert.equal(output.score, 0.98); }); @@ -75,7 +75,7 @@ describe('Performance: page execution timings audit', () => { assert.ok(Math.abs(actual - expected) <= 2, `expected ${expected} got ${actual}`); } - assert.equal(Math.round(output.rawValue), 4081); + assert.equal(Math.round(output.numericValue), 4081); assert.equal(output.details.items.length, 7); assert.equal(output.score, 0.49); }); @@ -85,7 +85,7 @@ describe('Performance: page execution timings audit', () => { const output = await PageExecutionTimings.audit(artifacts, {options, computedCache: new Map()}); assert.deepStrictEqual(keyOutput(output), siteWithRedirectTraceExpectations); - assert.equal(Math.round(output.rawValue), 784); + assert.equal(Math.round(output.numericValue), 784); assert.equal(output.details.items.length, 7); assert.equal(output.score, 1); }); @@ -95,7 +95,7 @@ describe('Performance: page execution timings audit', () => { const output = await PageExecutionTimings.audit(artifacts, {options, computedCache: new Map()}); assert.deepStrictEqual(keyOutput(output), loadTraceExpectations); - assert.equal(Math.round(output.rawValue), 933); + assert.equal(Math.round(output.numericValue), 933); assert.equal(output.details.items.length, 6); assert.equal(output.score, 1); }); @@ -107,7 +107,7 @@ describe('Performance: page execution timings audit', () => { return PageExecutionTimings.audit(artifacts, context).then(output => { assert.equal(output.details.items.length, 0); assert.equal(output.score, 1); - assert.equal(Math.round(output.rawValue), 0); + assert.equal(Math.round(output.numericValue), 0); }); }); }); diff --git a/lighthouse-core/test/audits/metrics/__snapshots__/first-meaningful-paint-test.js.snap b/lighthouse-core/test/audits/metrics/__snapshots__/first-meaningful-paint-test.js.snap index 4ca3dd6f735d..ab837653f4a0 100644 --- a/lighthouse-core/test/audits/metrics/__snapshots__/first-meaningful-paint-test.js.snap +++ b/lighthouse-core/test/audits/metrics/__snapshots__/first-meaningful-paint-test.js.snap @@ -2,7 +2,7 @@ exports[`Performance: first-meaningful-paint audit computes FMP correctly for simulated 1`] = ` Object { - "rawValue": 1510.6100000208241, + "numericValue": 1510.6100000208241, "score": 0.99, } `; diff --git a/lighthouse-core/test/audits/metrics/estimated-input-latency-test.js b/lighthouse-core/test/audits/metrics/estimated-input-latency-test.js index f52772738469..d51d9e04339c 100644 --- a/lighthouse-core/test/audits/metrics/estimated-input-latency-test.js +++ b/lighthouse-core/test/audits/metrics/estimated-input-latency-test.js @@ -25,7 +25,7 @@ describe('Performance: estimated-input-latency audit', () => { const settings = {throttlingMethod: 'provided'}; const context = {options, settings, computedCache: new Map()}; return Audit.audit(artifacts, context).then(output => { - assert.equal(Math.round(output.rawValue * 10) / 10, 17.1); + assert.equal(Math.round(output.numericValue * 10) / 10, 17.1); assert.equal(output.score, 1); expect(output.displayValue).toBeDisplayString('20\xa0ms'); }); diff --git a/lighthouse-core/test/audits/metrics/first-contentful-paint-3g-test.js b/lighthouse-core/test/audits/metrics/first-contentful-paint-3g-test.js index b231a304d4ba..120d29287954 100644 --- a/lighthouse-core/test/audits/metrics/first-contentful-paint-3g-test.js +++ b/lighthouse-core/test/audits/metrics/first-contentful-paint-3g-test.js @@ -26,7 +26,7 @@ describe('Performance: first-contentful-paint-3g audit', () => { const result = await FCP3G.audit(artifacts, {settings: {}, options, computedCache: new Map()}); // Use InlineSnapshot here so changes to Lantern coefficients can be easily updated en masse - expect({score: result.score, value: Math.round(result.rawValue)}).toMatchInlineSnapshot(` + expect({score: result.score, value: Math.round(result.numericValue)}).toMatchInlineSnapshot(` Object { "score": 0.99, "value": 2057, diff --git a/lighthouse-core/test/audits/metrics/first-contentful-paint-test.js b/lighthouse-core/test/audits/metrics/first-contentful-paint-test.js index ee3ee168cfff..7be3496bb689 100644 --- a/lighthouse-core/test/audits/metrics/first-contentful-paint-test.js +++ b/lighthouse-core/test/audits/metrics/first-contentful-paint-test.js @@ -27,6 +27,6 @@ describe('Performance: first-contentful-paint audit', () => { const settings = {throttlingMethod: 'provided'}; const result = await Audit.audit(artifacts, {settings, options, computedCache: new Map()}); assert.equal(result.score, 1); - assert.equal(result.rawValue, 498.87); + assert.equal(result.numericValue, 498.87); }); }); diff --git a/lighthouse-core/test/audits/metrics/first-meaningful-paint-test.js b/lighthouse-core/test/audits/metrics/first-meaningful-paint-test.js index b3862b65cb20..61a416e720b6 100644 --- a/lighthouse-core/test/audits/metrics/first-meaningful-paint-test.js +++ b/lighthouse-core/test/audits/metrics/first-meaningful-paint-test.js @@ -23,7 +23,7 @@ describe('Performance: first-meaningful-paint audit', () => { const fmpResult = await FMPAudit.audit(artifacts, context); assert.equal(fmpResult.score, 1); - assert.equal(fmpResult.rawValue, 783.328); + assert.equal(fmpResult.numericValue, 783.328); expect(fmpResult.displayValue).toBeDisplayString('0.8\xa0s'); }); @@ -37,7 +37,7 @@ describe('Performance: first-meaningful-paint audit', () => { expect({ score: fmpResult.score, - rawValue: fmpResult.rawValue, + numericValue: fmpResult.numericValue, }).toMatchSnapshot(); }); }); diff --git a/lighthouse-core/test/audits/metrics/interactive-test.js b/lighthouse-core/test/audits/metrics/interactive-test.js index 20fcef2131d2..40efb636e019 100644 --- a/lighthouse-core/test/audits/metrics/interactive-test.js +++ b/lighthouse-core/test/audits/metrics/interactive-test.js @@ -32,7 +32,7 @@ describe('Performance: interactive audit', () => { const context = {options, settings: {throttlingMethod: 'provided'}, computedCache: new Map()}; return Interactive.audit(artifacts, context).then(output => { assert.equal(output.score, 1); - assert.equal(Math.round(output.rawValue), 1582); + assert.equal(Math.round(output.numericValue), 1582); expect(output.displayValue).toBeDisplayString('1.6\xa0s'); }); }); @@ -50,7 +50,7 @@ describe('Performance: interactive audit', () => { const context = {options, settings: {throttlingMethod: 'provided'}, computedCache: new Map()}; return Interactive.audit(artifacts, context).then(output => { assert.equal(output.score, 0.97); - assert.equal(Math.round(output.rawValue), 2712); + assert.equal(Math.round(output.numericValue), 2712); expect(output.displayValue).toBeDisplayString('2.7\xa0s'); }); }); diff --git a/lighthouse-core/test/audits/metrics/speed-index-test.js b/lighthouse-core/test/audits/metrics/speed-index-test.js index 199485036e91..48d6e7a91b61 100644 --- a/lighthouse-core/test/audits/metrics/speed-index-test.js +++ b/lighthouse-core/test/audits/metrics/speed-index-test.js @@ -24,7 +24,7 @@ describe('Performance: speed-index audit', () => { const settings = {throttlingMethod: 'provided'}; return Audit.audit(artifacts, {options, settings, computedCache: new Map()}).then(result => { assert.equal(result.score, 1); - assert.equal(result.rawValue, 605); + assert.equal(result.numericValue, 605); }); }, 10000); }); diff --git a/lighthouse-core/test/audits/network-requests-test.js b/lighthouse-core/test/audits/network-requests-test.js index 6703d78e7299..da967a2f5638 100644 --- a/lighthouse-core/test/audits/network-requests-test.js +++ b/lighthouse-core/test/audits/network-requests-test.js @@ -22,7 +22,7 @@ describe('Network requests audit', () => { return NetworkRequests.audit(artifacts, {computedCache: new Map()}).then(output => { assert.equal(output.score, 1); - assert.equal(output.rawValue, 66); + assert.equal(output.numericValue, 66); assert.equal(output.details.items.length, 66); assert.equal(output.details.items[0].url, 'https://pwa.rocks/'); assert.equal(output.details.items[0].startTime, 0); diff --git a/lighthouse-core/test/audits/redirects-test.js b/lighthouse-core/test/audits/redirects-test.js index 1bc6ded0ea65..94dfec03e5d6 100644 --- a/lighthouse-core/test/audits/redirects-test.js +++ b/lighthouse-core/test/audits/redirects-test.js @@ -97,7 +97,7 @@ describe('Performance: Redirects audit', () => { return RedirectsAudit.audit(artifacts, context).then(output => { assert.equal(Math.round(output.score * 100) / 100, 0.37); assert.equal(output.details.items.length, 4); - assert.equal(output.rawValue, 1890); + assert.equal(output.numericValue, 1890); }); }); @@ -107,7 +107,7 @@ describe('Performance: Redirects audit', () => { return RedirectsAudit.audit(artifacts, context).then(output => { assert.equal(Math.round(output.score * 100) / 100, 0.46); assert.equal(output.details.items.length, 3); - assert.equal(Math.round(output.rawValue), 1110); + assert.equal(Math.round(output.numericValue), 1110); }); }); @@ -119,7 +119,7 @@ describe('Performance: Redirects audit', () => { assert.equal(output.score, 1); // We will still generate a table and show wasted time assert.equal(output.details.items.length, 2); - assert.equal(Math.round(output.rawValue), 780); + assert.equal(Math.round(output.numericValue), 780); }); }); @@ -129,7 +129,7 @@ describe('Performance: Redirects audit', () => { return RedirectsAudit.audit(artifacts, context).then(output => { assert.equal(output.score, 1); assert.equal(output.details.items.length, 0); - assert.equal(output.rawValue, 0); + assert.equal(output.numericValue, 0); }); }); }); diff --git a/lighthouse-core/test/audits/time-to-first-byte-test.js b/lighthouse-core/test/audits/time-to-first-byte-test.js index c0c8abd73c04..97b50ac17f6a 100644 --- a/lighthouse-core/test/audits/time-to-first-byte-test.js +++ b/lighthouse-core/test/audits/time-to-first-byte-test.js @@ -25,7 +25,7 @@ describe('Performance: time-to-first-byte audit', () => { }; return TimeToFirstByte.audit(artifacts, {computedCache: new Map()}).then(result => { - assert.strictEqual(result.rawValue, 630); + assert.strictEqual(result.numericValue, 630); assert.strictEqual(result.score, 0); }); }); @@ -44,7 +44,7 @@ describe('Performance: time-to-first-byte audit', () => { }; return TimeToFirstByte.audit(artifacts, {computedCache: new Map()}).then(result => { - assert.strictEqual(result.rawValue, 200); + assert.strictEqual(result.numericValue, 200); assert.strictEqual(result.score, 1); }); }); diff --git a/lighthouse-core/test/audits/uses-rel-preconnect-test.js b/lighthouse-core/test/audits/uses-rel-preconnect-test.js index 957e52508a50..07322ce44339 100644 --- a/lighthouse-core/test/audits/uses-rel-preconnect-test.js +++ b/lighthouse-core/test/audits/uses-rel-preconnect-test.js @@ -36,9 +36,9 @@ describe('Performance: uses-rel-preconnect audit', () => { }; const context = {settings: {}, computedCache: new Map()}; - const {score, rawValue, details} = await UsesRelPreconnect.audit(artifacts, context); + const {score, numericValue, details} = await UsesRelPreconnect.audit(artifacts, context); assert.equal(score, 1); - assert.equal(rawValue, 0); + assert.equal(numericValue, 0); assert.equal(details.items.length, 0); }); @@ -61,9 +61,9 @@ describe('Performance: uses-rel-preconnect audit', () => { }; const context = {settings: {}, computedCache: new Map()}; - const {score, rawValue, details} = await UsesRelPreconnect.audit(artifacts, context); + const {score, numericValue, details} = await UsesRelPreconnect.audit(artifacts, context); assert.equal(score, 1); - assert.equal(rawValue, 0); + assert.equal(numericValue, 0); assert.equal(details.items.length, 0); }); @@ -83,9 +83,9 @@ describe('Performance: uses-rel-preconnect audit', () => { }; const context = {settings: {}, computedCache: new Map()}; - const {score, rawValue, details} = await UsesRelPreconnect.audit(artifacts, context); + const {score, numericValue, details} = await UsesRelPreconnect.audit(artifacts, context); assert.equal(score, 1); - assert.equal(rawValue, 0); + assert.equal(numericValue, 0); assert.equal(details.items.length, 0); }); @@ -111,9 +111,9 @@ describe('Performance: uses-rel-preconnect audit', () => { }; const context = {settings: {}, computedCache: new Map()}; - const {score, rawValue, details} = await UsesRelPreconnect.audit(artifacts, context); + const {score, numericValue, details} = await UsesRelPreconnect.audit(artifacts, context); assert.equal(score, 1); - assert.equal(rawValue, 0); + assert.equal(numericValue, 0); assert.equal(details.items.length, 0); }); @@ -134,9 +134,9 @@ describe('Performance: uses-rel-preconnect audit', () => { }; const context = {settings: {}, computedCache: new Map()}; - const {score, rawValue, details} = await UsesRelPreconnect.audit(artifacts, context); + const {score, numericValue, details} = await UsesRelPreconnect.audit(artifacts, context); assert.equal(score, 1); - assert.equal(rawValue, 0); + assert.equal(numericValue, 0); assert.equal(details.items.length, 0); }); @@ -201,8 +201,8 @@ describe('Performance: uses-rel-preconnect audit', () => { }; const context = {settings: {}, computedCache: new Map()}; - const {rawValue, extendedInfo} = await UsesRelPreconnect.audit(artifacts, context); - assert.equal(rawValue, 300); + const {numericValue, extendedInfo} = await UsesRelPreconnect.audit(artifacts, context); + assert.equal(numericValue, 300); assert.equal(extendedInfo.value.length, 1); assert.deepStrictEqual(extendedInfo.value, [ {url: 'https://cdn.example.com', wastedMs: 300}, @@ -242,8 +242,8 @@ describe('Performance: uses-rel-preconnect audit', () => { }; const context = {settings: {}, computedCache: new Map()}; - const {rawValue, extendedInfo} = await UsesRelPreconnect.audit(artifacts, context); - assert.equal(rawValue, 300); + const {numericValue, extendedInfo} = await UsesRelPreconnect.audit(artifacts, context); + assert.equal(numericValue, 300); assert.equal(extendedInfo.value.length, 2); assert.deepStrictEqual(extendedInfo.value, [ {url: 'https://othercdn.example.com', wastedMs: 300}, diff --git a/lighthouse-core/test/audits/uses-rel-preload-test.js b/lighthouse-core/test/audits/uses-rel-preload-test.js index 6765a7370a31..c97fb5a78ebf 100644 --- a/lighthouse-core/test/audits/uses-rel-preload-test.js +++ b/lighthouse-core/test/audits/uses-rel-preload-test.js @@ -205,7 +205,7 @@ describe('Performance: uses-rel-preload audit', () => { const artifacts = mockArtifacts(networkRecords, defaultMainResourceUrl); const context = {settings: {}, computedCache: new Map()}; return UsesRelPreload.audit(artifacts, context).then(output => { - assert.equal(output.rawValue, 0); + assert.equal(output.numericValue, 0); assert.equal(output.details.items.length, 0); }); }); @@ -217,7 +217,7 @@ describe('Performance: uses-rel-preload audit', () => { const artifacts = mockArtifacts(networkRecords, defaultMainResourceUrl); const context = {settings: {}, computedCache: new Map()}; return UsesRelPreload.audit(artifacts, context).then(output => { - assert.equal(output.rawValue, 0); + assert.equal(output.numericValue, 0); assert.equal(output.details.items.length, 0); }); }); @@ -237,6 +237,6 @@ describe('Performance: uses-rel-preload audit', () => { const context = {settings, computedCache: new Map()}; const result = await UsesRelPreload.audit(artifacts, context); assert.equal(result.score, 1); - assert.equal(result.rawValue, 0); + assert.equal(result.numericValue, 0); }); }); diff --git a/lighthouse-core/test/results/sample_v2.json b/lighthouse-core/test/results/sample_v2.json index a7548037f761..fe569c1817b5 100644 --- a/lighthouse-core/test/results/sample_v2.json +++ b/lighthouse-core/test/results/sample_v2.json @@ -791,7 +791,6 @@ "description": "Collection of useful page vitals.", "score": null, "scoreDisplayMode": "informative", - "numericValue": 1, "details": { "type": "debugdata", "items": [ diff --git a/proto/sample_v2_round_trip.json b/proto/sample_v2_round_trip.json index 215f93705029..3b4f7721483d 100644 --- a/proto/sample_v2_round_trip.json +++ b/proto/sample_v2_round_trip.json @@ -461,7 +461,6 @@ "type": "debugdata" }, "id": "diagnostics", - "numericValue": 1.0, "score": null, "scoreDisplayMode": "informative", "title": "Diagnostics" diff --git a/types/audit.d.ts b/types/audit.d.ts index 9be3f533d392..05ecf3d85fc1 100644 --- a/types/audit.d.ts +++ b/types/audit.d.ts @@ -81,7 +81,7 @@ declare global { /** Overrides scoreDisplayMode with notApplicable if set to true */ notApplicable?: boolean; /** A numeric value that has a meaning specific to the audit, e.g. the number of nodes in the DOM or the timestamp of a specific load event. More information can be found in the audit details, if present. */ - rawValue?: number; + numericValue?: number; /** Extra information about the page provided by some types of audits, in one of several possible forms that can be rendered in the HTML report. */ details?: Audit.Details; }