Skip to content

Commit 12c5196

Browse files
authored
Merge branch 'WordPress:trunk' into trunk
2 parents 4497ac0 + da20e5f commit 12c5196

74 files changed

Lines changed: 1713 additions & 249 deletions

Some content is hidden

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

.github/workflows/phpunit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
php: [ '7.4', '8.0', '8.4' ]
253253
db-type: [ 'mysql' ]
254254
db-version: [ '8.4' ]
255-
phpunit-test-groups: [ 'html-api-html5lib-tests' ]
255+
phpunit-test-groups: [ 'html-api-web-platform-tests' ]
256256
# A matrix value is needed in the 'name' directive for proper grouping in the GitHub UI.
257257
label: [ 'HTML API' ]
258258
with:
@@ -305,7 +305,7 @@ jobs:
305305
- php: '8.4'
306306
db-version: '9.7'
307307
db-type: 'mysql'
308-
phpunit-test-groups: 'html-api-html5lib-tests'
308+
phpunit-test-groups: 'html-api-web-platform-tests'
309309

310310
exclude:
311311
# Exclude PHP versions that are not supported by the database versions.

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<group>ms-files</group>
3030
<group>ms-required</group>
3131
<group>external-http</group>
32-
<group>html-api-html5lib-tests</group>
32+
<group>html-api-web-platform-tests</group>
3333
</exclude>
3434
</groups>
3535
<logging>

tests/phpunit/data/html5lib-tests/AUTHORS.rst

Lines changed: 0 additions & 34 deletions
This file was deleted.

tests/phpunit/data/html5lib-tests/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/phpunit/data/html5lib-tests/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# The 3-Clause BSD License
2+
3+
Copyright © web-platform-tests contributors
4+
5+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Web Platform Tests
2+
3+
This directory contains a third-party test suite used for testing the WordPress HTML API.
4+
5+
The tests are maintained by the Web Platform Tests project.
6+
The current tests can be found on GitHub at
7+
[`web-platform-tests/wpt/html/syntax/parsing/resources`](https://github.com/web-platform-tests/wpt/tree/master/html/syntax/parsing/resources).
8+
9+
The version of the WPT files was taken from the git commit with
10+
SHA [`f4c2ec1d071ccbae305f7aea4e883b5bd0f5c0df`](https://github.com/web-platform-tests/wpt/commit/f4c2ec1d071ccbae305f7aea4e883b5bd0f5c0df).
11+
12+
## Updating
13+
14+
If there have been changes to the Web Platform Tests repository, this test suite can be updated. In
15+
order to update:
16+
17+
1. Check out the latest version of git repository mentioned above.
18+
1. Replace the local `html_syntax_parsing_resources/` directory with the WPT repo's `html/syntax/parsing/resources` directory.
19+
1. Update the SHA mentioned in this README file with the new Web Platform Tests SHA.

tests/phpunit/data/html5lib-tests/tree-construction/README.md renamed to tests/phpunit/data/web-platform-tests/html_syntax_parsing_resources/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ errors.
3131

3232
Then there \*may\* be a line that says "\#document-fragment", which must
3333
be followed by a newline (LF), followed by a string of characters that
34-
indicates the context element, followed by a newline (LF). If the string
34+
indicates the context element, followed by a newline (LF). If the string
3535
of characters starts with "svg ", the context element is in the SVG
3636
namespace and the substring after "svg " is the local name. If the
3737
string of characters starts with "math ", the context element is in the
@@ -67,9 +67,7 @@ per parent node that the node has before the root document node.
6767
double-quotes, another space an the system id in double-quotes, and
6868
then in any case "`>`".
6969
- Processing instructions must be "`<?`", then the target, then a
70-
space, then the data and then "`>`". (The HTML parser cannot emit
71-
processing instructions, but scripts can, and the WebVTT to DOM
72-
rules can emit them.)
70+
space, then the data and then "`?>`".
7371
- Template contents are represented by the string "content" with the
7472
children below it.
7573

tests/phpunit/data/html5lib-tests/tree-construction/adoption01.dat renamed to tests/phpunit/data/web-platform-tests/html_syntax_parsing_resources/adoption01.dat

File renamed without changes.

0 commit comments

Comments
 (0)