Skip to content

Commit 1de8a13

Browse files
Update components/dash-core-components/tests/integration/sliders/test_sliders_shorthands.py
Co-authored-by: Chris Parmer <[email protected]>
1 parent bad92d9 commit 1de8a13

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

components/dash-core-components/tests/integration/sliders/test_sliders_shorthands.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,30 @@ def test_slsh002_sliders_marks_si_unit_format(dash_dcc):
157157
for n in range(-20, 20):
158158
min = 0
159159
max = pow(10, n)
160+
160161
LAYOUT.extend(
161162
[
162163
html.Div(
163164
[
164-
html.Div(
165+
166+
html.B(
165167
f"min={min}, max={max}(=10^{n})",
166168
style={"marginBottom": 15, "marginTop": 25},
167169
),
170+
(html.Div(
171+
'(Known issue: Slider does not seem to work for precision below 10^(-6))'
172+
) if n <= -6 else None),
173+
html.Div('value is undefined'),
168174
dcc.Slider(min, max),
169175
dcc.RangeSlider(min, max),
176+
177+
html.Div(f'value=0.4 * 10^{n}'),
178+
dcc.Slider(min, max, value=0.4*max),
179+
dcc.RangeSlider(min, max, value[0.2 * max, 0.4 * max]),
180+
181+
html.Div(f'value=0.5 * 10^{n}'),
182+
dcc.Slider(min, max, value=0.4*max),
183+
dcc.RangeSlider(min, max, value[0.2 * max, 0.5 * max]),
170184
]
171185
)
172186
]

0 commit comments

Comments
 (0)