Permalink
Browse files

(split)Clean up

  • Loading branch information...
schwa committed Mar 29, 2010
1 parent e4ba675 commit a31918e8ea4bc167a6456ce88317a250869a2a07
Showing with 7 additions and 4 deletions.
  1. +1 −1 TouchXML.xcodeproj/project.pbxproj
  2. +6 −3 UnitTests/Source/XPath_Tests.m
@@ -74,7 +74,7 @@
isa = PBXContainerItemProxy;
containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
proxyType = 1;
- remoteGlobalIDString = 451E6E301152EB4A0024ABA5 /* Validator */;
+ remoteGlobalIDString = 451E6E301152EB4A0024ABA5;
remoteInfo = Validator;
};
457941070D82219E00EB2D22 /* PBXContainerItemProxy */ = {
@@ -31,6 +31,7 @@
#import "CXMLDocument.h"
#import "CXMLElement.h"
+#import "CXMLNode_XPathExtensions.h"
@implementation XPath_Tests
@@ -47,7 +48,6 @@ - (void)test_nodeNavigation
STAssertTrue([theNodes count] == 2, NULL);
}
-/* THIS FAILS
- (void)test_xmlns
{
NSError *theError = NULL;
@@ -58,10 +58,13 @@ - (void)test_xmlns
NSArray *theNodes = NULL;
-theNodes = [theXMLDocument nodesForXPath:@"//Timestamp" error:&theError];
+NSDictionary *theMappings = [NSDictionary dictionaryWithObjectsAndKeys:
+ @"urn:ebay:apis:eBLBaseComponents", @"ebay",
+ NULL];
+
+theNodes = [theXMLDocument nodesForXPath:@"//ebay:Timestamp" namespaceMappings:theMappings error:&theError];
STAssertTrue([theNodes count] == 1, NULL);
}
-*/
- (void)test_relative_paths
{

0 comments on commit a31918e

Please sign in to comment.