Skip to content

Commit aedbafb

Browse files
AnhelinaMiText-CI
authored andcommitted
Fix model element/form field recreation with (re)setting parameters
DEVSIX-7423 Autoported commit. Original commit hash: [108f01717]
1 parent 808ad52 commit aedbafb

File tree

62 files changed

+4
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+4
-29
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/element/FormTest.cs

+3-28
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ You should have received a copy of the GNU Affero General Public License
2222
*/
2323
using System;
2424
using System.IO;
25-
using iText.Commons.Utils;
2625
using iText.Forms;
2726
using iText.Forms.Logs;
2827
using iText.Html2pdf;
@@ -84,28 +83,12 @@ public virtual void SimpleButtonTest() {
8483

8584
[NUnit.Framework.Test]
8685
public virtual void FieldsetTest() {
87-
// TODO: DEVSIX-7423 - remove flag
88-
bool experimentalRenderingPreviousValue = ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING;
89-
ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING = false;
90-
try {
91-
RunTest("fieldset");
92-
}
93-
finally {
94-
ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING = experimentalRenderingPreviousValue;
95-
}
86+
RunTest("fieldset");
9687
}
9788

9889
[NUnit.Framework.Test]
9990
public virtual void FieldsetLegendTest() {
100-
// TODO: DEVSIX-7423 - remove flag
101-
bool experimentalRenderingPreviousValue = ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING;
102-
ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING = false;
103-
try {
104-
RunTest("fieldsetLegend");
105-
}
106-
finally {
107-
ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING = experimentalRenderingPreviousValue;
108-
}
91+
RunTest("fieldsetLegend");
10992
}
11093

11194
[NUnit.Framework.Test]
@@ -121,15 +104,7 @@ public virtual void FieldInTablePercent() {
121104

122105
[NUnit.Framework.Test]
123106
public virtual void InputDisplayTest() {
124-
// TODO: DEVSIX-7423 - remove flag
125-
bool experimentalRenderingPreviousValue = ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING;
126-
ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING = false;
127-
try {
128-
RunTest("inputDisplay");
129-
}
130-
finally {
131-
ExperimentalFeatures.ENABLE_EXPERIMENTAL_TEXT_FORM_RENDERING = experimentalRenderingPreviousValue;
132-
}
107+
RunTest("inputDisplay");
133108
}
134109

135110
[NUnit.Framework.Test]

port-hash

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
05be04ca906a2329e95da533b83efd62d81368ec
1+
108f01717edeb7a5ceaecdedc9e949c9c56d27b9

0 commit comments

Comments
 (0)