Commit graph

4 commits

Author SHA1 Message Date
Derick Alangi
e076836219 HtmlToContentTransformTest: Ensure individual defaults with options set
Follow-Up: I1fade591e73034e071417d31fbdfff1a83180360
Change-Id: Ie470dddf51407a4c1717ad32bf19f7ef870fc92d
2023-06-28 16:33:58 +03:00
daniel
9338889682 HtmlToContentTransform: define default values for options
It should not be necessary to call setOptions() to perform a
transformation. All options should have defaults defined.

Change-Id: I1fade591e73034e071417d31fbdfff1a83180360
2023-06-28 09:41:43 +00:00
daniel
6fd3a7b0b0 Stash original wikitext when rendering unsaved content.
When visual editor switches from source mode to visual mode, we need to
stash the wikitext. Otherwise, we later lack the proper context to
convert the modified HTML back to wikitext.

Bug: T321862
Change-Id: Id611e6e022bf8d9d774ca1a3a214220ada713285
2022-11-04 17:17:32 +01:00
daniel
f545d5efeb Rename HTMLTransform to HtmlToContentTransform
* We will have several kinds of HTML transformations.
Rename HTMLTransform to indicate that its for converting HTML to Content
objects.

* Using Naming Convention 'Html' instead of 'HTML'

Change-Id: I506f3303ae8f9e4db17299211366bef1558f142c
2022-11-03 16:47:36 +01:00
Renamed from tests/phpunit/integration/includes/parser/Parsoid/HTMLTransformTest.php (Browse further)