lighthouse 9.1.0-dev.20211202 → 9.1.0-dev.20211206

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,124 @@
1
+ /**
2
+ * @license Copyright 2019 The Lighthouse Authors. All Rights Reserved.
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4
+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
+ */
6
+ 'use strict';
7
+
8
+ import a11y from './test-definitions/a11y.js';
9
+ import byteEfficiency from './test-definitions/byte-efficiency.js';
10
+ import byteGzip from './test-definitions/byte-gzip.js';
11
+ import cspAllowAll from './test-definitions/csp-allow-all.js';
12
+ import cspBlockAll from './test-definitions/csp-block-all.js';
13
+ import cspBlockAllM91 from './test-definitions/csp-block-all-m91.js';
14
+ import dbw from './test-definitions/dobetterweb.js';
15
+ import errorsExpiredSsl from './test-definitions/errors-expired-ssl.js';
16
+ import errorsIframeExpiredSsl from './test-definitions/errors-iframe-expired-ssl.js';
17
+ import errorsInfiniteLoop from './test-definitions/errors-infinite-loop.js';
18
+ // import formsAutoComplete from './test-definitions/forms-autocomplete.js';
19
+ import issuesMixedContent from './test-definitions/issues-mixed-content.js';
20
+ import lanternFetch from './test-definitions/lantern-fetch.js';
21
+ import lanternIdleCallbackLong from './test-definitions/lantern-idle-callback-long.js';
22
+ import lanternIdleCallbackShort from './test-definitions/lantern-idle-callback-short.js';
23
+ import lanternOnline from './test-definitions/lantern-online.js';
24
+ import lanternSetTimeout from './test-definitions/lantern-set-timeout.js';
25
+ import lanternXhr from './test-definitions/lantern-xhr.js';
26
+ import legacyJavascript from './test-definitions/legacy-javascript.js';
27
+ import metricsDebugger from './test-definitions/metrics-debugger.js';
28
+ import metricsDelayedFcp from './test-definitions/metrics-delayed-fcp.js';
29
+ import metricsDelayedLcp from './test-definitions/metrics-delayed-lcp.js';
30
+ import metricsTrickyTti from './test-definitions/metrics-tricky-tti.js';
31
+ import metricsTrickyTtiLateFcp from './test-definitions/metrics-tricky-tti-late-fcp.js';
32
+ import offlineOnlineOnly from './test-definitions/offline-online-only.js';
33
+ import offlineReady from './test-definitions/offline-ready.js';
34
+ import offlineSwBroken from './test-definitions/offline-sw-broken.js';
35
+ import offlineSwSlow from './test-definitions/offline-sw-slow.js';
36
+ import oopifRequests from './test-definitions/oopif-requests.js';
37
+ import perfBudgets from './test-definitions/perf-budgets.js';
38
+ import perfDebug from './test-definitions/perf-debug.js';
39
+ import perfDiagnosticsAnimations from './test-definitions/perf-diagnostics-animations.js';
40
+ import perfDiagnosticsThirdParty from './test-definitions/perf-diagnostics-third-party.js';
41
+ import perfDiagnosticsUnsizedImages from './test-definitions/perf-diagnostics-unsized-images.js';
42
+ import perfFonts from './test-definitions/perf-fonts.js';
43
+ import perfFrameMetrics from './test-definitions/perf-frame-metrics.js';
44
+ import perfPreload from './test-definitions/perf-preload.js';
45
+ import perfTraceElements from './test-definitions/perf-trace-elements.js';
46
+ import pubads from './test-definitions/pubads.js';
47
+ import pwaAirhorner from './test-definitions/pwa-airhorner.js';
48
+ import pwaCaltrain from './test-definitions/pwa-caltrain.js';
49
+ import pwaChromestatus from './test-definitions/pwa-chromestatus.js';
50
+ import pwaRocks from './test-definitions/pwa-rocks.js';
51
+ import pwaSvgomg from './test-definitions/pwa-svgomg.js';
52
+ import redirectsClientPaintServer from './test-definitions/redirects-client-paint-server.js';
53
+ import redirectsHistoryPushState from './test-definitions/redirects-history-push-state.js';
54
+ import redirectsMultipleServer from './test-definitions/redirects-multiple-server.js';
55
+ import redirectsSingleClient from './test-definitions/redirects-single-client.js';
56
+ import redirectsSingleServer from './test-definitions/redirects-single-server.js';
57
+ import screenshot from './test-definitions/screenshot.js';
58
+ import seoFailing from './test-definitions/seo-failing.js';
59
+ import seoPassing from './test-definitions/seo-passing.js';
60
+ import seoStatus403 from './test-definitions/seo-status-403.js';
61
+ import seoTapTargets from './test-definitions/seo-tap-targets.js';
62
+ import sourceMaps from './test-definitions/source-maps.js';
63
+
64
+ /** @type {ReadonlyArray<Smokehouse.TestDfn>} */
65
+ const smokeTests = [
66
+ a11y,
67
+ byteEfficiency,
68
+ byteGzip,
69
+ cspAllowAll,
70
+ cspBlockAll,
71
+ cspBlockAllM91,
72
+ dbw,
73
+ errorsExpiredSsl,
74
+ errorsIframeExpiredSsl,
75
+ errorsInfiniteLoop,
76
+ // TODO: restore when --enable-features=AutofillShowTypePredictions is not needed.
77
+ // formsAutoComplete,
78
+ issuesMixedContent,
79
+ lanternOnline,
80
+ lanternSetTimeout,
81
+ lanternFetch,
82
+ lanternXhr,
83
+ lanternIdleCallbackShort,
84
+ lanternIdleCallbackLong,
85
+ legacyJavascript,
86
+ metricsDebugger,
87
+ metricsDelayedFcp,
88
+ metricsDelayedLcp,
89
+ metricsTrickyTtiLateFcp,
90
+ metricsTrickyTti,
91
+ offlineOnlineOnly,
92
+ offlineReady,
93
+ offlineSwBroken,
94
+ offlineSwSlow,
95
+ oopifRequests,
96
+ perfBudgets,
97
+ perfDebug,
98
+ perfDiagnosticsAnimations,
99
+ perfDiagnosticsThirdParty,
100
+ perfDiagnosticsUnsizedImages,
101
+ perfFonts,
102
+ perfFrameMetrics,
103
+ perfPreload,
104
+ perfTraceElements,
105
+ pubads,
106
+ pwaAirhorner,
107
+ pwaChromestatus,
108
+ pwaSvgomg,
109
+ pwaCaltrain,
110
+ pwaRocks,
111
+ redirectsClientPaintServer,
112
+ redirectsHistoryPushState,
113
+ redirectsMultipleServer,
114
+ redirectsSingleClient,
115
+ redirectsSingleServer,
116
+ screenshot,
117
+ seoFailing,
118
+ seoPassing,
119
+ seoStatus403,
120
+ seoTapTargets,
121
+ sourceMaps,
122
+ ];
123
+
124
+ export default smokeTests;
@@ -15,7 +15,7 @@
15
15
 
