Sha256: d3e389a234bed2970cf4625c3231ef7cf003a5577952cce0bd965e423324fa9d

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

{assert, test, testGroup} = Trix.TestHelpers

composition = null
setup = ->
  composition = new Trix.Composition
  composition.delegate = new Trix.TestCompositionDelegate

testGroup "Trix.Composition", {setup}, ->
  test "deleteInDirection respects UTF-16 character boundaries", ->
    composition.insertString("abc😭")
    composition.deleteInDirection("backward")
    composition.insertString("d")
    assert.equal composition.document.toString(), "abcd\n"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vapid-0.1.3 lib/vapid/vendor/trix/test/src/unit/composition_test.coffee
vapid-0.1.2 lib/vapid/vendor/trix/test/src/unit/composition_test.coffee
vapid-0.1.1 lib/vapid/vendor/trix/test/src/unit/composition_test.coffee
vapid-0.1.0 lib/vapid/vendor/trix/test/src/unit/composition_test.coffee