search

goog.testing.messaging.MockMessagePort

Provided By
Extends
All Implemented Interfaces

Class for unit-testing code that uses MessagePorts.

new MockMessagePort( id, mockControl )

Parameters
id*

An opaque identifier, used because message ports otherwise have no distinguishing characteristics.

mockControl(goog.testing.MockControl|null)

The mock control used to create the method mock for #postMessage.

Instance Methods

Instance Properties