hasOuterHtml function
A matcher for checking the outerHTML
of a HTMLElement
.
Implementation
Matcher hasOuterHtml(String outerHtml) {
return isA<web.HTMLElement>()
.having((e) => e.instanceOfString('HTMLElement'), 'instanceOf(HTMLElement)', isTrue)
.having((e) => e.outerHTML, 'outerHTML', outerHtml);
}