-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add upstream html5lib-tests #447
Conversation
And use them for the tokenizer, benchmarks & to generate feedback tests.
@@ -8,10 +7,3 @@ const tokenizerOpts = { | |||
}; | |||
|
|||
generateTokenizationTests('Tokenizer', dataPath.pathname, (handler) => new Tokenizer(tokenizerOpts, handler)); | |||
|
|||
describe('tokenizer', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was upstreamed in html5lib/html5lib-tests#145
@@ -118,7 +118,8 @@ function createParsingTest<T extends TreeAdapterTypeMap>( | |||
}; | |||
} | |||
|
|||
const treePath = new URL('../data/html5lib-tests/tree-construction', import.meta.url); | |||
// TODO: Stop using the fork here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have an issue somewhere for this? would be good to mention the number i think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened as #448
And use them for the tokenizer, benchmarks & to generate feedback tests.
html5lib/html5lib-tests#144 got merged, which allows us to adopt the upstream tests.