1 onconnect = function(event) {
2 if (event.__proto__ === MessageEvent.prototype)
3 event.ports[0].postMessage("PASS: event.__proto__ is MessageEvent.prototype");
5 event.ports[0].postMessage("FAIL: event.__proto__ is not MessageEvent.prototype");
6 if (event.source === event.ports[0])
7 event.ports[0].postMessage("PASS: event.source is event.ports[0]");
9 event.ports[0].postMessage("FAIL: event.source is not event.ports[0]");
10 event.ports[0].postMessage("DONE:");