Skip to content

Commit 5d335a5

Browse files
ars18wrwiText-CI
authored andcommitted
Add a test on NPE while updating layout box of flex element
DEVSIX-5237 Autoported commit. Original commit hash: [d3a39722]
1 parent 89e2590 commit 5d335a5

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/css/DisplayFlexTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,12 @@ private static void AssertDiv(IElement element, String text) {
458458
).GetText());
459459
}
460460

461+
[NUnit.Framework.Test]
462+
[LogMessage(iText.IO.LogMessageConstant.RECTANGLE_HAS_NEGATIVE_SIZE)]
463+
public virtual void ResultOccupiedAreaNullSplitRenderersNotTest() {
464+
ConvertToPdfAndCompare("resultOccupiedAreaNullSplitRenderersNot", SOURCE_FOLDER, DESTINATION_FOLDER);
465+
}
466+
461467
private static IList<IElement> ConvertToElements(String name) {
462468
String sourceHtml = SOURCE_FOLDER + name + ".html";
463469
ConverterProperties converterProperties = new ConverterProperties().SetBaseUri(SOURCE_FOLDER);
952 Bytes
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<body>
3+
<div style="display: flex; height: 100px; ">
4+
<div style="display: flex">
5+
<textarea style="height: 100px;"></textarea>
6+
</div>
7+
</div>
8+
</body>
9+
</html>

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b24d116eba08d23df600e85d53e9772fa37826bb
1+
d3a397223696ff9763d006e176b6247cff46b7c9

0 commit comments

Comments
 (0)