Skip to content
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

[CLEANUP] Whitespace-agnostic HTML test comparison #855

Merged
merged 3 commits into from
Apr 1, 2020

Conversation

JakeQZ
Copy link
Contributor

@JakeQZ JakeQZ commented Mar 31, 2020

In tests for AbstractHtmlProcessor, ignore whitespace differences in the outer
<html> element.

This will help with #831.

Also added test that the <body> content passed to fromHtml() is preserved
and returned by render().

@JakeQZ JakeQZ added the cleanup label Mar 31, 2020
@JakeQZ JakeQZ added this to the 4.0.0 milestone Mar 31, 2020
@JakeQZ JakeQZ requested a review from oliverklee March 31, 2020 22:13
@JakeQZ JakeQZ self-assigned this Mar 31, 2020
@JakeQZ JakeQZ force-pushed the tests/whitespace-agnostic-html branch from feee440 to 484339e Compare March 31, 2020 22:29
In tests for `AbstractHtmlProcessor`, ignore whitespace differences in the outer
`<html>` element.

This will help with #831.

Also added test that the `<body>` content passed to `fromHtml()` is preserved
and returned by `render()`.
@JakeQZ JakeQZ force-pushed the tests/whitespace-agnostic-html branch from 484339e to 46f765f Compare March 31, 2020 22:37
JakeQZ added 2 commits April 1, 2020 17:53
Rename `normalizeHtml` to `normalizeHtmlElement` and add return type annotation.
@oliverklee oliverklee merged commit f1696c6 into master Apr 1, 2020
@oliverklee oliverklee deleted the tests/whitespace-agnostic-html branch April 1, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants