Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
e2468d2
Add test cases from html5lib-tests tree-construction
sirreal Apr 5, 2024
491acc1
Add html5lib test class
sirreal Dec 18, 2023
37ff9f8
Skip unhandled tests
sirreal Dec 18, 2023
70088f1
Avoid WPCS lint nags; skip tests for unsupported input or fragment co…
dmsnell Dec 18, 2023
01dd880
Add line number to test case label
dmsnell Dec 18, 2023
647e086
WPCS Nags
dmsnell Dec 18, 2023
94a6c83
1-index test case numbering
sirreal Dec 19, 2023
bf55265
Skip doctype and comments in test dom tree
sirreal Dec 19, 2023
dc8ad56
Print nicer tests names
sirreal Dec 19, 2023
e5cdeaf
Better tag finding
sirreal Dec 19, 2023
b37739a
Remove space from test identifier, easier copy/paste filtering
sirreal Dec 19, 2023
8724ea4
Add skipping of certain tests
sirreal Dec 19, 2023
9d50600
Add files crediting html5lib-tests project
sirreal Dec 19, 2023
e80bf95
Fix lint
sirreal Dec 19, 2023
01f4149
Add ignores for formatting elements
sirreal Dec 19, 2023
c2d0e1f
Move test data to test data dir
sirreal Dec 19, 2023
aff5cd6
Fix expect/actual ordering, add test message
sirreal Dec 20, 2023
493cf5c
Add extra skipped tests
dmsnell Dec 20, 2023
273479f
Avoid running tests that expect anything in <head>
sirreal Dec 22, 2023
fd603fa
Use line numbers for test IDs
sirreal Jan 15, 2024
e57f7a8
Use padded line number
sirreal Jan 15, 2024
25bd659
Fix HTML input processing
sirreal Jan 15, 2024
b647629
Update ignores
sirreal Jan 16, 2024
47dc0f4
Skip incomplete token tests
sirreal Jan 16, 2024
0fbcfd1
Mark unsupported markup tests as incomplete, not skipped
sirreal Jan 16, 2024
9d5b180
Fix lints
sirreal Jan 16, 2024
5907bc7
Fix strlen paren bug
sirreal Jan 16, 2024
5e399f2
Fix some comments
sirreal Jan 16, 2024
867f109
Skip head tests
sirreal Jan 16, 2024
659eebd
Fix lint
sirreal Jan 16, 2024
544a4a6
Add attributes to html5lib tests
sirreal Jan 16, 2024
825c97f
Clean up and refactor test document parsing
sirreal Jan 16, 2024
9fd69f3
Fixing more lints
sirreal Jan 17, 2024
8ece64b
Rename class and test function
sirreal Jan 17, 2024
f49bbf3
Add skip for known bug - all tests passing or skipped
sirreal Jan 17, 2024
6b6c3dc
Ignore another P tag test
sirreal Jan 21, 2024
08d51e6
Use DIR_TESTDATA
sirreal Jan 23, 2024
a251cd8
Update covers
sirreal Jan 29, 2024
40da3e8
Add todo comments
sirreal Jan 30, 2024
252e37a
Remove covers
sirreal Jan 30, 2024
07fa7ad
Remove comment test skip
sirreal Jan 30, 2024
672bb47
Add much more HTML to tests
sirreal Jan 30, 2024
89aed66
Skip entities tests
sirreal Jan 30, 2024
8d4cb2a
Better variable name
sirreal Jan 30, 2024
3dce944
Skip all entities for now
sirreal Jan 30, 2024
1d113a7
Update skips
sirreal Jan 30, 2024
4148612
Remove leading class body space
sirreal Jan 30, 2024
7598fb7
Fix void tag indenting
sirreal Jan 31, 2024
286803b
Replace $p with $processor
sirreal Jan 31, 2024
a51363c
Expand README and add update instructions
sirreal Jan 31, 2024
1878f93
Add description to test class
sirreal Jan 31, 2024
8a45383
fix some test skipping
sirreal Jan 31, 2024
bec7014
Handle CDATA lookalike comment types
sirreal Jan 31, 2024
33f6a4b
Throw on unhandled token types
sirreal Jan 31, 2024
035f0ee
Skip whitespace test
sirreal Jan 31, 2024
f892705
Fix lint
sirreal Jan 31, 2024
168bba6
var_export our token type
sirreal Feb 2, 2024
429e933
Rename tree representation method, make private
sirreal Feb 2, 2024
dd0d56d
Skip tests with known issues
sirreal Feb 5, 2024
f0bcccd
Add ticket to dataProvider
sirreal Feb 27, 2024
084def5
Use assertSame over assertEquals
sirreal Feb 27, 2024
49c80f4
Extract should_skip_test function
sirreal Feb 27, 2024
09ce469
Rename result variable to expected_tree
sirreal Feb 27, 2024
cc1ed71
Mark unsupported tests as skipped
sirreal Feb 27, 2024
d73836e
Add and exclude html-api-html5lib-tests group
sirreal Feb 27, 2024
209af9a
Also exclude html5lib tests from multisite
sirreal Mar 7, 2024
b23ecda
Update since annotation
sirreal Apr 5, 2024
9717fff
Abort when error at end of token loop
sirreal Apr 5, 2024
c64034e
Explicitly mark test files as text, despite the .dat file extension.
dmsnell Apr 16, 2024
bbe7c21
Merge branch 'trunk' into add-html5lib-tests
dmsnell Apr 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Expand README and add update instructions
  • Loading branch information
sirreal committed Apr 5, 2024
commit a51363c9f32919e5fc56de58e192dbf5ddc829a3
27 changes: 20 additions & 7 deletions tests/phpunit/data/html5lib-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
html5lib-tests
==============
# html5lib-tests

This test data was taken from:
This directory contains a third-party test suite used for testing the WordPress HTML API.

https://github.com/html5lib/html5lib-tests
`html5lib-tests` can be found on GitHub at [html5lib/html5lib-tests](https://github.com/html5lib/html5lib-tests).

The sha was `a9f44960a9fedf265093d22b2aa3c7ca123727b9`.
The necessary files have been copied to this directory:

## Instructions
- `AUTHORS.rst`
- `LICENSE`
- `README.md`
- `tree-construction/README.md`
- `tree-construction/*.dat`

@todo add instructions here.
The version of these files was taken from the git commit with
SHA [`a9f44960a9fedf265093d22b2aa3c7ca123727b9`](https://github.com/html5lib/html5lib-tests/commit/a9f44960a9fedf265093d22b2aa3c7ca123727b9).

## Updating

If there have been changes to the html5lib-tests repository, this test suite can be updated. In
order to update:

1. Check out the latest version of git repository mentioned above.
1. Copy the files listed above into this directory.
1. Update the SHA mentioned in this README file with the new html5lib-tests SHA.