(domNode: DOMNode, name: string, value: any)
| 96 | } |
| 97 | |
| 98 | function assertAttribute(domNode: DOMNode, name: string, value: any) { |
| 99 | const propIdx = domNode.attributes.indexOf(name); |
| 100 | assert(propIdx >= 0, `Attribute ${name} not found`); |
| 101 | assertEqual(domNode.attributes[propIdx + 1], value); |
| 102 | } |
| 103 | |
| 104 | export function test_custom_attribute_is_reported_in_dom_node() { |
| 105 | const btn = new Button(); |
no test coverage detected