Fixed: error when running some XML tests with rhino.

This problem causes error in Travis that are not errors with JSC.
This commit is contained in:
Alexander Ljungberg committed 2014-03-10 22:44:00 +00:00
1 parent 31d17cada7
commit d51f179c2d
1 file changed
+18 -9
+18 -9
View File
@@ -26,24 +26,33 @@ var FILE = require("file"),
}
- (void)testPropertyListFromXMLShouldHandleEmptyXMLGracefully {
var XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">",
object = CFPropertyList.propertyListFromXML(XML);
// rhino can't parse empty XML documents
if (system.engine !== "rhino") {
var XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">",
object = CFPropertyList.propertyListFromXML(XML);
[self assert:object equals:null];
[self assert:object equals:null];
}
}
- (void)testPropertyListFromXMLShouldHandleEmptierXMLGracefully {
var XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
object = CFPropertyList.propertyListFromXML(XML);
// rhino can't parse empty XML documents
if (system.engine !== "rhino") {
var XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
object = CFPropertyList.propertyListFromXML(XML);
[self assert:object equals:null];
[self assert:object equals:null];
}
}
- (void)testPropertyListFromXMLShouldHandleEmptiestXMLGracefully {
var XML = "",
object = CFPropertyList.propertyListFromXML(XML);
// rhino can't parse empty XML documents
if (system.engine !== "rhino") {
var XML = "",
object = CFPropertyList.propertyListFromXML(XML);
[self assert:object equals:null];
[self assert:object equals:null];
}
}
- (void)testPropertyListFromXMLShouldParseNiceAndCleanXML {