@@ -25,13 +25,18 @@ QUnit.test(" 213 123sad d213 sadsd", function (assert) {
2525} ) ;
2626QUnit . test ( "allowAdaptiveActions" , function ( assert ) {
2727 const matrix = new QuestionMatrixDropdownModelBase ( "q1" ) ;
28+ matrix . detailPanelMode = "underRow" ;
2829 assert . equal ( matrix . allowAdaptiveActions , false , "matrix.allowAdaptiveActions" ) ;
2930 assert . equal ( matrix . getPanels ( ) [ 0 ] [ "allowAdaptiveActions" ] , true , "matrix.panel.allowAdaptiveActions" ) ;
3031
3132 matrix . allowAdaptiveActions = false ;
3233 assert . equal ( matrix . allowAdaptiveActions , false , "matrix.allowAdaptiveActions" ) ;
3334 assert . equal ( matrix . getPanels ( ) [ 0 ] [ "allowAdaptiveActions" ] , false , "matrix.panel.allowAdaptiveActions" ) ;
34-
35+ matrix . detailPanelMode = "none" ;
36+ matrix . allowAdaptiveActions = true ;
37+ assert . equal ( matrix . allowAdaptiveActions , true , "matrix.allowAdaptiveActions, #1" ) ;
38+ matrix . allowAdaptiveActions = false ;
39+ assert . equal ( matrix . allowAdaptiveActions , false , "matrix.allowAdaptiveActions, #2" ) ;
3540} ) ;
3641
3742QUnit . test ( "verticalLayout when isMobile set 'true'" , function ( assert ) {
@@ -2382,3 +2387,15 @@ QUnit.test("Do not send data notification on creating detail panel, Bug#10253",
23822387 assert . equal ( survey . state , "completed" , "survey.state" ) ;
23832388 assert . equal ( counter , 0 , "#2" ) ;
23842389} ) ;
2390+ QUnit . test ( "matrices getPanelInDesignMode" , function ( assert ) {
2391+ const q1 = new QuestionMatrixDropdownModel ( "q1" ) ;
2392+ assert . notOk ( q1 . getPanelInDesignMode ( ) , "#1" ) ;
2393+ q1 . detailPanelMode = "underRow" ;
2394+ assert . ok ( q1 . getPanelInDesignMode ( ) , "#2" ) ;
2395+ assert . strictEqual ( q1 . getPanelInDesignMode ( ) , q1 . detailPanel , "#3" ) ;
2396+ q1 . detailPanelMode = "none" ;
2397+ assert . notOk ( q1 . getPanelInDesignMode ( ) , "#4" ) ;
2398+ q1 . detailPanelMode = "underRowSingle" ;
2399+ assert . ok ( q1 . getPanelInDesignMode ( ) , "#5" ) ;
2400+ assert . strictEqual ( q1 . getPanelInDesignMode ( ) , q1 . detailPanel , "#6" ) ;
2401+ } ) ;
0 commit comments