shadows/framework/src/main/java/org/robolectric/shadows/ShadowCanvas.java
public static String visualize(Canvas canvas) {
    ShadowCanvas shadowCanvas = Shadow.extract(canvas);
    return shadowCanvas.getDescription();
  }
public static String visualize(Canvas canvas) {
    ShadowCanvas shadowCanvas = Shadow.extract(canvas);
    return shadowCanvas.getDescription();
  }
public static String visualize ( Canvas canvas ) { ShadowCanvas shadowCanvas = Shadow . extract ( canvas ) ; return shadowCanvas . getDescription ( ) ; }
Returns a textual representation of the appearance of the object.

@param canvas the canvas to visualize
@return The textual representation of the appearance of the object.
Returns a textual representation of the appearance of the object .