-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block fixtures: Change port to 8889 to placate KSES (#37100)
Unit tests are currently failing on `trunk` (when used with a current snapshot of the WordPress svn or git repo). Specifically: `Block_Fixture_Test::test_kses_doesnt_change_fixtures` fails for datasets #54 and #55. Reading WordPress/wordpress-develop#1998, I believe that the reason might be that our KSES routines are verifying that the specified port matches the one of the local install. And since our tests normally run `localhost:8889`, I'm updating the relevant test fixtures (from previously `8888`) to reflect that.
- Loading branch information
1 parent
8220398
commit 60dfc3a
Showing
8 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
test/integration/fixtures/blocks/core__file__pdf-preview.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a id="wp-block-file--media-_clientId_0" href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download aria-describedby="wp-block-file--media-_clientId_0">Download</a></div> | ||
<!-- wp:file {"href":"http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a id="wp-block-file--media-_clientId_0" href="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download aria-describedby="wp-block-file--media-_clientId_0">Download</a></div> | ||
<!-- /wp:file --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/integration/fixtures/blocks/core__file__pdf-preview.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a id="wp-block-file--media-_clientId_0" href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download aria-describedby="wp-block-file--media-_clientId_0">Download</a></div> | ||
<!-- wp:file {"href":"http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a id="wp-block-file--media-_clientId_0" href="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download aria-describedby="wp-block-file--media-_clientId_0">Download</a></div> | ||
<!-- /wp:file --> |
4 changes: 2 additions & 2 deletions
4
test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download>Download</a></div> | ||
<!-- wp:file {"href":"http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download>Download</a></div> | ||
<!-- /wp:file --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download>Download</a></div> | ||
<!-- wp:file {"href":"http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf","displayPreview":true,"previewHeight":370} --> | ||
<div class="wp-block-file"><object class="wp-block-file__embed" data="http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf" type="application/pdf" style="width:100%;height:370px" aria-label="Embed of yolo."></object><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf">yolo</a><a href="http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf" class="wp-block-file__button" download>Download</a></div> | ||
<!-- /wp:file --> |