From f76a5629eba817dcff0867ff36485f547decdb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marker=20dao=20=C2=AE=20=7C=20Roman=20Ty?= Date: Thu, 31 Aug 2023 18:08:23 +0400 Subject: [PATCH] feat(tabPanel: QUnit): Add tests for stylingMode --- .../testing/tests/DevExpress.ui.widgets/tabPanel.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/devextreme/testing/tests/DevExpress.ui.widgets/tabPanel.tests.js b/packages/devextreme/testing/tests/DevExpress.ui.widgets/tabPanel.tests.js index 1393198ee2be..2efdaf825e18 100644 --- a/packages/devextreme/testing/tests/DevExpress.ui.widgets/tabPanel.tests.js +++ b/packages/devextreme/testing/tests/DevExpress.ui.widgets/tabPanel.tests.js @@ -204,6 +204,14 @@ QUnit.module('options', { assert.strictEqual(this.tabWidgetInstance.option('iconPosition'), 'top', 'option of nested tabs widget successfully changed'); }); + QUnit.test('stylingMode option should be passed to tabs correctly', function(assert) { + assert.strictEqual(this.tabWidgetInstance.option('stylingMode'), 'primary', 'option successfully passed to nested tabs widget'); + + this.tabPanelInstance.option('stylingMode', 'secondary'); + + assert.strictEqual(this.tabWidgetInstance.option('stylingMode'), 'secondary', 'option of nested tabs widget successfully changed'); + }); + QUnit.test('dataSource option test', function(assert) { assert.expect(2);