Skip to content

Commit 9ff3edb

Browse files
paulirishDevtools-frontend LUCI CQ
authored andcommitted
RPP: Fix misspellings en masse
It's annoying to see the gerrit spelling suggestions sprinkled in each CL, so now we can be done with it. Thx to http://cl/723317254 Bug: none Change-Id: I9246ddf46602bc2990b34b6a65ae8f5673150b8b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6231217 Reviewed-by: Jack Franklin <[email protected]> Commit-Queue: Jack Franklin <[email protected]> Auto-Submit: Paul Irish <[email protected]>
1 parent b8f9bf0 commit 9ff3edb

39 files changed

+71
-71
lines changed

front_end/models/cpu_profile/CPUProfileDataModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class CPUProfileDataModel extends ProfileTreeModel {
9191
this.samples = profile.samples;
9292

9393
// Lines are available only in profiles coming from tracing.
94-
// Elements in the lines array have a 1 to 1 correspondance with
94+
// Elements in the lines array have a 1 to 1 correspondence with
9595
// samples, by array position. They can be 1 or 0 and indicate if
9696
// there is line data for a given sample, i.e. if a given sample
9797
// needs to be included to calculate the line level execution time
@@ -334,7 +334,7 @@ export class CPUProfileDataModel extends ProfileTreeModel {
334334
// apart when they shouldn't.
335335
// Here's a workaround for that. When there's a single (program) sample
336336
// between two call stacks sharing the same bottom node, it is replaced
337-
// with the preceeding sample.
337+
// with the preceding sample.
338338
const samples = this.samples;
339339
if (!samples) {
340340
return;

front_end/models/trace/LanternComputationData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function createNetworkRequests(
354354
}
355355

356356
// Apply the `:redirect` requestId convention: only redirects[0].requestId is the actual
357-
// requestId, all the rest have n occurences of `:redirect` as a suffix.
357+
// requestId, all the rest have n occurrences of `:redirect` as a suffix.
358358
for (let i = 1; i < requestChain.length; i++) {
359359
requestChain[i].requestId = `${requestChain[i - 1].requestId}:redirect`;
360360
}

front_end/models/trace/extras/MainThreadActivity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('MainThreadActivity', function() {
5252
// Therefore, the window focuses on the time period of 1 to 280ms (280 is
5353
// the end time of the event that starts at 230ms).
5454
// The right number looks odd because when we zoom the window we adjust it
55-
// postively by 5% for the upper bound to give it some breathing room.
55+
// positively by 5% for the upper bound to give it some breathing room.
5656
assert.strictEqual(win.min, milliToMicro(1));
5757
assert.strictEqual(win.max, milliToMicro(293.95));
5858
});

front_end/models/trace/extras/TraceTree.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ describeWithEnvironment('TraceTree', () => {
343343
const mainThread = getMainThread(parsedTrace.Renderer);
344344
const bounds = Trace.Helpers.Timing.traceWindowMilliSeconds(parsedTrace.Meta.traceBounds);
345345

346-
// Replicate the filters as they would be when renderering in the actual panel.
346+
// Replicate the filters as they would be when rendering in the actual panel.
347347
const textFilter = new Timeline.TimelineFilters.TimelineRegExp();
348348
const modelFilters = [
349349
Timeline.TimelineUIUtils.TimelineUIUtils.visibleEventsFilter(),

front_end/models/trace/handlers/LayoutShiftsHandler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ describe('LayoutShiftsHandler', function() {
171171
assert.strictEqual(cluster.scoreWindows.needsImprovement.min, event.ts);
172172
}
173173

174-
// Here we have transitioned from eiter Good or NI to Bad, so
174+
// Here we have transitioned from either Good or NI to Bad, so
175175
// again we assert that the Bad window starts when expected,
176176
// and that either the NI or Good window finishes just prior.
177177
if (scoreBeforeEvent < Trace.Handlers.ModelHandlers.LayoutShifts.LayoutShiftsThreshold.BAD &&

front_end/models/trace/handlers/MetaHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const traceBounds: Types.Timing.TraceWindowMicro = {
4444
* Note that these Maps will have the same values in them; these are just keyed
4545
* differently to make look-ups easier.
4646
*
47-
* We also additionally maintain an array of only navigations that occured on
47+
* We also additionally maintain an array of only navigations that occurred on
4848
* the main frame. In many places in the UI we only care about highlighting
4949
* main frame navigations, so calculating this list here is better than
5050
* filtering either of the below maps over and over again at the UI layer.
@@ -236,7 +236,7 @@ export function handleEvent(event: Types.Events.Event): void {
236236
mainFrameURL = frame.url;
237237
}
238238
} else if (traceHasOutermostMainFrameFlag) {
239-
// Less ideal: "guess" at the main thread by using this falg.
239+
// Less ideal: "guess" at the main thread by using this flag.
240240
if (frame.isOutermostMainFrame) {
241241
mainFrameId = frame.frame;
242242
mainFrameURL = frame.url;
@@ -376,7 +376,7 @@ export async function finalize(): Promise<void> {
376376
// the previous page. This doesn't matter too much except we often use this
377377
// URL as the visual name of the trace shown to the user (e.g. in the history
378378
// dropdown). We can be more accurate by finding the first main frame
379-
// navigaton, and using its URL, if we have it.
379+
// navigation, and using its URL, if we have it.
380380
// However, to avoid doing this in a case where the first navigation is far
381381
// into the trace's lifecycle, we only do this in situations where the first
382382
// navigation happened very soon (0.5 seconds) after the trace started

front_end/models/trace/handlers/PageLoadMetricsHandler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describeWithEnvironment('PageLoadMetricsHandler', function() {
6060
if (!pageLoadEventsForMainFrame) {
6161
assert.fail('Page load events for main frame were unexpectedly null.');
6262
}
63-
// Single FCP event that occured after the refresh.
63+
// Single FCP event that occurred after the refresh.
6464
assert.strictEqual(pageLoadEventsForMainFrame.size, 1);
6565
const scoresByMetricName = [...pageLoadEventsForMainFrame.values()];
6666
const fcpCount =
@@ -88,7 +88,7 @@ describeWithEnvironment('PageLoadMetricsHandler', function() {
8888
if (!pageLoadEventsForMainFrame) {
8989
assert.fail('Page load events for main frame were unexpectedly null.');
9090
}
91-
// Single FCP event that occured after the refresh.
91+
// Single FCP event that occurred after the refresh.
9292
assert.strictEqual(pageLoadEventsForMainFrame.size, 1);
9393
const events = pageLoadEventsForMainFrame.get(navigationId);
9494
const allFoundMetricScoresForMainFrame = events ? Array.from(events.values()) : [];

front_end/models/trace/handlers/PageLoadMetricsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ export interface MetricScore {
442442
metricName: MetricName;
443443
classification: ScoreClassification;
444444
event?: Types.Events.PageLoadEvent;
445-
// The last navigation that occured before this metric score.
445+
// The last navigation that occurred before this metric score.
446446
navigation?: Types.Events.NavigationStart;
447447
estimated?: boolean;
448448
timing: Types.Timing.Micro;

front_end/models/trace/handlers/RendererHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export function assignThreadName(
248248
/**
249249
* Removes unneeded trace data opportunistically stored while handling events.
250250
* This currently does the following:
251-
* - Deletes processes with an unkonwn origin.
251+
* - Deletes processes with an unknown origin.
252252
*/
253253
export function sanitizeProcesses(processes: Map<Types.Events.ProcessID, RendererProcess>): void {
254254
const auctionWorklets = auctionWorkletsData().worklets;

front_end/models/trace/handlers/ScreenshotsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function finalize(): Promise<void> {
5353
ph,
5454
pid,
5555
tid,
56-
// TODO(paulirish, crbug.com/41363012): investigate why getPresentationTimestamp(snapshotEvent) seems less accurate. Resolve screenshot timing innaccuracy.
56+
// TODO(paulirish, crbug.com/41363012): investigate why getPresentationTimestamp(snapshotEvent) seems less accurate. Resolve screenshot timing inaccuracy.
5757
// `getPresentationTimestamp(snapshotEvent) - snapshotEvent.ts` is how many microsec the screenshot should be adjusted to the right/later
5858
ts: snapshotEvent.ts,
5959
args: {

0 commit comments

Comments
 (0)