7fb04f3394
Instead of loading and running the HTML5Lib test files manually, the Xcode test cases are generated on start for all the HTML5Lib tokenizer tests. Also, the performance test is moved into its own class. This setup shouldn't require any extra maintenance when HTML5Lib adds new tokenizer test cases.
24 lines
629 B
Objective-C
24 lines
629 B
Objective-C
//
|
|
// HTML5LibTest.h
|
|
// HTMLKit
|
|
//
|
|
// Created by Iska on 25/10/14.
|
|
// Copyright (c) 2014 BrainCookie. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface HTML5LibTokenizerTest : NSObject
|
|
|
|
@property (nonatomic, copy) NSString *testFile;
|
|
@property (nonatomic, copy) NSString *title;
|
|
@property (nonatomic, copy) NSString *input;
|
|
@property (nonatomic, strong) NSArray *output;
|
|
@property (nonatomic, strong) NSArray *initialStates;
|
|
@property (nonatomic, copy) NSString *lastStartTag;
|
|
@property (nonatomic, assign) BOOL ignoreErrorOrder;
|
|
|
|
- (instancetype)initWithTestDictionary:(NSDictionary *)dictionary;
|
|
|
|
@end
|