Skip to content

Commit

Permalink
Remove quote from test of XML escape (#754)
Browse files Browse the repository at this point in the history
The plan in scala-xml 2.0 is to stop escaping quotation marks in XML
element text (attribute text will still escape quotes).
  • Loading branch information
ashawley authored and etorreborre committed Jul 10, 2019
1 parent bb6254f commit 8575ee2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ is formatted for JUnit reporting tools.

object test {
def e1 = { print(ownEnv)("t1" ^ br ^ "e1<>&\"" ! success) must \\("testcase", "classname" -> "org.specs2.reporter.JUnitXmlPrinterSpec") }
def e2 = { print(ownEnv)(start ^ "t1" ^ br ^ "e1<>&\"" ! success ^ end) must \\("testcase", "name" -> scala.xml.Utility.escape("t1::e1<>&\"")) }
def e2 = { print(ownEnv)(start ^ "t1" ^ br ^ "e1<>&" ! success ^ end) must \\("testcase", "name" -> "t1::e1&lt;&gt;&amp;") }
def e3 = { print(ownEnv)("t1" ^ br ^ "e1<>&\"" ! success) must \\("testcase", "time") }
}

Expand Down

0 comments on commit 8575ee2

Please sign in to comment.