graphic: add test code for GetPreferScaleClipRect()

Change-Id: I18c001344082831eb7668d5dfe4198bb4186a1e4