You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/devextreme/testing/tests/DevExpress.ui.widgets.form/form.tests.js
+89-4
Original file line number
Diff line number
Diff line change
@@ -4579,15 +4579,100 @@ QUnit.test('form should be dirty when some editors are dirty', function(assert)
4579
4579
// NOTE: In the real environment, clicking the label triggers a click on the editor,
4580
4580
// toggling the popup visibility if openOnFieldClick=true.
4581
4581
// This assertion only takes hideOnOutsideClick into account
4582
-
if(hideOnOutsideClick===false){
4583
-
assert.true(editorInstance.option('opened'),`drop down list ${openOnFieldClick ? 'is hidden by triggered input click' : 'is visible'}`);
4584
-
}else{
4585
-
assert.strictEqual(editorInstance.option('opened'),openOnFieldClick,`drop down list is hidden by ${openOnFieldClick ? 'triggered input click' : 'outside click'}`);
4582
+
switch(hideOnOutsideClick){
4583
+
casetrue:
4584
+
assert.false(editorInstance.option('opened'),'drop down list is hidden by outside click');
4585
+
break;
4586
+
casefalse:
4587
+
assert.true(editorInstance.option('opened'),`drop down list ${openOnFieldClick ? 'is hidden by triggered input click' : 'is visible'}`);
4588
+
break;
4589
+
default:
4590
+
assert.strictEqual(editorInstance.option('opened'),openOnFieldClick,`drop down list is hidden by ${openOnFieldClick ? 'triggered input click' : 'outside click'}`);
4586
4591
}
4587
4592
});
4588
4593
});
4589
4594
});
4590
4595
4596
+
QUnit.test('DropDownEditor popup must toggle on input or dropDownButton click if openOnFieldClick = true',function(assert){
0 commit comments