docs.unity.cn
    Show / Hide Table of Contents

    Class TextEditorTests

    Inheritance
    Object
    TextEditorTests
    Namespace: Global Namespace
    Syntax
    public class TextEditorTests

    Methods

    Backspace_RemovesCodePointLeftOfCursor(String, Int32[])

    Declaration
    public void Backspace_RemovesCodePointLeftOfCursor(string text, int[] codePointIndices)
    Parameters
    Type Name Description
    String text
    Int32[] codePointIndices

    Delete_RemovesCodePointRightOfCursor(String, Int32[])

    Declaration
    public void Delete_RemovesCodePointRightOfCursor(string text, int[] codePointIndices)
    Parameters
    Type Name Description
    String text
    Int32[] codePointIndices

    DeleteWordBack_DeletesBackToPreviousWordStart(String, Int32[], Int32[])

    Declaration
    public void DeleteWordBack_DeletesBackToPreviousWordStart(string text, int[] wordStartIndices, int[] wordEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] wordStartIndices
    Int32[] wordEndIndices

    DeleteWordForward_DeletesForwardToNextWordStart(String, Int32[], Int32[])

    Declaration
    public void DeleteWordForward_DeletesForwardToNextWordStart(string text, int[] wordStartIndices, int[] wordEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] wordStartIndices
    Int32[] wordEndIndices

    FindStartOfNextWord_ReturnsIndexOfNextWordStart(String, Int32[], Int32[])

    Declaration
    public void FindStartOfNextWord_ReturnsIndexOfNextWordStart(string text, int[] wordStartIndices, int[] wordEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] wordStartIndices
    Int32[] wordEndIndices

    HandleKeyEvent_WithCommandAKeyDownEvent_SelectsAllOnMacOS()

    Declaration
    public void HandleKeyEvent_WithCommandAKeyDownEvent_SelectsAllOnMacOS()

    HandleKeyEvent_WithControlAKeyDownEvent_MovesCursorToStartOfLineOnMacOS_SelectsAllElsewhere()

    Declaration
    public void HandleKeyEvent_WithControlAKeyDownEvent_MovesCursorToStartOfLineOnMacOS_SelectsAllElsewhere()

    MoveLeft_SkipsInvalidCodePointIndices(String, Int32[])

    Declaration
    public void MoveLeft_SkipsInvalidCodePointIndices(string text, int[] codePointIndices)
    Parameters
    Type Name Description
    String text
    Int32[] codePointIndices

    MoveLineEnd_MovesCursorBeforeNextLineFeed(String, Int32[])

    Declaration
    public void MoveLineEnd_MovesCursorBeforeNextLineFeed(string text, int[] lineEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] lineEndIndices

    MoveLineStart_MovesCursorAfterPreviousLineFeed(String, Int32[])

    Declaration
    public void MoveLineStart_MovesCursorAfterPreviousLineFeed(string text, int[] lineStartIndices)
    Parameters
    Type Name Description
    String text
    Int32[] lineStartIndices

    MoveRight_SkipsInvalidCodePointIndices(String, Int32[])

    Declaration
    public void MoveRight_SkipsInvalidCodePointIndices(string text, int[] codePointIndices)
    Parameters
    Type Name Description
    String text
    Int32[] codePointIndices

    MoveTextEnd_MovesCursorToEndOfText()

    Declaration
    public void MoveTextEnd_MovesCursorToEndOfText()

    MoveTextStart_MovesCursorToStartOfText()

    Declaration
    public void MoveTextStart_MovesCursorToStartOfText()

    MoveToEndOfPreviousWord_MovesCursorToPreviousWordStart(String, Int32[], Int32[])

    Declaration
    public void MoveToEndOfPreviousWord_MovesCursorToPreviousWordStart(string text, int[] wordStartIndices, int[] wordEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] wordStartIndices
    Int32[] wordEndIndices

    MoveToStartOfNextWord_MovesCursorToNextWordStart(String, Int32[], Int32[])

    Declaration
    public void MoveToStartOfNextWord_MovesCursorToNextWordStart(string text, int[] wordStartIndices, int[] wordEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] wordStartIndices
    Int32[] wordEndIndices

    MoveWordLeft_MovesCursorToPreviousWordStart(String, Int32[], Int32[])

    Declaration
    public void MoveWordLeft_MovesCursorToPreviousWordStart(string text, int[] wordStartIndices, int[] wordEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] wordStartIndices
    Int32[] wordEndIndices

    MoveWordRight_MovesCursorToNextWordEnd(String, Int32[], Int32[])

    Declaration
    public void MoveWordRight_MovesCursorToNextWordEnd(string text, int[] wordStartIndices, int[] wordEndIndices)
    Parameters
    Type Name Description
    String text
    Int32[] wordStartIndices
    Int32[] wordEndIndices

    SelectCurrentWord(String, Int32[], Int32[])

    Declaration
    public void SelectCurrentWord(string text, int[] expectedCursorIndices, int[] expectedSelectIndices)
    Parameters
    Type Name Description
    String text
    Int32[] expectedCursorIndices
    Int32[] expectedSelectIndices

    SelectLeft_ExpandSelectionToPreviousCodePoint(String, Int32[])

    Declaration
    public void SelectLeft_ExpandSelectionToPreviousCodePoint(string text, int[] codePointIndices)
    Parameters
    Type Name Description
    String text
    Int32[] codePointIndices

    SelectRight_ExpandSelectionToNextCodePoint(String, Int32[])

    Declaration
    public void SelectRight_ExpandSelectionToNextCodePoint(string text, int[] codePointIndices)
    Parameters
    Type Name Description
    String text
    Int32[] codePointIndices

    SetCursorAndSelectIndices_MovesToNextCodePointIndexIfInvalid(String, Int32[])

    Declaration
    public void SetCursorAndSelectIndices_MovesToNextCodePointIndexIfInvalid(string text, int[] codePointIndices)
    Parameters
    Type Name Description
    String text
    Int32[] codePointIndices

    SetText_MovesCursorAndSelectIndicesToNextCodePointIndexIfInvalid()

    Declaration
    public void SetText_MovesCursorAndSelectIndicesToNextCodePointIndexIfInvalid()

    TestSetup()

    Declaration
    public void TestSetup()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 June 2023