Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Tests/ONOHTMLTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ - (void)testTitleCSS {
XCTAssertTrue(idx == 1, @"fewer than one element found");
}

- (void)testTitleCSSSpace {
ONOXMLElement *element = [self.document firstChildWithCSS:@".listEvent.sro"];
XCTAssertNotNil(element, @"Table should not be nil");
}

- (void)testIDCSS {
NSUInteger idx = 0;
for (ONOXMLElement *element in [self.document CSS:@"#account_settings"]) {
Expand Down
16 changes: 15 additions & 1 deletion Tests/web.html
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,20 @@ <h2>
<a href="#" class="octicon octicon-remove-close close js-ajax-error-dismiss"></a>
Something went wrong with that request. Please try again.
</div>

<table class="listEvent sro">
<tr>
<td valign="top" class="sroDtEvent">
Item 1a </td>
<td class="sroLbEvent">
Item 1b </td>
</tr>
<tr>
<td valign="top" class="sroDtEvent">
Item 2a </td>
<td class="sroLbEvent">
Item 2b </td>
</tr>

</table>
</body>
</html>