Skip to content

Commit

Permalink
chore: remove repetitive words (#39985)
Browse files Browse the repository at this point in the history
Signed-off-by: peicuiping <ezc5@sina.cn>
  • Loading branch information
peicuiping committed May 9, 2024
1 parent 10d559c commit a4a0fed
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build-system/tasks/create-golden-css/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ amp-pixel {

/**
* Instagram wraps the standard image into a fixed size container.
* With these offsets, users can simply specify the the size of the
* With these offsets, users can simply specify the size of the
* instagram images and things have the right size.
* In particular the effect of adding padding to this container is
* that with responsive layouts the responsiveness is based on the
Expand Down
2 changes: 1 addition & 1 deletion build-system/tasks/runtime-test/runtime-test-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class RuntimeTestConfig {
}

/**
* Picks a browser config based on the the test type and command line flags.
* Picks a browser config based on the test type and command line flags.
* Defaults to Chrome.
*/
updateBrowsers() {
Expand Down
2 changes: 1 addition & 1 deletion build-system/tasks/sweep-experiments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ If a toggle flip matches the experiment launch value, the call has already been
- })
```

Otherwise the the test is likely obsolete and will fail, since it requires a state not possible with the current launch value:
Otherwise the test is likely obsolete and will fail, since it requires a state not possible with the current launch value:

```diff
- it('should fail if experiment is off', () => {
Expand Down
6 changes: 3 additions & 3 deletions extensions/amp-base-carousel/0.1/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class Carousel {
this.requestedIndex_ = null;

/**
* The reference index where the the scrollable area last stopped
* The reference index where the scrollable area last stopped
* scrolling. This slide is not translated and other slides are translated
* to move before or after as needed. This is also used when looping to
* prevent a single swipe from wrapping past the starting point.
Expand Down Expand Up @@ -365,7 +365,7 @@ export class Carousel {
* slide at a time. If you are on slide 'c', advancing will move back to 'a'
* instead of moving to 'd', which would cause no scrolling since 'd' is
* already visible and cannot start align itself.
* 2. The delta would go past the start or the end and the the current index
* 2. The delta would go past the start or the end and the current index
* is not at the start or end, then the advancement is capped to the start
* or end respectively.
* 3. The delta would go past the start or the end and the current index is
Expand Down Expand Up @@ -807,7 +807,7 @@ export class Carousel {
}

/**
* Handles a scroll event, updating the the current index as well as moving
* Handles a scroll event, updating the current index as well as moving
* slides around as needed.
* @private
*/
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-bind/validator-amp-bind.protoascii
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tags: { # <amp-state>
}
spec_url: "https://amp.dev/documentation/components/amp-bind/"
}
# AMP4ADS and AMP4EMAIL enforces the the same restrictions on the 'src'
# AMP4ADS and AMP4EMAIL enforces the same restrictions on the 'src'
# attribute of AMP-IMG and AMP-LIST on the src attribute of AMP-STATE. Use of
# 'credential' is disallowed.
tags: { # <amp-state>
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-form/0.1/amp-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ export class AmpForm {
}

/**
* Transition the form the the submit error state.
* Transition the form the submit error state.
* @param {*} error
* @param {!JsonObject} json
* @param {!ActionTrust_Enum} incomingTrust
Expand Down
4 changes: 2 additions & 2 deletions extensions/amp-geo/0.1/test/test-amp-geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ describes.realWin(
});

/**
* pre-rendered geo is the the case where a publisher uses their own
* pre-rendered geo is the case where a publisher uses their own
* infrastructure to add a country tag to the body.
*/
it('should respect pre-rendered geo tags in the body', () => {
Expand Down Expand Up @@ -970,7 +970,7 @@ describes.realWin(

it('should allow hash to override pre-rendered geo in test', () => {
setGeoOverrideHash('nz');
// NOTE: notide that we cause the the body and html element classes
// NOTE: notide that we cause the body and html element classes
// to go out of sync but we still clear `amp-iso-country-mx` AND
// `amp-geo-group-nafta`.
doc.documentElement.classList.add('amp-iso-country-mx');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

The `amp-live-list` component is allowed to make requests to its server (depending on where the file is hosted from, the server could be the Google AMP Cache, another AMP cache, or the publisher’s server) for the the latest AMP document and update the current DOM with information from the received AMP document. It can work with a full AMP document as the response, but to reduce the payload and save on bandwidth and CPU cycles `amp-live-list` has defined the minimum HTML structure, the tags and its attributes needed by the component to correctly make an update to the live DOM. This spec depends on the [`amp-live-list` spec](https://github.com/ampproject/amphtml/blob/main/extensions/amp-live-list/amp-live-list.md) and defines its [Server side filtering](https://github.com/ampproject/amphtml/blob/main/extensions/amp-live-list/amp-live-list.md#server-side-filtering) section.
The `amp-live-list` component is allowed to make requests to its server (depending on where the file is hosted from, the server could be the Google AMP Cache, another AMP cache, or the publisher’s server) for the latest AMP document and update the current DOM with information from the received AMP document. It can work with a full AMP document as the response, but to reduce the payload and save on bandwidth and CPU cycles `amp-live-list` has defined the minimum HTML structure, the tags and its attributes needed by the component to correctly make an update to the live DOM. This spec depends on the [`amp-live-list` spec](https://github.com/ampproject/amphtml/blob/main/extensions/amp-live-list/amp-live-list.md) and defines its [Server side filtering](https://github.com/ampproject/amphtml/blob/main/extensions/amp-live-list/amp-live-list.md#server-side-filtering) section.

## Design

Expand Down Expand Up @@ -110,7 +110,7 @@ Example 2
</amp-live-list>
```

Example 3 is the latest document fetched from the publisher, and using `amp_latest_update_time=1462955848172` allows us to filter the `items` reference point, which only leaves us with the the element with `id=item-3` (the `amp-twitter` element).
Example 3 is the latest document fetched from the publisher, and using `amp_latest_update_time=1462955848172` allows us to filter the `items` reference point, which only leaves us with the element with `id=item-3` (the `amp-twitter` element).

Example 3

Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-mraid/0.1/test/validator-amp-mraid.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Test Description:
Tests the presence of the the amp-mraid script tag is disallowed in AMP.
Tests the presence of the amp-mraid script tag is disallowed in AMP.
-->
<!doctype html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-mraid/0.1/test/validator-amp-mraid.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FAIL
| <!--
| Test Description:
| Tests the presence of the the amp-mraid script tag is disallowed in AMP.
| Tests the presence of the amp-mraid script tag is disallowed in AMP.
| -->
| <!doctype html>
| <html ⚡ lang="en">
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-mustache/amp-mustache.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ teaser:

Mustache is a logic-less template syntax. See [Mustache specification](http://mustache.github.io/mustache.5.html) for more details. Some of the core Mustache tags are:

- `{{variable}}`: A variable tag. It outputs the the HTML-escaped value of a variable.
- `{{variable}}`: A variable tag. It outputs the HTML-escaped value of a variable.
- `{{#section}} {{/section}}`: A section tag. It can test the existence of a variable and iterate over it if it's an array.
- `{{^section}} {{/section}}`: An inverted tag. It can test the non-existence of a variable.
- `{{{unescaped}}}`: Unescaped HTML. It's restricted in the markup it may output (see "Restrictions" below).
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-pinterest/amp-pinterest.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ data-url="https://www.pinterest.com/pin/99360735500167749/"

##### alt

This property like the the `alt` attribute on an `<img>` tag specifies the alternate text. If not provided it will be infered from the pin data provided by the Pinterest API.
This property like the `alt` attribute on an `<img>` tag specifies the alternate text. If not provided it will be infered from the pin data provided by the Pinterest API.

## Validation

Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/amp-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -2528,7 +2528,7 @@ export class AmpStory extends AMP.BaseElement {
}

/**
* Checks for the the storyNavigationPath stack in the history.
* Checks for the storyNavigationPath stack in the history.
* @private
*/
initializeStoryNavigationPath_() {
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/media-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ export class MediaPool {
// A 0 delay isn't enough as we need to push the "seeking" event
// to the next tick of the event loop.
// NOTE: Please note that this is not an ideal solution and a bit hacky.
// The more ideal fix would be to fix the the navigations animation frames.
// The more ideal fix would be to fix the navigations animation frames.
// See https://github.com/ampproject/amphtml/issues/38531
this.timer_.delay(() => {
this.enqueueMediaElementTask_(
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/test/test-amp-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ describes.realWin(
).to.be.false;
});

it('should navigate to the the paywall page', () => {
it('should navigate to the paywall page', () => {
const activePage = story.getPageById(
storeService.get(StateProperty.CURRENT_PAGE_ID)
);
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-truncate-text/0.1/truncate-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function maybeEllipsizeNode(node, container, containerRect) {
0,
text.length,
(offset) => {
// Treat whitespace as being the same as the the previous non-whitespace
// Treat whitespace as being the same as the previous non-whitespace
// character in terms of truncation. This is necessary as we will strip
// trailing whitespace, so we do not to include its width when considering
// if we overflow. Note this includes non-breaking whitespace.
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-web-push/0.1/amp-web-push-helper-frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class AmpWebPushHelperFrame {
}

/**
* Returns a Promise that is resolved when the the page controlling the
* Returns a Promise that is resolved when the page controlling the
* service worker is activated. This Promise never rejects.
*
* @return {Promise}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/builtins/test-amp-img-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ describes.realWin('amp-img R1', {amp: true}, (env) => {
]);
});

it('should preconnect to the the first srcset url if src is not set', () => {
it('should preconnect to the first srcset url if src is not set', () => {
const element = createImg({srcset: SRCSET_STRING});
expect(AmpImg.getPreconnects(element)).to.deep.equal([
'/examples/img/hero@1x.jpg',
Expand Down
2 changes: 1 addition & 1 deletion test/unit/builtins/test-amp-img.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describes.sandboxed('amp-img', {}, (env) => {
});
});

it('should preconnect to the the first srcset url if src is not set', async () => {
it('should preconnect to the first srcset url if src is not set', async () => {
const preconnect = {url: sandbox.stub()};
sandbox.stub(Services, 'preconnectFor').returns(preconnect);

Expand Down

0 comments on commit a4a0fed

Please sign in to comment.