assertAllPixelsOfColor
open fun assertAllPixelsOfColor(failMessagePrefix: String, @NonNull drawable: @NonNull Drawable, drawableWidth: Int, drawableHeight: Int, callSetBounds: Boolean, @ColorInt color: Int, allowedComponentVariance: Int, throwExceptionIfFails: Boolean)(source)
Checks whether all the pixels in the specified drawable are of the same specified color. In case there is a color mismatch, the behavior of this method depends on the throwExceptionIfFails
parameter. If it is true
, this method will throw an Exception
describing the mismatch. Otherwise this method will call Assert.fail
with detailed description of the mismatch.
open fun assertAllPixelsOfColor(failMessagePrefix: String, @NonNull bitmap: @NonNull Bitmap, bitmapWidth: Int, bitmapHeight: Int, @ColorInt color: Int, allowedComponentVariance: Int, throwExceptionIfFails: Boolean)(source)
Checks whether all the pixels in the specified bitmap are of the same specified color. In case there is a color mismatch, the behavior of this method depends on the throwExceptionIfFails
parameter. If it is true
, this method will throw an Exception
describing the mismatch. Otherwise this method will call Assert.fail
with detailed description of the mismatch.