The goog.testing.TestQueue Class

goog.testing.TestQueue()

Generic queue for writing unit tests

.dequeue(opt_comment)

Gets the next event from the queue. Throws an exception if the queue is empty.

opt_comment {string=}
Comment if the queue is empty.
returns {Object}
The next event from the queue.

.enqueue(event)

Adds a new event onto the queue.

event {Object}
The event to queue.

.isEmpty()

Returns whether the queue is empty.

returns {boolean}
Whether the queue is empty.