Index: LayoutTests/fast/workers/resources/messageevent-source.js |
diff --git a/LayoutTests/fast/workers/resources/messageevent-source.js b/LayoutTests/fast/workers/resources/messageevent-source.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1b72adb097a09969f0753b0247736c47fe9d238 |
--- /dev/null |
+++ b/LayoutTests/fast/workers/resources/messageevent-source.js |
@@ -0,0 +1,11 @@ |
+onconnect = function(event) { |
+ if (event.__proto__ === MessageEvent.prototype) |
+ event.ports[0].postMessage("PASS: event.__proto__ is MessageEvent.prototype"); |
+ else |
+ event.ports[0].postMessage("FAIL: event.__proto__ is not MessageEvent.prototype"); |
+ if (event.source === event.ports[0]) |
+ event.ports[0].postMessage("PASS: event.source is event.ports[0]"); |
+ else |
+ event.ports[0].postMessage("FAIL: event.source is not event.ports[0]"); |
+ event.ports[0].postMessage("DONE:"); |
+}; |