Home

Class goog.testing.messaging.MockMessagePort

Class for unit-testing code that uses MessagePorts.

extends goog.events.EventTarget
Instance Method Summary
close()

Closes the port.

postMessage(<Any Type> message, ?Array= opt_ports)

A mock postMessage funciton. Actually an instance of {@link goog.testing.FunctionMock}.

start()

Starts the port.