e7126a720f
All parse error are treated as equal
58 lines
1.1 KiB
Objective-C
58 lines
1.1 KiB
Objective-C
//
|
|
// HTMLTokenizerTests.m
|
|
// HTMLKit
|
|
//
|
|
// Created by Iska on 25/10/14.
|
|
// Copyright (c) 2014 BrainCookie. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <XCTest/XCTest.h>
|
|
#import "HTMLKitTests.h"
|
|
#import "HTML5LibTest.h"
|
|
|
|
#import "HTMLTokenizer.h"
|
|
#import "HTMLTokenizerStates.h"
|
|
#import "HTMLTokens.h"
|
|
|
|
@implementation HTMLParseErrorToken (Testing)
|
|
|
|
- (BOOL)isEqual:(id)object
|
|
{
|
|
return [object isKindOfClass:[HTMLParseErrorToken class]];
|
|
}
|
|
|
|
@end
|
|
|
|
@interface HTMLTokenizerTests : HTMLKitTests
|
|
|
|
@end
|
|
|
|
@implementation HTMLTokenizerTests
|
|
|
|
- (void)setUp
|
|
{
|
|
[super setUp];
|
|
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
}
|
|
|
|
- (void)tearDown
|
|
{
|
|
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
[super tearDown];
|
|
}
|
|
|
|
- (void)testExample {
|
|
// This is an example of a functional test case.
|
|
XCTAssert(YES, @"Pass");
|
|
}
|
|
|
|
- (void)testPerformanceExample {
|
|
// This is an example of a performance test case.
|
|
[self measureBlock:^{
|
|
// Put the code you want to measure the time of here.
|
|
}];
|
|
}
|
|
|
|
@end
|