Add category to overwrite isEqual method in Parse Error tokens for testing

All parse error are treated as equal
This commit is contained in:
iska
2014-10-26 18:12:25 +01:00
parent e43d7c21d1
commit e7126a720f
+19 -3
View File
@@ -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];
}