Skip to content

Commit 90da8ac

Browse files
committed
Fix execute flag tests
1 parent c3577f1 commit 90da8ac

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/components/sliders/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ var stepsAttrs = {
5656
},
5757
execute: {
5858
valType: 'boolean',
59+
role: 'info',
5960
dflt: true,
6061
description: [
6162
'When true, the API method is executed. When false, all other behaviors are the same',

src/components/updatemenus/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ var buttonsAttrs = {
4747
},
4848
execute: {
4949
valType: 'boolean',
50+
role: 'info',
5051
dflt: true,
5152
description: [
5253
'When true, the API method is executed. When false, all other behaviors are the same',

test/jasmine/tests/updatemenus_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ describe('update menus defaults', function() {
111111
expect(layoutOut.updatemenus[0].buttons[0]).toEqual({
112112
method: 'relayout',
113113
args: ['title', 'Hello World'],
114+
execute: true,
114115
label: '',
115116
_index: 1
116117
});
@@ -135,6 +136,7 @@ describe('update menus defaults', function() {
135136
expect(layoutOut.updatemenus[0].buttons[0]).toEqual({
136137
method: 'relayout',
137138
args: ['title', 'Hello World'],
139+
execute: true,
138140
label: '',
139141
_index: 1
140142
});

0 commit comments

Comments
 (0)