Skip to content

Commit

Permalink
For bug #62907
Browse files Browse the repository at this point in the history
Add another tests
  • Loading branch information
KirillovIlya committed Jun 6, 2023
1 parent c950c5e commit cb37c23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/word/forms/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ $(function () {
AscTest.PressKey(AscTest.Key.delete);
assert.strictEqual(form.IsUseInDocument(), false, "Click delete button for the second time, form must be removed");

form = AddFormPr(logicDocument.AddContentControlTextForm());
AscTest.AddTextToInlineSdt(form, "Inner Text");
assert.strictEqual(!form.IsPlaceHolder() && form.IsUseInDocument(), true, "Check if text form is filled with text and added to document");
assert.strictEqual(form.GetInnerText(), "Inner Text", "Check inner text");
AscTest.MoveCursorToParagraph(p, false);
AscTest.PressKey(AscTest.Key.backspace);
assert.strictEqual(form.IsUseInDocument() && form.IsThisElementCurrent(), true, "Move cursor to the right of the form and press backspace");
AscTest.PressKey(AscTest.Key.backspace);
assert.strictEqual(form.IsUseInDocument(), false, "Click backspace for the second time, form must be removed");
});

QUnit.test("Check format in text form", function (assert)
Expand Down

0 comments on commit cb37c23

Please sign in to comment.