Skip to content

Commit 231c0d7

Browse files
committed
Change the printWidth configuration to 120 characters
Fixes #370
1 parent 572701f commit 231c0d7

File tree

88 files changed

+1777
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1777
-502
lines changed

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"printWidth": 250,
2+
"printWidth": 120,
33
"tabWidth": 4
44
}

about.html

+92-37
Large diffs are not rendered by default.

index.html

+31-8
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@
1616
<div class="version">3.0</div>
1717
</a>
1818
<div class="content">
19-
<p>Speedometer is a browser benchmark that measures the responsiveness of Web applications. It uses demo web applications to simulate user actions such as adding to-do items.</p>
19+
<p>
20+
Speedometer is a browser benchmark that measures the responsiveness of Web applications. It uses
21+
demo web applications to simulate user actions such as adding to-do items.
22+
</p>
2023
<p id="screen-size-warning">
2124
<strong>
22-
Your browser window is too small. For most accurate results, please make the view port size at least <span id="min-screen-width">850px</span> by <span id="min-screen-height">650px</span>.<br />
25+
Your browser window is too small. For most accurate results, please make the view port size
26+
at least <span id="min-screen-width">850px</span> by
27+
<span id="min-screen-height">650px</span>.<br />
2328
It's currently <span id="screen-size"></span>.
2429
</strong>
2530
</p>
@@ -64,7 +69,9 @@ <h1>Score</h1>
6469
<div id="confidence-number"></div>
6570
<div class="buttons">
6671
<div class="button-row">
67-
<a class="button" href="#details" id="show-details" title="Show detailed results data.">Details</a>
72+
<a class="button" href="#details" id="show-details" title="Show detailed results data."
73+
>Details</a
74+
>
6875
</div>
6976
</div>
7077
</section>
@@ -89,13 +96,29 @@ <h2>Detailed Metrics</h2>
8996
</div>
9097
<div class="buttons section-footer">
9198
<div class="button-row">
92-
<a class="button" href="#summary" title="Go back to the simplified summary view.">Summary</a>
99+
<a class="button" href="#summary" title="Go back to the simplified summary view."
100+
>Summary</a
101+
>
93102
</div>
94103
<div class="button-row export-buttons">
95-
<button id="copy-full-json" title="Copy full result metrics as json string.">Copy JSON</button>
96-
<a class="button" id="download-full-json" title="Download full result metrics as json string.">Download JSON</a>
97-
<a class="button" id="download-classic-json" title="Download backwards-compatible result metrics as json string.">Download Classic JSON</a>
98-
<a class="button" id="download-csv" title="Download all result metrics as CSV string.">Download CSV</a>
104+
<button id="copy-full-json" title="Copy full result metrics as json string.">
105+
Copy JSON
106+
</button>
107+
<a
108+
class="button"
109+
id="download-full-json"
110+
title="Download full result metrics as json string."
111+
>Download JSON</a
112+
>
113+
<a
114+
class="button"
115+
id="download-classic-json"
116+
title="Download backwards-compatible result metrics as json string."
117+
>Download Classic JSON</a
118+
>
119+
<a class="button" id="download-csv" title="Download all result metrics as CSV string."
120+
>Download CSV</a
121+
>
99122
<button id="copy-csv" title="Copy all result metrics as CSV string.">Copy CSV</button>
100123
</div>
101124
</div>

instructions.html

