Bug fixes, aria, cross platform support.
This commit is contained in:
@@ -81,6 +81,15 @@ final class HRWTests: XCTestCase {
|
||||
let htmlRoot = rootNodes[2]
|
||||
print(htmlRoot.toString())
|
||||
}
|
||||
|
||||
func testAriaAttributesAreGlobal() throws {
|
||||
guard let xmlReader = XMLParser(str: #"<span aria-hidden="true">Hidden</span>"#) else { throw EmptyStringError() }
|
||||
let rootNodes = try xmlReader.readObjects()
|
||||
let span = rootNodes[0] as! Span
|
||||
|
||||
XCTAssertEqual(span.ariaAttributes["aria-hidden"], "true")
|
||||
XCTAssertTrue(span.renderAttributes().contains("aria-hidden='true'"))
|
||||
}
|
||||
|
||||
func testBindingGenerator() throws {
|
||||
IHtmlNodeContainerUtility.sharedInstance.defaultBaseDir = "/Users/isaacpaul/Projects/swift-projects/HRW/Tests/HRWTests"
|
||||
|
||||
Reference in New Issue
Block a user