testing.TestQueue Extends
Generic queue for writing unit tests

Inheritance

Constructor

goog.testing.TestQueue()

Instance Methods

Public Protected Private
dequeue(opt_comment) Object
Gets the next event from the queue. Throws an exception if the queue is empty.
Arguments:
opt_comment : string=
Comment if the queue is empty.
Returns: Object  The next event from the queue.
code »
enqueue(event)
Adds a new event onto the queue.
Arguments:
event : Object
The event to queue.
code »
isEmpty() boolean
Returns whether the queue is empty.
Returns: boolean  Whether the queue is empty.
code »

Instance Properties

events_ :
Events that have accumulated
Code »

Package testing

Package Reference