+12-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,22 @@
1818
<div class="section-grid">
1919
<h1 class="section-header">Speedometer 3 General Instructions</h1>
2020
<div class="section-content">
21-
<p>To get reasonably accurate results your device and browser need to be focused on the benchmark. Here are some basic instructions to allow that:</p>
21+
<p>
22+
To get reasonably accurate results your device and browser need to be focused on the
23+
benchmark. Here are some basic instructions to allow that:
24+
</p>
2225
<ul class="compact">
2326
<li>Ensure you are running the latest stable browser version.</li>
24-
<li>Prefer using a separate clean browser profile — extensions and non-default browser settings can have a large impact on the score.</li>
27+
<li>
28+
Prefer using a separate clean browser profile — extensions and non-default browser
29+
settings can have a large impact on the score.
30+
</li>
2531
<li>Don't run any programs in the background.</li>
2632
<li>Restart the browser and close all other tabs and windows.</li>
27-
<li>Keep the Speedometer page focused and do not interact with the device while running the benchmark.</li>
33+
<li>
34+
Keep the Speedometer page focused and do not interact with the device while running the
35+
benchmark.
36+
</li>
2837
<li>Keep your battery-powered device plugged into a charger.</li>
2938
<li>Some devices might need time to cool down between between consecutive runs.</li>
3039
</ul>

resources/charts/developer.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@
1717
<body>
1818
<div id="app">
1919
<h1>Demo page (not intended for workload)</h1>
20-
<p>This page shows the various workloads to help with local development. The runner should open only one of them.</p>
20+
<p>
21+
This page shows the various workloads to help with local development. The runner should open only one of
22+
them.
23+
</p>
2124
<details open>
22-
<summary><strong>Observable Plot</strong> (<a href="./observable-plot.html">open in full page</a>)</summary>
25+
<summary>
26+
<strong>Observable Plot</strong> (<a href="./observable-plot.html">open in full page</a>)
27+
</summary>
2328
<iframe src="./observable-plot.html"></iframe>
2429
</details>
2530
<details open>

resources/charts/index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ <h1>Charting workloads</h1>
1010
<li><a href="./observable-plot.html">Observable Plot</a></li>
1111
<li><a href="./chartjs.html">Chart.js</a></li>
1212
</ul>
13-
<p>You can also find the <a href="./developer.html">developer page</a> that includes all workloads in iframes.</p>
13+
<p>
14+
You can also find the <a href="./developer.html">developer page</a> that includes all workloads in iframes.
15+
</p>
1416
</body>
1517
</html>

resources/charts/observable-plot.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,15 @@ function addStackedBars() {
139139
x: "state",
140140
y: "total",
141141
fill: "index",
142-
title: (d) => `${d.iata === "Other" ? "Other" : `${d.name}, ${d.city} (${d.iata})`}\n${d3Format(",")(d.total)} flights`,
142+
title: (d) =>
143+
`${d.iata === "Other" ? "Other" : `${d.name}, ${d.city} (${d.iata})`}\n${d3Format(",")(d.total)} flights`,
144+
}),
145+
Plot.text(preparedData.stateInformationSortedArray, {
146+
x: "state",
147+
y: "total",
148+
text: (d) => d3Format(".2~s")(d.total),
149+
dy: -10,
143150
}),
144-
Plot.text(preparedData.stateInformationSortedArray, { x: "state", y: "total", text: (d) => d3Format(".2~s")(d.total), dy: -10 }),
145151
Plot.ruleY([0]),
146152
],
147153
};
@@ -183,7 +189,8 @@ function addDottedBars() {
183189
r: 4,
184190
stroke: "value",
185191
strokeWidth: 3,
186-
title: (d) => `${d.iata === "Other" ? "Other" : `${d.name}, ${d.city} (${d.iata})`}\n${d3Format(",")(Math.abs(d.value))} ${d.value > 0 ? "inward" : "outward"} flights`,
192+
title: (d) =>
193+
`${d.iata === "Other" ? "Other" : `${d.name}, ${d.city} (${d.iata})`}\n${d3Format(",")(Math.abs(d.value))} ${d.value > 0 ? "inward" : "outward"} flights`,
187194
}),
188195
Plot.ruleY([0]),
189196
],

resources/editors/codemirror.html

