()
| 229 | |
| 230 | socket.on(class="st">"open", () => { |
| 231 | const handler = () => { |
| 232 | expect(socket.transport.readyState).to.eql(class="st">"closed"); |
| 233 | expect(() => socket.write(class="st">"ignored")).to.not.throwException(); |
| 234 | |
| 235 | removeEventListener(class="st">"beforeunload", handler, false); |
| 236 | done(); |
| 237 | }; |
| 238 | |
| 239 | addEventListener(class="st">"beforeunload", handler, false); |
| 240 | dispatchEvent(createEvent(class="st">"beforeunload")); |
nothing calls this directly
no test coverage detected