135715b606
Fixes #16
39 lines
611 B
Objective-C
39 lines
611 B
Objective-C
//
|
|
// HTMLSerializationTests.m
|
|
// HTMLKit
|
|
//
|
|
// Created by Iska on 06.11.17.
|
|
// Copyright © 2017 BrainCookie. All rights reserved.
|
|
//
|
|
|
|
#import <XCTest/XCTest.h>
|
|
#import "HTMLDOM.h"
|
|
|
|
@interface HTMLSerializationTests : XCTestCase
|
|
|
|
@end
|
|
|
|
@implementation HTMLSerializationTests
|
|
|
|
- (void)setUp {
|
|
[super setUp];
|
|
}
|
|
|
|
- (void)tearDown {
|
|
[super tearDown];
|
|
}
|
|
|
|
#pragma mark - Bug Fixes
|
|
|
|
- (void)testBugFix_Issue_16
|
|
{
|
|
NSString *html = @"<body><div><test></div></body>";
|
|
HTMLDocument *document = [HTMLDocument documentWithString:html];
|
|
|
|
XCTAssertEqualObjects(document.body.outerHTML, html);
|
|
}
|
|
|
|
}
|
|
|
|
@end
|