@@ -766,8 +766,8 @@ class XMLTestJVM {
766
766
assertEquals(x, XML .loadString(formatted))
767
767
}
768
768
769
- @ UnitTest (expected = classOf [ FatalError ])
770
- def xTokenFailure {
769
+ @ UnitTest
770
+ def xTokenTest {
771
771
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" a" ), false )
772
772
assertEquals((): Unit , x.xToken('b' ))
773
773
}
@@ -786,27 +786,39 @@ class XMLTestJVM {
786
786
x.xComment
787
787
}
788
788
789
- @ UnitTest (expected = classOf [ FatalError ])
790
- def xmlProcInstrFailure {
789
+ @ UnitTest
790
+ def xmlProcInstrTest {
791
791
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" aa" ), false )
792
792
793
793
assertEquals(new UnprefixedAttribute (" aa" , Text (" " ), Null ), x.xmlProcInstr)
794
794
}
795
795
796
- @ Ignore (" Ignored for future fix, currently throw OOE because of infinity MarkupParserCommon:66" )
797
796
@ UnitTest (expected = classOf [FatalError ])
798
- def xAttributeValueFailure {
797
+ def notationDeclFailure {
799
798
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
800
799
801
- x.xAttributeValue
800
+ x.notationDecl
802
801
}
803
802
804
- @ Ignore (" Ignored for future fix, currently return unexpected result" )
805
- @ UnitTest (expected = classOf [FatalError ])
806
- def xEntityValueFailure {
803
+ @ UnitTest
804
+ def pubidLiteralTest {
805
+ val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
806
+
807
+ assertEquals(" " , x.pubidLiteral)
808
+ }
809
+
810
+ @ UnitTest
811
+ def xAttributeValueTest {
812
+ val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" '" ), false )
813
+
814
+ assertEquals(" " , x.xAttributeValue)
815
+ }
816
+
817
+ @ UnitTest
818
+ def xEntityValueTest {
807
819
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
808
820
809
- x.xEntityValue
821
+ assertEquals( " " , x.xEntityValue)
810
822
}
811
823
812
824
}
0 commit comments