Skip to content

Commit a95ac65

Browse files
committed
tweak the tests page preparation for immutable
1 parent c91068e commit a95ac65

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

test/public/testing.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ hr {
3737
}
3838

3939
h2,h3,h4 {
40-
margin: 30px 0 10px;
40+
margin-top: 2em;
41+
margin-bottom: 0.5em;
4142
}
4243

4344
h2 + .rangeSlider.rangeSlider, h3 + .rangeSlider.rangeSlider, h4 + .rangeSlider.rangeSlider {
44-
margin-top: 10px;
45+
margin-top: 1em;
4546
}
4647

4748
.pipVal-prefix {

test/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
// we'll extract any component CSS out into
2222
// a separate file - better for performance
2323
css: css => {
24-
css.write('public/build/bundle.css');
24+
css.write('bundle.css');
2525
}
2626
}),
2727

test/src/App.svelte

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108

109109
<div class="content" style="--range-handle-focus: {color}; --range-handle: {lightColor}">
110110

111+
<h2>Vertical Tests</h2>
111112

112113
<section style="display: flex; justify-content: space-evenly;">
113114
<RangeSlider vertical pips all="label" {reversed} {hoverable} {disabled} />
@@ -125,10 +126,29 @@
125126
<br>
126127
<h2>Spring & Colors Test</h2>
127128
<br>
128-
springValues = stiffness: .05, damping: 0.05
129-
<RangeSlider id="test-id" springValues={{ stiffness: .05, damping: 0.05 }} bind:values {reversed} {hoverable} {disabled} />
130-
<RangeSlider id="test-id" springValues={{ stiffness: .1, damping: .857 }} bind:values {reversed} {hoverable} {disabled} />
131-
springValues = stiffness: .1, damping: .85
129+
130+
<table>
131+
<tr>
132+
<th width="50">stiffness</th>
133+
<th width="50">damping</th>
134+
<th>result</th>
135+
</tr>
136+
<tr>
137+
<td><code>0.75</code></td>
138+
<td><code>0.1</code></td>
139+
<td><RangeSlider id="test-id3" springValues={{ stiffness: .75, damping: 1 }} bind:values {reversed} {hoverable} {disabled} /></td>
140+
</tr>
141+
<tr>
142+
<td><code>0.1</code></td>
143+
<td><code>0.85</code></td>
144+
<td><RangeSlider id="test-id2" springValues={{ stiffness: .1, damping: .857 }} bind:values {reversed} {hoverable} {disabled} /></td>
145+
</tr>
146+
<tr>
147+
<td><code>0.05</code></td>
148+
<td><code>0.05</code></td>
149+
<td><RangeSlider id="test-id" springValues={{ stiffness: .05, damping: 0.05 }} bind:values {reversed} {hoverable} {disabled} /></td>
150+
</tr>
151+
</table>
132152

133153
<br>
134154

0 commit comments

Comments
 (0)