mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
Fixed: Removed old Rhino adjustments in test cases
This commit is contained in:
1 parent
119e11cfe2
commit
830fbbab26
1 file changed
+8
-14
@@ -28,23 +28,17 @@ var fs = require("fs"),
|
||||
}
|
||||
|
||||
- (void)testPropertyListFromXMLShouldHandleEmptyXMLGracefully {
|
||||
// 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];
|
||||
}
|
||||
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];
|
||||
}
|
||||
|
||||
- (void)testPropertyListFromXMLShouldHandleEmptierXMLGracefully {
|
||||
// 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];
|
||||
}
|
||||
var XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
object = CFPropertyList.propertyListFromXML(XML);
|
||||
|
||||
[self assert:object equals:null];
|
||||
}
|
||||
|
||||
// This is removed as the Node module xmldom/xmldom will print out an error (will not fail) when the xml string is empty
|
||||
|
||||
Reference in new issue
Block a user