16
16
  import cloneDeep from 'lodash.clonedeep';
17
17
 
18
- import smokeTests from '../test-definitions/core-tests.js';
18
+ import smokeTests from '../core-tests.js';
19
19
  import {runSmokehouse, getShardedDefinitions} from '../smokehouse.js';
20
20
 
21
21
  /**
@@ -27,7 +27,7 @@ import {updateTestDefnFormat} from './back-compat-util.js';
27
27
  import {LH_ROOT} from '../../../../root.js';
28
28
 
29
29
  const coreTestDefnsPath =
30
- path.join(LH_ROOT, 'lighthouse-cli/test/smokehouse/test-definitions/core-tests.js');
30
+ path.join(LH_ROOT, 'lighthouse-cli/test/smokehouse/core-tests.js');
31
31
 
32
32
  /**
33
33
  * Possible Lighthouse runners. Loaded dynamically so e.g. a CLI run isn't
@@ -2,7 +2,7 @@
2
2
 
3
3
  Smokehouse is the Lighthouse end-to-end/smoke test runner. It takes in a set of URLs (usually pointing to custom-built test sites), runs Lighthouse on them, and compares the results against a set of expectations.
4
4
 
5
- By default this is done using the Lighthouse CLI (to exercise the full pipeline) with the tests listed in [`smokehouse/test-definitions/core-tests.js`](./test-definitions/core-tests.js).
5
+ By default this is done using the Lighthouse CLI (to exercise the full pipeline) with the tests listed in [`smokehouse/core-tests.js`](./core-tests.js).
6
6
 
7
7
  ## Options
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lighthouse",
3
- "version": "9.1.0-dev.20211202",
3
+ "version": "9.1.0-dev.20211206",
4
4
  "description": "Automated auditing, performance metrics, and best practices for the web.",
5
5
  "main": "./lighthouse-core/index.js",
6
6
  "bin": {