Add category to overwrite isEqual method in Parse Error tokens for testing
All parse error are treated as equal
This commit is contained in:
@@ -8,20 +8,36 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <XCTest/XCTest.h>
|
||||
#import "HTMLKitTests.h"
|
||||
#import "HTML5LibTest.h"
|
||||
|
||||
@interface HTMLTokenizerTests : XCTestCase
|
||||
#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 {
|
||||
- (void)setUp
|
||||
{
|
||||
[super setUp];
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
- (void)tearDown {
|
||||
- (void)tearDown
|
||||
{
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
[super tearDown];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user