(url)
| 137 | } |
| 138 | |
| 139 | function renderToHTML(url) { |
| 140 | let app = this.createApplication(); |
| 141 | let dom = new SimpleDOM.Document(); |
| 142 | let root = dom.body; |
| 143 | |
| 144 | return this.run(app, 'visit', url, { |
| 145 | isBrowser: false, |
| 146 | document: dom, |
| 147 | rootElement: root, |
| 148 | }).then(function () { |
| 149 | let serializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap); |
| 150 | return serializer.serialize(root); |
| 151 | }); |
| 152 | } |
| 153 | |
| 154 | function registerApplicationClasses(app, registry) { |
| 155 | app.initializer({ |
nothing calls this directly
no test coverage detected