@@ -659,27 +659,35 @@ class XMLTestJVM {
659
659
x.xComment
660
660
}
661
661
662
- @ UnitTest (expected = classOf [FatalError ])
663
662
def xmlProcInstrFailure {
664
663
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" aa" ), false )
665
664
666
- x.xmlProcInstr
665
+ assertEquals(scala.xml. Null , x.xmlProcInstr)
667
666
}
668
667
669
- @ Ignore (" Ignored for future fix, currently throw OOE because of infinity MarkupParserCommon:66" )
670
668
@ UnitTest (expected = classOf [FatalError ])
671
- def xAttributeValueFailure {
669
+ def notationDeclFailure {
672
670
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
673
671
674
- x.xAttributeValue
672
+ x.notationDecl
673
+ }
674
+
675
+ def pubidLiteralFailure {
676
+ val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
677
+
678
+ assertEquals(" " , x.pubidLiteral)
679
+ }
680
+
681
+ def xAttributeValueFailure {
682
+ val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" '" ), false )
683
+
684
+ assertEquals(" " , x.xAttributeValue)
675
685
}
676
686
677
- @ Ignore (" Ignored for future fix, currently return unexpected result" )
678
- @ UnitTest (expected = classOf [FatalError ])
679
687
def xEntityValueFailure {
680
688
val x = xml.parsing.ConstructingParser .fromSource(io.Source .fromString(" " ), false )
681
689
682
- x.xEntityValue
690
+ assertEquals( " " , x.xEntityValue)
683
691
}
684
692
685
693
}
0 commit comments