@@ -769,27 +769,35 @@ class XMLTestJVM {
769
769
x.xComment
770
770
}
771
771
772
- @ UnitTest (expected = classOf [FatalError ])
773
772
def xmlProcInstrFailure {
774
773
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" aa" ), false )
775
774
776
- x.xmlProcInstr
775
+ assertEquals(scala.xml. Null , x.xmlProcInstr)
777
776
}
778
777
779
- @ Ignore (" Ignored for future fix, currently throw OOE because of infinity MarkupParserCommon:66" )
780
778
@ UnitTest (expected = classOf [FatalError ])
781
- def xAttributeValueFailure {
779
+ def notationDeclFailure {
782
780
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
783
781
784
- x.xAttributeValue
782
+ x.notationDecl
783
+ }
784
+
785
+ def pubidLiteralFailure {
786
+ val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
787
+
788
+ assertEquals(" " , x.pubidLiteral)
789
+ }
790
+
791
+ def xAttributeValueFailure {
792
+ val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" '" ), false )
793
+
794
+ assertEquals(" " , x.xAttributeValue)
785
795
}
786
796
787
- @ Ignore (" Ignored for future fix, currently return unexpected result" )
788
- @ UnitTest (expected = classOf [FatalError ])
789
797
def xEntityValueFailure {
790
798
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
791
799
792
- x.xEntityValue
800
+ assertEquals( " " , x.xEntityValue)
793
801
}
794
802
795
803
}
0 commit comments