Skip to content

Commit

Permalink
Fix running tests pre-iOS 8 and pre-OS X 10.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanw committed Jul 3, 2016
1 parent 3850b1e commit 255ffd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/HTMLTreeConstructionTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ - (HTMLTreeConstructionTest *)testWithSingleTestString:(NSString *)string
[scanner scanString:@"#data\n" intoString:nil];
NSString *data;
[scanner scanUpToString:@"#errors\n" intoString:&data];
if ([data containsString:@"#script-off"]) {
if ([data rangeOfString:@"#script-off"].location != NSNotFound) {
return nil;
}
if (data.length > 0) {
Expand Down

0 comments on commit 255ffd9

Please sign in to comment.