Function createTestSupportInstance

  • Create an instance of BrowserUITestSupport, using the given functions for testing boolean and equality.

    Parameters

    • instance: BrowserJsPlumbInstance

      The jsPlumb instance to attach to.

    • ok: ((b, msg) => any)

      A function that tests a boolean.

        • (b, msg): any
        • Parameters

          • b: boolean
          • msg: string

          Returns any

    • equal: ((v1, v2, m?) => any)

      A function that tests for equality.

        • (v1, v2, m?): any
        • Parameters

          • v1: any
          • v2: any
          • Optional m: string

          Returns any

    Returns BrowserUITestSupport