From c524b250515b58fdc1ea256dda8269012b223666 Mon Sep 17 00:00:00 2001 From: iska Date: Sun, 12 Apr 2015 18:23:54 +0200 Subject: [PATCH] Add HTML5 Lib's test detail message to all assertions in the Tree Construction tests --- HTMLKitTests/HTMLKitTreeConstructionTests.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HTMLKitTests/HTMLKitTreeConstructionTests.m b/HTMLKitTests/HTMLKitTreeConstructionTests.m index 59fad66..cfb7430 100644 --- a/HTMLKitTests/HTMLKitTreeConstructionTests.m +++ b/HTMLKitTests/HTMLKitTreeConstructionTests.m @@ -130,18 +130,18 @@ switch (actual.type) { case HTMLNodeDocumentType: - XCTAssertEqualObjects([(HTMLDocumentType *)actual publicIdentifier], [(HTMLDocumentType *)expected publicIdentifier]); - XCTAssertEqualObjects([(HTMLDocumentType *)actual systemIdentifier], [(HTMLDocumentType *)expected systemIdentifier]); + XCTAssertEqualObjects([(HTMLDocumentType *)actual publicIdentifier], [(HTMLDocumentType *)expected publicIdentifier], @"%@", message); + XCTAssertEqualObjects([(HTMLDocumentType *)actual systemIdentifier], [(HTMLDocumentType *)expected systemIdentifier], @"%@", message); break; case HTMLNodeElement: - XCTAssertEqualObjects([(HTMLElement *)actual attributes], [(HTMLElement *)expected attributes]); + XCTAssertEqualObjects([(HTMLElement *)actual attributes], [(HTMLElement *)expected attributes], @"%@", message); AssertEqualChildNodes((HTMLElement *)actual, (HTMLElement *)expected, message); break; case HTMLNodeComment: - XCTAssertEqualObjects([(HTMLComment *)actual data], [(HTMLComment *)expected data]); + XCTAssertEqualObjects([(HTMLComment *)actual data], [(HTMLComment *)expected data], @"%@", message); break; case HTMLNodeText: - XCTAssertEqualObjects([(HTMLText *)actual data], [(HTMLText *)expected data]); + XCTAssertEqualObjects([(HTMLText *)actual data], [(HTMLText *)expected data], @"%@", message); break; default: break;