Skip to content

Commit 2652463

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[cleanup] Fix typos
Bug: none Change-Id: Iab89e50fb348c14526aa74e26c42ef5250339957 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6768731 Reviewed-by: Jack Franklin <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]>
1 parent 2c588e0 commit 2652463

File tree

70 files changed

+169
-177
lines changed

Some content is hidden

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

70 files changed

+169
-177
lines changed

DEPS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ vars = {
6363
}
6464

6565
# Only these hosts are allowed for dependencies in this DEPS file.
66-
# If you need to add a new host, contact chrome infrastracture team.
66+
# If you need to add a new host, contact chrome infrastructure team.
6767
allowed_hosts = [
6868
'chromium.googlesource.com',
6969
'chrome-infra-packages.appspot.com',
7070

71-
# TODO(b/337061377): Move into a separate alllowed gcs bucket list.
71+
# TODO(b/337061377): Move into a separate allowed gcs bucket list.
7272
'chromium-nodejs',
7373
]
7474

front_end/core/sdk/EventBreakpointsModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const enum InstrumentationNames {
3333
CANVAS_CONTEXT_CREATED = 'canvasContextCreated',
3434
GEOLOCATION_GET_CURRENT_POSITION = 'Geolocation.getCurrentPosition',
3535
GEOLOCATION_WATCH_POSITION = 'Geolocation.watchPosition',
36-
NOTIFCATION_REQUEST_PERMISSION = 'Notification.requestPermission',
36+
NOTIFICATION_REQUEST_PERMISSION = 'Notification.requestPermission',
3737
DOM_WINDOW_CLOSE = 'DOMWindow.close',
3838
DOCUMENT_WRITE = 'Document.write',
3939
AUDIO_CONTEXT_CREATED = 'audioContextCreated',
@@ -102,7 +102,7 @@ export class EventBreakpointsManager implements SDKModelObserver<EventBreakpoint
102102
InstrumentationNames.GEOLOCATION_WATCH_POSITION,
103103
]);
104104
this.createInstrumentationBreakpoints(Category.NOTIFICATION, [
105-
InstrumentationNames.NOTIFCATION_REQUEST_PERMISSION,
105+
InstrumentationNames.NOTIFICATION_REQUEST_PERMISSION,
106106
]);
107107
this.createInstrumentationBreakpoints(Category.PARSE, [
108108
InstrumentationNames.ELEMENT_SET_INNER_HTML,

front_end/panels/ai_assistance/PatchWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ enum SelectedProjectType {
155155
/**
156156
* The selected project is a disconnected automatic workspace project
157157
*/
158-
AUTOMATIC_DISCONNECTED = 'automaticDisconncted',
158+
AUTOMATIC_DISCONNECTED = 'automaticDisconnected',
159159
/**
160160
* The selected project is a connected automatic workspace project
161161
*/

front_end/panels/application/AppManifestView.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -817,19 +817,19 @@ export class AppManifestView extends Common.ObjectWrapper.eventMixin<EventTypes,
817817
urlField.appendChild(link);
818818

819819
const shortcutIcons = shortcut.icons || [];
820-
let hasShorcutIconLargeEnough = false;
820+
let hasShortcutIconLargeEnough = false;
821821
for (const shortcutIcon of shortcutIcons) {
822822
const {imageResourceErrors: shortcutIconErrors} =
823823
await this.appendImageResourceToSection(url, shortcutIcon, shortcutSection, /** isScreenshot= */ false);
824824
imageErrors.push(...shortcutIconErrors);
825-
if (!hasShorcutIconLargeEnough && shortcutIcon.sizes) {
825+
if (!hasShortcutIconLargeEnough && shortcutIcon.sizes) {
826826
const shortcutIconSize = shortcutIcon.sizes.match(/^(\d+)x(\d+)$/);
827827
if (shortcutIconSize && shortcutIconSize[1] >= 96 && shortcutIconSize[2] >= 96) {
828-
hasShorcutIconLargeEnough = true;
828+
hasShortcutIconLargeEnough = true;
829829
}
830830
}
831831
}
832-
if (!hasShorcutIconLargeEnough) {
832+
if (!hasShortcutIconLargeEnough) {
833833
imageErrors.push(i18nString(UIStrings.shortcutSShouldIncludeAXPixel, {PH1: shortcutIndex}));
834834
}
835835
shortcutIndex++;

front_end/panels/application/IndexedDBModel.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describeWithMockConnection('IndexedDBModel', () => {
4343

4444
describe('StorageKeyAdded', () => {
4545
it('registers database only when the model is enabled', async () => {
46-
const databaseAdeddSpy = sinon.spy(indexedDBModel, 'dispatchEventToListeners');
46+
const databaseAddedSpy = sinon.spy(indexedDBModel, 'dispatchEventToListeners');
4747
const dbNamePromise = new Promise<string>(resolve => {
4848
indexedDBModel.addEventListener(Resources.IndexedDBModel.Events.DatabaseAdded, event => {
4949
resolve(event.data.databaseId.name);
@@ -52,7 +52,7 @@ describeWithMockConnection('IndexedDBModel', () => {
5252
setMockConnectionResponseHandler('IndexedDB.requestDatabaseNames', () => ({databaseNames: ['test-database']}));
5353

5454
manager?.storageBucketCreatedOrUpdated({bucketInfo: testStorageBucketInfo});
55-
assert.isFalse(databaseAdeddSpy.calledWithExactly(
55+
assert.isFalse(databaseAddedSpy.calledWithExactly(
5656
Resources.IndexedDBModel.Events.DatabaseAdded as unknown as sinon.SinonMatcher,
5757
{model: indexedDBModel, databaseId: testDBId}));
5858

front_end/panels/application/KeyValueStorageItemsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type VBox = UI.Widget.VBox;
4747

4848
const UIStrings = {
4949
/**
50-
*@description Text that shows in the Applicaiton Panel if no value is selected for preview
50+
*@description Text that shows in the Application Panel if no value is selected for preview
5151
*/
5252
noPreviewSelected: 'No value selected',
5353
/**

front_end/panels/application/components/BackForwardCacheView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const UIStrings = {
5252
unknown: 'Unknown Status',
5353
/**
5454
* @description Status text for the status of the back/forward cache status indicating that
55-
* the back/forward cache was not used and a normal navigation occured instead.
55+
* the back/forward cache was not used and a normal navigation occurred instead.
5656
*/
5757
normalNavigation:
5858
'Not served from back/forward cache: to trigger back/forward cache, use Chrome\'s back/forward buttons, or use the test button below to automatically navigate away and back.',
@@ -310,8 +310,8 @@ export class BackForwardCacheView extends LegacyWrapper.LegacyWrapper.WrappableC
310310
// clang-format on
311311
}
312312

313-
#maybeRenderFrameTree(explanationTree: Protocol.Page.BackForwardCacheNotRestoredExplanationTree|
314-
undefined): Lit.LitTemplate {
313+
#maybeRenderFrameTree(explanationTree: Protocol.Page.BackForwardCacheNotRestoredExplanationTree|undefined):
314+
Lit.LitTemplate {
315315
if (!explanationTree || (explanationTree.explanations.length === 0 && explanationTree.children.length === 0)) {
316316
return Lit.nothing;
317317
}

front_end/panels/application/components/StackTrace.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {html} = Lit;
2020

2121
const UIStrings = {
2222
/**
23-
*@description Error message stating that something went wrong when tring to render stack trace
23+
*@description Error message stating that something went wrong when trying to render stack trace
2424
*/
2525
cannotRenderStackTrace: 'Cannot render stack trace',
2626
/**
@@ -180,8 +180,7 @@ export class StackTrace extends HTMLElement {
180180
if ('functionName' in item) {
181181
expandableRows.push(html`
182182
<devtools-stack-trace-row data-stack-trace-row .data=${{
183-
stackTraceRowItem:
184-
item,
183+
stackTraceRowItem: item,
185184
}}></devtools-stack-trace-row>`);
186185
}
187186
if ('asyncDescription' in item) {

front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ export class PreloadingDetailsReportView extends LegacyWrapper.LegacyWrapper.Wra
264264

265265
const action = PreloadingString.capitalizedAction(attempt.action);
266266

267-
let maybeFellback: Lit.LitTemplate = Lit.nothing;
267+
let maybeFallback: Lit.LitTemplate = Lit.nothing;
268268
if (isFallbackToPrefetch) {
269-
maybeFellback = html`${i18nString(UIStrings.automaticallyFellBackToPrefetch)}`;
269+
maybeFallback = html`${i18nString(UIStrings.automaticallyFellBackToPrefetch)}`;
270270
}
271271

272272
let maybeInspectButton: Lit.LitTemplate = Lit.nothing;
@@ -313,7 +313,7 @@ export class PreloadingDetailsReportView extends LegacyWrapper.LegacyWrapper.Wra
313313
<devtools-report-key>${i18nString(UIStrings.detailsAction)}</devtools-report-key>
314314
<devtools-report-value>
315315
<div class="text-ellipsis" title="">
316-
${action} ${maybeFellback} ${maybeInspectButton}
316+
${action} ${maybeFallback} ${maybeInspectButton}
317317
</div>
318318
</devtools-report-value>
319319
`;

front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ const str_ =
9898
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
9999

100100
export class PreloadingDisabledInfobar extends LegacyWrapper.LegacyWrapper.WrappableComponent<UI.Widget.VBox> {
101-
102101
readonly #shadow = this.attachShadow({mode: 'open'});
103102
#data: Protocol.Preload.PreloadEnabledStateUpdatedEvent = {
104103
disabledByPreference: false,
@@ -179,11 +178,11 @@ export class PreloadingDisabledInfobar extends LegacyWrapper.LegacyWrapper.Wrapp
179178
return html`
180179
<div id='contents'>
181180
<devtools-report>
182-
${this.#maybeDisalebByPreference()}
183-
${this.#maybeDisalebByDataSaver()}
184-
${this.#maybeDisalebByBatterySaver()}
185-
${this.#maybeDisalebByHoldbackPrefetchSpeculationRules()}
186-
${this.#maybeDisalebByHoldbackPrerenderSpeculationRules()}
181+
${this.#maybeDisableByPreference()}
182+
${this.#maybeDisableByDataSaver()}
183+
${this.#maybeDisableByBatterySaver()}
184+
${this.#maybeDisableByHoldbackPrefetchSpeculationRules()}
185+
${this.#maybeDisableByHoldbackPrerenderSpeculationRules()}
187186
</devtools-report>
188187
<div id='footer'>
189188
${learnMoreLink}
@@ -208,7 +207,7 @@ export class PreloadingDisabledInfobar extends LegacyWrapper.LegacyWrapper.Wrapp
208207
`;
209208
}
210209

211-
#maybeDisalebByPreference(): Lit.LitTemplate {
210+
#maybeDisableByPreference(): Lit.LitTemplate {
212211
const preloadingSettingLink = new ChromeLink.ChromeLink.ChromeLink();
213212
preloadingSettingLink.href = 'chrome://settings/performance' as Platform.DevToolsPath.UrlString;
214213
preloadingSettingLink.textContent = i18nString(UIStrings.preloadingPagesSettings);
@@ -221,26 +220,26 @@ export class PreloadingDisabledInfobar extends LegacyWrapper.LegacyWrapper.Wrapp
221220
this.#data.disabledByPreference, i18nString(UIStrings.headerDisabledByPreference), description);
222221
}
223222

224-
#maybeDisalebByDataSaver(): Lit.LitTemplate {
223+
#maybeDisableByDataSaver(): Lit.LitTemplate {
225224
return this.#maybeKeyValue(
226225
this.#data.disabledByDataSaver, i18nString(UIStrings.headerDisabledByDataSaver),
227226
i18nString(UIStrings.descriptionDisabledByDataSaver));
228227
}
229228

230-
#maybeDisalebByBatterySaver(): Lit.LitTemplate {
229+
#maybeDisableByBatterySaver(): Lit.LitTemplate {
231230
return this.#maybeKeyValue(
232231
this.#data.disabledByBatterySaver, i18nString(UIStrings.headerDisabledByBatterySaver),
233232
i18nString(UIStrings.descriptionDisabledByBatterySaver));
234233
}
235234

236-
#maybeDisalebByHoldbackPrefetchSpeculationRules(): Lit.LitTemplate {
235+
#maybeDisableByHoldbackPrefetchSpeculationRules(): Lit.LitTemplate {
237236
return this.#maybeKeyValue(
238237
this.#data.disabledByHoldbackPrefetchSpeculationRules,
239238
i18nString(UIStrings.headerDisabledByHoldbackPrefetchSpeculationRules),
240239
i18nString(UIStrings.descriptionDisabledByHoldbackPrefetchSpeculationRules));
241240
}
242241

243-
#maybeDisalebByHoldbackPrerenderSpeculationRules(): Lit.LitTemplate {
242+
#maybeDisableByHoldbackPrerenderSpeculationRules(): Lit.LitTemplate {
244243
return this.#maybeKeyValue(
245244
this.#data.disabledByHoldbackPrerenderSpeculationRules,
246245
i18nString(UIStrings.headerDisabledByHoldbackPrerenderSpeculationRules),

0 commit comments

Comments
 (0)