Add Tests for Issue #294
This commit is contained in:
parent
95702e6355
commit
e6ca8f597f
3 changed files with 18 additions and 0 deletions
|
@ -107,6 +107,10 @@ describe("V2XmlFormatter", () => {
|
|||
it("should not add trailing whitespace", () => {
|
||||
testFormatter(xmlFormatter, options, "issue-288");
|
||||
});
|
||||
|
||||
it("should handle mixed content on the same line as another element", () => {
|
||||
testFormatter(xmlFormatter, options, "issue-294");
|
||||
});
|
||||
});
|
||||
|
||||
describe("#minifyXml(xml, options)", () => {
|
||||
|
|
7
src/test/test-data/issue-294.formatted.xml
Normal file
7
src/test/test-data/issue-294.formatted.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0">
|
||||
<div>
|
||||
ThisCausesBug <img src="test"/>
|
||||
<img src="test"/>
|
||||
</div>
|
||||
</xsl:stylesheet>
|
7
src/test/test-data/issue-294.unformatted.xml
Normal file
7
src/test/test-data/issue-294.unformatted.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0">
|
||||
<div>
|
||||
ThisCausesBug <img src="test"/>
|
||||
<img src="test"/>
|
||||
</div>
|
||||
</xsl:stylesheet>
|
Loading…
Add table
Reference in a new issue