Add test for HtmlTokenizer::next() in State::ScriptData#9
Add test for HtmlTokenizer::next() in State::ScriptData#9nnabeyang wants to merge 1 commit intod0iasm:mainfrom
Conversation
|
Thank you for adding a test case, but I'm not exactly sure what this test wants to achieve. |
|
@d0iasm Thank you for your feedback. I'm a reader of the book that this repository is based on. In the chapter where we implement the HtmlTokenizer, we start handling logic from the State::ScriptData context. However, I noticed that there are no test cases that directly cover this state, which made it hard to verify whether my implementation was correct. That's why I wanted to add a test for it. In fact, it seems that adding this test improved the coverage of token.rs, so I believe it's not entirely meaningless. |
|
Sorry for my slow response and thank you for your reply. I don't think the state starts from I've updated the HtmlTokenizer by 6377556 and you can debug the status with the |
This PR adds a test case for
HtmlTokenizer::next()when the tokenizer is operating in theState::ScriptDatacontext.