Commit graph

3 commits

Author SHA1 Message Date
daniel
f7dc7e6045 ParsoidHandler: test that selser will re-parse
When no original HTML and no etag is provided,
selser should still be attempted based on a rendered
version of the old wikitext.

Change-Id: Ic3cc3a598f32cad6122964cb8a7376a56be9129f
2022-11-08 12:22:57 +01:00
daniel
d50218c84f Move DOM transformations into HTMLTransformInput getters.
This moved the logic for applying page bundle data into the getters that
return DOM elements. It also makes the application of version
downgrades implicit.

NOTE: This patch changes the expected value of one of the phpunit tests
to a version that has no closing </div> tags. This appears to be the
original and expected behavior, per the corresponding test in the
parsoid extension's Parsoid.js test suite.

Change-Id: If2d7b06d8ba92fb63e6955ec7587ed4aea557251
2022-07-28 19:07:40 +02:00
daniel
3f1cf31740 phpunit tests for ParsoidHandler::html2wt
The test cases were mostly ported from tests/api-testing/REST/Transform.js

Change-Id: Ie6b9f28b6e49e44c64f1fa73ca11e21c2b451474
2022-07-18 13:51:49 +02:00