From 830fbbab2691472d2fe73608768aa1ea8171b792 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Mon, 20 Sep 2021 10:51:14 +0200 Subject: [PATCH] Fixed: Removed old Rhino adjustments in test cases --- Tests/Objective-J/CFPropertyListTest.j | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Tests/Objective-J/CFPropertyListTest.j b/Tests/Objective-J/CFPropertyListTest.j index 780da024f..cadd255eb 100644 --- a/Tests/Objective-J/CFPropertyListTest.j +++ b/Tests/Objective-J/CFPropertyListTest.j @@ -28,23 +28,17 @@ var fs = require("fs"), } - (void)testPropertyListFromXMLShouldHandleEmptyXMLGracefully { - // rhino can't parse empty XML documents - if (system.engine !== "rhino") { - var XML = "", - object = CFPropertyList.propertyListFromXML(XML); - - [self assert:object equals:null]; - } + var XML = "", + object = CFPropertyList.propertyListFromXML(XML); + + [self assert:object equals:null]; } - (void)testPropertyListFromXMLShouldHandleEmptierXMLGracefully { - // rhino can't parse empty XML documents - if (system.engine !== "rhino") { - var XML = "", - object = CFPropertyList.propertyListFromXML(XML); - - [self assert:object equals:null]; - } + var XML = "", + 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