The goog.testing.events.EventMatcher Class

goog.testing.events.EventMatcher
> goog.testing.mockmatchers.ArgumentMatcher

goog.testing.events.EventMatcher(type)

A matcher that verifies that an argument is a {@code goog.events.Event} of a particular type.

type {string}
The single type the event argument must be of.

.matches(toVerify, opt_expectation)

Inherited from goog.testing.mockmatchers.ArgumentMatcher .

A function that takes a match argument and an optional MockExpectation which (if provided) will get error information and returns whether or not it matches.

toVerify {*}
The argument that should be verified.
opt_expectation {goog.testing.MockExpectation?=}
The expectation for this match.
returns {boolean}
Whether or not a given argument passes verification.