mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-13 12:07:08 +00:00
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:
1 parent
31d17cada7
commit
d51f179c2d
1 file changed
+18
-9
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user