Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(without-javascript): remove audit #11711

Merged
merged 22 commits into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions lighthouse-cli/test/cli/__snapshots__/index-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ Object {
Object {
"path": "viewport",
},
Object {
"path": "without-javascript",
},
Object {
"path": "metrics/first-contentful-paint",
},
Expand Down Expand Up @@ -1149,11 +1146,6 @@ Object {
"id": "viewport",
"weight": 2,
},
Object {
"group": "pwa-optimized",
"id": "without-javascript",
"weight": 1,
},
Object {
"group": "pwa-optimized",
"id": "apple-touch-icon",
Expand Down Expand Up @@ -1488,9 +1480,6 @@ Object {
Object {
"path": "http-redirect",
},
Object {
"path": "html-without-javascript",
},
],
"loadFailureMode": "warn",
"networkQuietThresholdMs": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = {
'service-worker',
'works-offline',
'viewport',
'without-javascript',
'user-timings',
'critical-request-chains',
'render-blocking-resources',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ module.exports = [
'viewport': {
score: 1,
},
'without-javascript': {
score: 1,
},
'user-timings': {
scoreDisplayMode: 'notApplicable',
},
Expand Down Expand Up @@ -135,9 +132,6 @@ module.exports = [
'viewport': {
score: 1,
},
'without-javascript': {
score: 1,
},
'user-timings': {
scoreDisplayMode: 'notApplicable',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ const expectations = [
'viewport': {
score: 1,
},
'without-javascript': {
score: 1,
},
'load-fast-enough-for-pwa': {
// Ignore speed test; just verify that it ran.
},
Expand Down Expand Up @@ -101,9 +98,6 @@ const expectations = [
'viewport': {
score: 1,
},
'without-javascript': {
score: 1,
},
'load-fast-enough-for-pwa': {
// Ignore speed test; just verify that it ran.
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ module.exports = [
score: 1,
},
'redirects-http': {
// Note: relies on JS redirect.
// see https://github.com/GoogleChrome/lighthouse/issues/2383
score: 0,
score: 1,
},
'service-worker': {
score: 1,
Expand All @@ -39,9 +37,6 @@ module.exports = [
'viewport': {
score: 1,
},
'without-javascript': {
score: 1,
},
'load-fast-enough-for-pwa': {
// Ignore speed test; just verify that it ran.
},
Expand Down Expand Up @@ -82,6 +77,9 @@ module.exports = [
scoreDisplayMode: 'manual',
},
},
runWarnings: {
length: 1,
},
Beytoven marked this conversation as resolved.
Show resolved Hide resolved
},
},

Expand All @@ -108,9 +106,6 @@ module.exports = [
'viewport': {
score: 1,
},
'without-javascript': {
score: 1,
},
'load-fast-enough-for-pwa': {
// Ignore speed test; just verify that it ran.
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ module.exports = [
'viewport': {
score: 1,
},
'without-javascript': {
score: 1,
},
'load-fast-enough-for-pwa': {
// Ignore speed test; just verify that it ran .
},
Expand Down
62 changes: 0 additions & 62 deletions lighthouse-core/audits/without-javascript.js

This file was deleted.

3 changes: 0 additions & 3 deletions lighthouse-core/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ const defaultConfig = {
blockedUrlPatterns: ['*.css', '*.jpg', '*.jpeg', '*.png', '*.gif', '*.svg', '*.ttf', '*.woff', '*.woff2'],
gatherers: [
'http-redirect',
'html-without-javascript',
],
}],
audits: [
Expand All @@ -191,7 +190,6 @@ const defaultConfig = {
'service-worker',
'works-offline',
'viewport',
'without-javascript',
'metrics/first-contentful-paint',
'metrics/largest-contentful-paint',
'metrics/first-meaningful-paint',
Expand Down Expand Up @@ -622,7 +620,6 @@ const defaultConfig = {
{id: 'themed-omnibox', weight: 1, group: 'pwa-optimized'},
{id: 'content-width', weight: 1, group: 'pwa-optimized'},
{id: 'viewport', weight: 2, group: 'pwa-optimized'},
{id: 'without-javascript', weight: 1, group: 'pwa-optimized'},
{id: 'apple-touch-icon', weight: 1, group: 'pwa-optimized'},
{id: 'maskable-icon', weight: 1, group: 'pwa-optimized'},
// Manual audits
Expand Down
2 changes: 0 additions & 2 deletions lighthouse-core/gather/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,6 @@ class Driver {
const waitForLoad = options.waitForLoad || false;
/** @type {Partial<LH.Gatherer.PassContext>} */
const passContext = options.passContext || {};
const disableJS = passContext.disableJavaScript || false;
Beytoven marked this conversation as resolved.
Show resolved Hide resolved

if (waitForNavigated && (waitForFcp || waitForLoad)) {
throw new Error('Cannot use both waitForNavigated and another event, pick just one');
Expand All @@ -701,7 +700,6 @@ class Driver {

await this.sendCommand('Page.enable');
await this.sendCommand('Page.setLifecycleEventsEnabled', {enabled: true});
await this.sendCommand('Emulation.setScriptExecutionDisabled', {value: disableJS});
// No timeout needed for Page.navigate. See https://github.com/GoogleChrome/lighthouse/pull/6413.
const waitforPageNavigateCmd = this._innerSendCommand('Page.navigate', undefined, {url});

Expand Down
56 changes: 0 additions & 56 deletions lighthouse-core/gather/gatherers/html-without-javascript.js

This file was deleted.

12 changes: 0 additions & 12 deletions lighthouse-core/lib/i18n/locales/ar-XB.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions lighthouse-core/lib/i18n/locales/ar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions lighthouse-core/lib/i18n/locales/bg.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions lighthouse-core/lib/i18n/locales/ca.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions lighthouse-core/lib/i18n/locales/cs.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading