@@ -57,7 +57,7 @@ - (void)testSingleDescendantXMLRepresentation
5757 NSString *xmlStr = [FBXPath xmlStringWithRootElement: wrappedSnapshot
5858 options: nil ];
5959 XCTAssertNotNil (xmlStr);
60- NSString *expectedXml = [NSString stringWithFormat: @" <?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <%@ type=\" %@ \" name=\" %@ \" label=\" %@ \" enabled=\" %@ \" visible=\" %@ \" accessible=\" %@ \" x=\" %@ \" y=\" %@ \" width=\" %@ \" height=\" %@ \" index=\" %lu \" placeholderValue= \" %@ \" />\n " , wrappedSnapshot.wdType, wrappedSnapshot.wdType, wrappedSnapshot.wdName, wrappedSnapshot.wdLabel, FBBoolToString (wrappedSnapshot.wdEnabled), FBBoolToString (wrappedSnapshot.wdVisible), FBBoolToString (wrappedSnapshot.wdAccessible), [wrappedSnapshot.wdRect[@" x" ] stringValue ], [wrappedSnapshot.wdRect[@" y" ] stringValue ], [wrappedSnapshot.wdRect[@" width" ] stringValue ], [wrappedSnapshot.wdRect[@" height" ] stringValue ], wrappedSnapshot.wdIndex, wrappedSnapshot.wdPlaceholderValue ];
60+ NSString *expectedXml = [NSString stringWithFormat: @" <?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <%@ type=\" %@ \" name=\" %@ \" label=\" %@ \" enabled=\" %@ \" visible=\" %@ \" accessible=\" %@ \" x=\" %@ \" y=\" %@ \" width=\" %@ \" height=\" %@ \" index=\" %lu \" />\n " , wrappedSnapshot.wdType, wrappedSnapshot.wdType, wrappedSnapshot.wdName, wrappedSnapshot.wdLabel, FBBoolToString (wrappedSnapshot.wdEnabled), FBBoolToString (wrappedSnapshot.wdVisible), FBBoolToString (wrappedSnapshot.wdAccessible), [wrappedSnapshot.wdRect[@" x" ] stringValue ], [wrappedSnapshot.wdRect[@" y" ] stringValue ], [wrappedSnapshot.wdRect[@" width" ] stringValue ], [wrappedSnapshot.wdRect[@" height" ] stringValue ], wrappedSnapshot.wdIndex];
6161 XCTAssertEqualObjects (xmlStr, expectedXml);
6262}
6363
@@ -70,7 +70,7 @@ - (void)testSingleDescendantXMLRepresentationWithScope
7070 NSString *xmlStr = [FBXPath xmlStringWithRootElement: wrappedSnapshot
7171 options: options];
7272 XCTAssertNotNil (xmlStr);
73- NSString *expectedXml = [NSString stringWithFormat: @" <?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <%@ >\n <%@ type=\" %@ \" name=\" %@ \" label=\" %@ \" enabled=\" %@ \" visible=\" %@ \" accessible=\" %@ \" x=\" %@ \" y=\" %@ \" width=\" %@ \" height=\" %@ \" index=\" %lu \" placeholderValue= \" %@ \" />\n </%@ >\n " , scope, wrappedSnapshot.wdType, wrappedSnapshot.wdType, wrappedSnapshot.wdName, wrappedSnapshot.wdLabel, FBBoolToString (wrappedSnapshot.wdEnabled), FBBoolToString (wrappedSnapshot.wdVisible), FBBoolToString (wrappedSnapshot.wdAccessible), [wrappedSnapshot.wdRect[@" x" ] stringValue ], [wrappedSnapshot.wdRect[@" y" ] stringValue ], [wrappedSnapshot.wdRect[@" width" ] stringValue ], [wrappedSnapshot.wdRect[@" height" ] stringValue ], wrappedSnapshot.wdIndex, wrappedSnapshot.wdPlaceholderValue , scope];
73+ NSString *expectedXml = [NSString stringWithFormat: @" <?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <%@ >\n <%@ type=\" %@ \" name=\" %@ \" label=\" %@ \" enabled=\" %@ \" visible=\" %@ \" accessible=\" %@ \" x=\" %@ \" y=\" %@ \" width=\" %@ \" height=\" %@ \" index=\" %lu \" />\n </%@ >\n " , scope, wrappedSnapshot.wdType, wrappedSnapshot.wdType, wrappedSnapshot.wdName, wrappedSnapshot.wdLabel, FBBoolToString (wrappedSnapshot.wdEnabled), FBBoolToString (wrappedSnapshot.wdVisible), FBBoolToString (wrappedSnapshot.wdAccessible), [wrappedSnapshot.wdRect[@" x" ] stringValue ], [wrappedSnapshot.wdRect[@" y" ] stringValue ], [wrappedSnapshot.wdRect[@" width" ] stringValue ], [wrappedSnapshot.wdRect[@" height" ] stringValue ], wrappedSnapshot.wdIndex, scope];
7474 XCTAssertEqualObjects (xmlStr, expectedXml);
7575}
7676
@@ -83,7 +83,7 @@ - (void)testSingleDescendantXMLRepresentationWithoutAttributes
8383 NSString *xmlStr = [FBXPath xmlStringWithRootElement: wrappedSnapshot
8484 options: options];
8585 XCTAssertNotNil (xmlStr);
86- NSString *expectedXml = [NSString stringWithFormat: @" <?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <%@ type=\" %@ \" name=\" %@ \" label=\" %@ \" accessible=\" %@ \" x=\" %@ \" y=\" %@ \" width=\" %@ \" height=\" %@ \" placeholderValue= \" %@ \" />\n " , wrappedSnapshot.wdType, wrappedSnapshot.wdType, wrappedSnapshot.wdName, wrappedSnapshot.wdLabel, FBBoolToString (wrappedSnapshot.wdAccessible), [wrappedSnapshot.wdRect[@" x" ] stringValue ], [wrappedSnapshot.wdRect[@" y" ] stringValue ], [wrappedSnapshot.wdRect[@" width" ] stringValue ], [wrappedSnapshot.wdRect[@" height" ] stringValue ], wrappedSnapshot.wdPlaceholderValue ];
86+ NSString *expectedXml = [NSString stringWithFormat: @" <?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <%@ type=\" %@ \" name=\" %@ \" label=\" %@ \" accessible=\" %@ \" x=\" %@ \" y=\" %@ \" width=\" %@ \" height=\" %@ \" />\n " , wrappedSnapshot.wdType, wrappedSnapshot.wdType, wrappedSnapshot.wdName, wrappedSnapshot.wdLabel, FBBoolToString (wrappedSnapshot.wdAccessible), [wrappedSnapshot.wdRect[@" x" ] stringValue ], [wrappedSnapshot.wdRect[@" y" ] stringValue ], [wrappedSnapshot.wdRect[@" width" ] stringValue ], [wrappedSnapshot.wdRect[@" height" ] stringValue ]];
8787 XCTAssertEqualObjects (xmlStr, expectedXml);
8888}
8989
0 commit comments