+71-9
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,22 @@
1515
<div id="app">
1616
<div id="controls">
1717
<button id="create">
18-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-square-plus" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
class="icon icon-tabler icon-tabler-square-plus"
21+
width="24"
22+
height="24"
23+
viewBox="0 0 24 24"
24+
stroke-width="2"
25+
stroke="currentColor"
26+
fill="none"
27+
stroke-linecap="round"
28+
stroke-linejoin="round"
29+
>
1930
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
20-
<path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"></path>
31+
<path
32+
d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"
33+
></path>
2134
<path d="M9 12l6 0"></path>
2235
<path d="M12 9l0 6"></path>
2336
</svg>
@@ -43,8 +56,16 @@
4356
stroke-width="0"
4457
fill="currentColor"
4558
></path>
46-
<path d="M15 20a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z" stroke-width="0" fill="currentColor"></path>
47-
<path d="M15 17a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z" stroke-width="0" fill="currentColor"></path>
59+
<path
60+
d="M15 20a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z"
61+
stroke-width="0"
62+
fill="currentColor"
63+
></path>
64+
<path
65+
d="M15 17a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z"
66+
stroke-width="0"
67+
fill="currentColor"
68+
></path>
4869
</svg>
4970
Long text
5071
</button>
@@ -67,14 +88,33 @@
6788
stroke-width="0"
6889
fill="currentColor"
6990
></path>
70-
<path d="M15 2a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z" stroke-width="0" fill="currentColor"></path>
71-
<path d="M15 5a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z" stroke-width="0" fill="currentColor"></path>
91+
<path
92+
d="M15 2a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z"
93+
stroke-width="0"
94+
fill="currentColor"
95+
></path>
96+
<path
97+
d="M15 5a1 1 0 0 1 .117 1.993l-.117 .007h-6a1 1 0 0 1 -.117 -1.993l.117 -.007h6z"
98+
stroke-width="0"
99+
fill="currentColor"
100+
></path>
72101
</svg>
73102
Short text
74103
</button>
75104
&nbsp;
76105
<button id="highlight">
77-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-highlight" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
106+
<svg
107+
xmlns="http://www.w3.org/2000/svg"
108+
class="icon icon-tabler icon-tabler-highlight"
109+
width="24"
110+
height="24"
111+
viewBox="0 0 24 24"
112+
stroke-width="2"
113+
stroke="currentColor"
114+
fill="none"
115+
stroke-linecap="round"
116+
stroke-linejoin="round"
117+
>
78118
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
79119
<path d="M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"></path>
80120
<path d="M12.5 5.5l4 4"></path>
@@ -107,7 +147,18 @@
107147
</button>
108148
&nbsp;
109149
<button id="scroll">
110-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-line-height" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
150+
<svg
151+
xmlns="http://www.w3.org/2000/svg"
152+
class="icon icon-tabler icon-tabler-line-height"
153+
width="24"
154+
height="24"
155+
viewBox="0 0 24 24"
156+
stroke-width="2"
157+
stroke="currentColor"
158+
fill="none"
159+
stroke-linecap="round"
160+
stroke-linejoin="round"
161+
>
111162
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
112163
<path d="M3 8l3 -3l3 3"></path>
113164
<path d="M3 16l3 3l3 -3"></path>
@@ -120,7 +171,18 @@
120171
</button>
121172
&nbsp;
122173
<button id="layout">
123-
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-refresh-dot" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
174+
<svg
175+
xmlns="http://www.w3.org/2000/svg"
176+
class="icon icon-tabler icon-tabler-refresh-dot"
177+
width="24"
178+
height="24"
179+
viewBox="0 0 24 24"
180+
stroke-width="2"
181+
stroke="currentColor"
182+
fill="none"
183+
stroke-linecap="round"
184+
stroke-linejoin="round"
185+
>
124186
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
125187
<path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"></path>
126188
<path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"></path>

resources/editors/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
<body>
1919
<div id="app">
2020
<h1>Demo page (not intended for workload)</h1>
21-
<p>This page shows the various workloads to help with local development. The runner should open only one of them.</p>
21+
<p>
22+
This page shows the various workloads to help with local development. The runner should open only one of
23+
them.
24+
</p>
2225
<details open>
2326
<summary><strong>Code Editors</strong></summary>
2427
<iframe src="./codemirror.html"></iframe>

0 commit comments

Comments
 (0)