()
| 176 | } |
| 177 | |
| 178 | closeSidebar() { |
| 179 | if (this.sidebarCloseButton_) { |
| 180 | return new Promise((resolve) => { |
| 181 | this.sidebarCloseButton_.click(); |
| 182 | // TODO implement a better method to detect when |
| 183 | // closing sidebar has finished |
| 184 | setTimeout(() => resolve(), 100); |
| 185 | }); |
| 186 | } else { |
| 187 | return Promise.resolve(); |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | class AmpViewer { |
no test coverage detected