Changeset View
Changeset View
Standalone View
Standalone View
autotests/src/katedocument_test.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 612 | { | |||
---|---|---|---|---|---|
618 | 618 | | |||
619 | QCOMPARE(doc.text(), surrogateString); | 619 | QCOMPARE(doc.text(), surrogateString); | ||
620 | } | 620 | } | ||
621 | 621 | | |||
622 | void KateDocumentTest::testRemoveComposedCharacters() | 622 | void KateDocumentTest::testRemoveComposedCharacters() | ||
623 | { | 623 | { | ||
624 | KTextEditor::DocumentPrivate doc; | 624 | KTextEditor::DocumentPrivate doc; | ||
625 | auto view = static_cast<KTextEditor::ViewPrivate*>(doc.createView(nullptr)); | 625 | auto view = static_cast<KTextEditor::ViewPrivate*>(doc.createView(nullptr)); | ||
626 | view->config()->setBackspaceRemoveComposed(true); | 626 | view->config()->setValue(KateViewConfig::BackspaceRemoveComposedCharacters, true); | ||
627 | doc.setText(QString::fromUtf8("व्यक्तियों")); | 627 | doc.setText(QString::fromUtf8("व्यक्तियों")); | ||
628 | doc.del(view, Cursor(0, 0)); | 628 | doc.del(view, Cursor(0, 0)); | ||
629 | 629 | | |||
630 | QCOMPARE(doc.text(), QString::fromUtf8(("क्तियों"))); | 630 | QCOMPARE(doc.text(), QString::fromUtf8(("क्तियों"))); | ||
631 | 631 | | |||
632 | doc.backspace(view, Cursor(0, 7)); | 632 | doc.backspace(view, Cursor(0, 7)); | ||
633 | 633 | | |||
634 | QCOMPARE(doc.text(), QString::fromUtf8(("क्ति"))); | 634 | QCOMPARE(doc.text(), QString::fromUtf8(("क्ति"))); | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |