-
Notifications
You must be signed in to change notification settings - Fork 0
Add tests #26
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
Add tests #26
Conversation
The test_modifiable_text_special_pre and test_modifiable_text_special_listing tests had identical structure, differing only in tag name. Consolidate them into a single data-provider-driven test. https://claude.ai/code/session_019ux8qzita5FCCk6v6A9cui
TEXTAREA, like PRE and LISTING, ignores the first newline in its content. Fold the separate TEXTAREA test into the shared data provider, also adding an assertEqualHTML check it previously lacked. Use advance_n_tokens to handle the navigation difference (TEXTAREA is a raw text element reached in one next_token() call vs two for PRE/LISTING). https://claude.ai/code/session_019ux8qzita5FCCk6v6A9cui
TEXTAREA is a raw text element with different navigation semantics and should remain a separate test. Only PRE and LISTING share the same test structure. https://claude.ai/code/session_019ux8qzita5FCCk6v6A9cui
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @claude. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
…a data provider The test_modifiable_text_special_pre and test_modifiable_text_special_listing tests had identical structure, differing only in tag name. Consolidate them into a single data-provider-driven test. https://claude.ai/code/session_019ux8qzita5FCCk6v6A9cui
…LISTING Replace the monolithic test_modifiable_text_special_pre_leading_whitespace with a data-provider-driven test that runs the same 4 cases for both PRE and LISTING elements. This also addresses the @todo on the former LISTING test about adding leading whitespace tests. https://claude.ai/code/session_019ux8qzita5FCCk6v6A9cui
…l_pre_tags Loop over data_modifiable_text_special_pre_tags() to produce tag names, so adding a new tag to that data provider automatically covers the leading whitespace cases too. https://claude.ai/code/session_019ux8qzita5FCCk6v6A9cui
No description provided.