(markup)
| 18 | let assertLog; |
| 19 | |
| 20 | function getTestDocument(markup) { |
| 21 | const doc = document.implementation.createHTMLDocument(''); |
| 22 | doc.open(); |
| 23 | doc.write( |
| 24 | markup || |
| 25 | '<!doctype html><html><meta charset=utf-8><title>test doc</title>', |
| 26 | ); |
| 27 | doc.close(); |
| 28 | return doc; |
| 29 | } |
| 30 | |
| 31 | function normalizeError(msg) { |
| 32 | // Take the first sentence to make it easier to assert on. |
no test coverage detected