From 6b7fe1bdf8103d62783ce8cbee3612d8fd3dd2cf Mon Sep 17 00:00:00 2001 From: Ruslan Farkhutdinov Date: Thu, 22 Jan 2026 17:55:04 +0200 Subject: [PATCH 1/2] TextEditorMask: Unskip QUnit tests --- .../textEditorParts/mask.tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js index 5c80a78de919..466c1d17e246 100644 --- a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js +++ b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js @@ -1012,7 +1012,7 @@ QUnit.module('delete key', moduleConfig, () => { assert.equal($input.val(), '_- x', 'letter deleted'); }); - QUnit.skip('should skip consecutive stub chars', function(assert) { + QUnit.test('should skip consecutive stub chars', function(assert) { const $textEditor = $('#texteditor').dxTextEditor({ mask: '0---0' }); @@ -1025,7 +1025,7 @@ QUnit.module('delete key', moduleConfig, () => { .caret(1) .press('del'); - assert.deepEqual(keyboard.caret(), { start: 4, end: 4 }, 'caret is set after a stub'); + assert.deepEqual(keyboard.caret(), { start: 5, end: 5 }, 'caret is set after a stub'); }); }); @@ -2061,7 +2061,7 @@ QUnit.module('paste', moduleConfig, () => { assert.equal($input.val(), '00', '\'v\' char from ctrl+V combination was ignored'); }); - QUnit.skip('digit stub should not be duplicated after paste if caret is placed before the stub', function(assert) { + QUnit.test('digit stub should not be duplicated after paste if caret is placed before the stub', function(assert) { const $textEditor = $('#texteditor').dxTextEditor({ mask: '10000' }); @@ -2072,7 +2072,7 @@ QUnit.module('paste', moduleConfig, () => { caretWorkaround($input); keyboard - .caret(0) + .caret(1) .paste('6'); assert.strictEqual(textEditor.option('text'), '16___', 'only pasted digit is added'); From 8b7d9218d7fcd38c6fa07f8250b6188bd37fda31 Mon Sep 17 00:00:00 2001 From: Ruslan Farkhutdinov Date: Fri, 23 Jan 2026 11:38:44 +0200 Subject: [PATCH 2/2] TextEditorMask: Remove skipped tests --- .../textEditorParts/mask.tests.js | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js index 466c1d17e246..a0b947758206 100644 --- a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js +++ b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/mask.tests.js @@ -1011,22 +1011,6 @@ QUnit.module('delete key', moduleConfig, () => { assert.equal($input.val(), '_- x', 'letter deleted'); }); - - QUnit.test('should skip consecutive stub chars', function(assert) { - const $textEditor = $('#texteditor').dxTextEditor({ - mask: '0---0' - }); - - const $input = $textEditor.find(`.${TEXTEDITOR_INPUT_CLASS}`); - const keyboard = keyboardMock($input, true); - caretWorkaround($input); - - keyboard - .caret(1) - .press('del'); - - assert.deepEqual(keyboard.caret(), { start: 5, end: 5 }, 'caret is set after a stub'); - }); }); QUnit.module('selection', moduleConfig, () => { @@ -2060,23 +2044,6 @@ QUnit.module('paste', moduleConfig, () => { assert.equal($input.val(), '00', '\'v\' char from ctrl+V combination was ignored'); }); - - QUnit.test('digit stub should not be duplicated after paste if caret is placed before the stub', function(assert) { - const $textEditor = $('#texteditor').dxTextEditor({ - mask: '10000' - }); - const textEditor = $textEditor.dxTextEditor('instance'); - - const $input = $textEditor.find(`.${TEXTEDITOR_INPUT_CLASS}`); - const keyboard = keyboardMock($input, true); - caretWorkaround($input); - - keyboard - .caret(1) - .paste('6'); - - assert.strictEqual(textEditor.option('text'), '16___', 'only pasted digit is added'); - }); }); QUnit.module('drag text', moduleConfig, () => {