Skip to content

Commit d7f9056

Browse files
committed
Cleaned up unit tests to bring them in line with Core.
1 parent e5234b7 commit d7f9056

File tree

10 files changed

+22
-18
lines changed

10 files changed

+22
-18
lines changed

tests/input_files/global_options/shared_options/01-expected.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@ Highcharts.setOptions({
762762
enabled: true,
763763
text: 'Button Label',
764764
theme: {
765-
fill: '#fff',
766-
stroke: '#ccc'
765+
'fill': '#fff',
766+
'stroke': '#ccc'
767767
},
768768
y: 0
769769
},

tests/input_files/global_options/shared_options/01-input.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@
762762
enabled: true,
763763
text: 'Button Label',
764764
theme: {
765-
fill: '#fff',
766-
stroke: '#ccc'
765+
'fill': '#fff',
766+
'stroke': '#ccc'
767767
},
768768
y: 0
769769
},

tests/input_files/navigation/navigation/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
enabled: true,
2727
text: 'Button Label',
2828
theme: {
29-
fill: '#fff',
30-
stroke: '#ccc'
29+
'fill': '#fff',
30+
'stroke': '#ccc'
3131
},
3232
y: 0
3333
},

tests/input_files/navigation/navigation/error-01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
enabled: true,
2727
text: 'Button Label',
2828
theme: {
29-
fill: '#fff',
30-
stroke: '#ccc'
29+
'fill': '#fff',
30+
'stroke': '#ccc'
3131
},
3232
y: 0
3333
},

tests/input_files/options/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@
762762
enabled: true,
763763
text: 'Button Label',
764764
theme: {
765-
fill: '#fff',
766-
stroke: '#ccc'
765+
'fill': '#fff',
766+
'stroke': '#ccc'
767767
},
768768
y: 0
769769
},

tests/input_files/utility_classes/buttons/01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
enabled: true,
33
text: 'Button Label',
44
theme: {
5-
fill: '#fff',
6-
stroke: '#ccc'
5+
'fill': '#fff',
6+
'stroke': '#ccc'
77
},
88
y: 0
99
}

tests/input_files/utility_classes/buttons/02.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
symbolFill: '#ccc',
99
text: 'Button Label',
1010
theme: {
11-
fill: '#fff',
12-
stroke: '#ccc'
11+
'fill': '#fff',
12+
'stroke': '#ccc'
1313
},
1414
titleKey: 'somevalue',
1515
x: 10,

tests/input_files/utility_classes/buttons/error-01.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
enabled: true,
33
text: 123
44
theme: {
5-
fill: '#fff',
6-
stroke: '#ccc'
5+
'fill': '#fff',
6+
'stroke': '#ccc'
77
},
88
y: 'not a valid number'
99
}

tests/input_files/utility_classes/buttons/error-03.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
symbolFill: '#ccc',
99
text: 'Button Label',
1010
theme: {
11-
fill: '#fff',
12-
stroke: '#ccc'
11+
'fill': '#fff',
12+
'stroke': '#ccc'
1313
},
1414
titleKey: 'somevalue',
1515
x: 10,

tests/utility_classes/test_buttons.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
'text': 'Button Label',
2121
'theme': {
2222
'fill': '#fff',
23+
'padding': None,
24+
'states': None,
2325
'stroke': '#ccc'
2426
},
2527
'y': 0
@@ -81,6 +83,8 @@ def test_ButtonConfiguration_from_js_literal(input_files, filename, as_file, err
8183
'text': 'Button Label',
8284
'theme': {
8385
'fill': '#fff',
86+
'padding': None,
87+
'states': None,
8488
'stroke': '#ccc'
8589
},
8690
'title_key': 'somevalue',

0 commit comments

Comments
 (0)