search

goog.testing.messaging.MockMessageEvent

Provided By
Extends

Creates a new fake MessageEvent.

new MockMessageEvent( data, opt_origin, opt_lastEventId, opt_source, opt_ports )

Parameters
data*

The data of the message.

opt_originstring=

The origin of the message, for server-sent and cross-document events.

opt_lastEventIdstring=

The last event ID, for server-sent events.

opt_source(Window|null)=

The proxy for the source window, for cross-document events.

opt_ports(Array<(MessagePort|null)>|null)=

The Array of ports sent with the message, for cross-document and channel events.

Instance Methods

Instance Properties

Static Functions