Skip to content

Commit

Permalink
Update BlockedByResponse string; Make capitalization consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Beytoven committed Nov 2, 2020
1 parent 63c1bdd commit ed284f9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions lighthouse-core/audits/dobetterweb/has-inspector-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const UIStrings = {
/* eslint-enable max-len */
/** Table column header for the types of problems observed in a website, like security or network errors. */
columnIssueType: 'Issue type',
/** The type of an Issue in Chrome DevTools when a resource is blocked due to receiving a rejection in the response to a request made on the page. */
issueTypeBlockedByResponse: 'Blocked by response',
/** The type of an Issue in Chrome DevTools when a resource is blocked due to the website's cross-origin policy. */
issueTypeBlockedByResponse: 'Blocked by cross-origin policy',
/** The type of an Issue in Chrome DevTools when a site has large ads that use up a lot of the browser's resources. */
issueTypeHeavyAds: 'Heavy resource usage by ads',
};
Expand Down Expand Up @@ -62,7 +62,7 @@ class IssuesPanelEntries extends Audit {
requestUrls.add(requestUrl);
}
return {
issueType: 'Mixed Content',
issueType: 'Mixed content',
subItems: {
type: 'subitems',
items: Array.from(requestUrls).map(url => ({url})),
Expand All @@ -83,7 +83,7 @@ class IssuesPanelEntries extends Audit {
}
}
return {
issueType: 'SameSite Cookie',
issueType: 'SameSite cookie',
subItems: {
type: 'subitems',
items: Array.from(requestUrls).map(url => {
Expand Down Expand Up @@ -133,7 +133,7 @@ class IssuesPanelEntries extends Audit {
}
}
return {
issueType: 'Content Security Policy',
issueType: 'Content security policy',
subItems: {
type: 'subitems',
items: Array.from(requestUrls).map(url => {
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/lib/i18n/locales/en-US.json

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

2 changes: 1 addition & 1 deletion lighthouse-core/lib/i18n/locales/en-XL.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('Has inspector issues audit', () => {
});
expect(auditResult.score).toBe(0);
expect(auditResult.details.items[0]).toMatchObject({
issueType: 'Mixed Content',
issueType: 'Mixed content',
subItems: {
type: 'subitems',
items: [
Expand Down Expand Up @@ -89,7 +89,7 @@ describe('Has inspector issues audit', () => {
});
expect(auditResult.score).toBe(0);
expect(auditResult.details.items[0]).toMatchObject({
issueType: 'SameSite Cookie',
issueType: 'SameSite cookie',
subItems: {
type: 'subitems',
items: [
Expand Down Expand Up @@ -146,7 +146,7 @@ describe('Has inspector issues audit', () => {
expect(auditResult.score).toBe(0);
expect(auditResult.details.items[0]).toMatchObject({
issueType: {
formattedDefault: 'Blocked By Response',
formattedDefault: 'Blocked by cross-origin policy',
},
subItems: {
type: 'subitems',
Expand Down Expand Up @@ -192,7 +192,7 @@ describe('Has inspector issues audit', () => {
expect(auditResult.score).toBe(0);
expect(auditResult.details.items[0]).toMatchObject({
issueType: {
formattedDefault: 'Heavy Ads',
formattedDefault: 'Heavy resource usage by ads',
},
});
});
Expand Down Expand Up @@ -228,7 +228,7 @@ describe('Has inspector issues audit', () => {
});
expect(auditResult.score).toBe(0);
expect(auditResult.details.items[0]).toMatchObject({
issueType: 'Content Security Policy',
issueType: 'Content security policy',
subItems: {
type: 'subitems',
items: [
Expand Down

0 comments on commit ed284f9

Please sign in to comment.