Inheritance
ScrollRectTests
public class ScrollRectTests : IPrebuildSetup
Methods
Declaration
public void CalculateOffsetShouldClamp(bool horizontal, bool vertical, int viewX, float viewY, float resX, float resY)
Parameters
Declaration
public void CalculateOffsetUnrestrictedShouldNotClamp(bool horizontal, bool vertical, int viewX, float viewY, float resX, float resY)
Parameters
Declaration
public void GetBoundsShouldEncapsulateAllCorners()
Declaration
public IEnumerator LateUpdateWithElasticNoOffsetShouldZeroVelocity()
Returns
Declaration
public IEnumerator LateUpdateWithElasticShouldDecelerate()
Returns
Declaration
public IEnumerator LateUpdateWithInertiaShouldDecelerate()
Returns
Declaration
public IEnumerator LateUpdateWithoutInertiaOrElasticShouldZeroVelocity()
Returns
Declaration
public void LeftClickShouldStartDrag(PointerEventData.InputButton button, bool active, bool expectedIsDragging)
Parameters
Declaration
public void LeftClickUpShouldEndDrag(PointerEventData.InputButton button, bool active, bool expectedIsDragging)
Parameters
Declaration
public IEnumerator OnDisableShouldRemoveListeners(bool isHorizontal)
Parameters
Type |
Name |
Description |
Boolean |
isHorizontal |
|
Returns
Declaration
public IEnumerator OnEnableShouldAddListeners(bool isHorizontal)
Parameters
Type |
Name |
Description |
Boolean |
isHorizontal |
|
Returns
Declaration
public void OneTimeTearDown()
OnScrollClampedShouldClampContentAnchoredPosition(ScrollRect.MovementType, Single, Single)
Declaration
public void OnScrollClampedShouldClampContentAnchoredPosition(ScrollRect.MovementType movementType, float anchoredPosX, float anchoredPosY)
Parameters
OnScrollClampedShouldMoveContentAnchoredPosition(Int32, Int32, Boolean, Boolean, Int32, Int32)
Declaration
public void OnScrollClampedShouldMoveContentAnchoredPosition(int scrollDeltaX, int scrollDeltaY, bool horizontal, bool vertical, int expectedPosX, int expectedPosY)
Parameters
Declaration
public void PotentialDragNeedsLeftClick(PointerEventData.InputButton button, bool expectedEqualsZero)
Parameters
SetNormalizedPositionShouldSetContentLocalPosition()
Declaration
public void SetNormalizedPositionShouldSetContentLocalPosition()
Declaration
public void SettingScrollbarShouldRemoveThenAddListeners(bool testHorizontal)
Parameters
Type |
Name |
Description |
Boolean |
testHorizontal |
|
Declaration
Implements
UnityEngine.TestTools.IPrebuildSetup.Setup()
Declaration
Declaration
Declaration
public void UpdateBoundsShouldPad()