pivotal/robolectric — pull request #308 by kevinsawicki (2012-08-28 22:42:16+00:00)
Title: Store Toast duration in ShadowToast

`Toast` objects returned from `ShadowToast.getLatestToast()` were previously always returning a `getDuration()` value of zero even when created with a non-zero value such as `Toast.LENGTH_LONG`.

This change stores the duration that `Toast.makeText` was called with in the `ShadowToast` instance.