forked from seiyria/bootstrap-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpecRunner.tpl
113 lines (86 loc) · 3.35 KB
/
SpecRunner.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %>
<style type="text/css">
#low-high-slider-styled .slider-track-low
{
background: rgb(0, 255, 0);
}
#low-high-slider-styled .slider-track-high
{
background: rgb(255, 0, 0);
}
#scrollable-div {
overflow-y: scroll;
width: 300px;
height: 150px;
position: relative;
}
#low-div {
padding: 2000px 0 500px 0;
}
</style>
</head>
<body>
<input id="testSliderGeneric" type="text"/>
<!-- Slider used for PublicMethodsSpec and EventsSpec -->
<input id="testSlider1" type="text"/>
<input id="testSlider2" type="text"/>
<!-- Note: Two input elements with class 'makeSlider' are required for tests to run properly -->
<input class="makeSlider" type="text"/>
<input class="makeSlider" type="text"/>
<!-- Sliders used for ElementDataSttributesSpec -->
<input id="minSlider" type="text" data-slider-min="5"/>
<input id="maxSlider" type="text" data-slider-max="5"/>
<input id="orientationSlider" type="text" data-slider-orientation="vertical"/>
<input id="stepSlider" type="text" data-slider-step="5"/>
<input id="precisionSlider" type="text" data-slider-precision="2"/>
<input id="valueSlider" type="text" data-slider-value="5"/>
<input id="sliderWithTickMarksAndLabels" type="text" data-slider-ticks="[0, 100, 200, 300, 400]" data-slider-ticks-labels='["$0", "$100", "$200", "$300", "$400"]'/>
<input id="selectionSlider" type="text" data-slider-selection="after"/>
<input id="tooltipSlider" type="text" data-slider-tooltip="hide"/>
<input id="handleSlider" type="text" data-slider-handle="triangle"/>
<input id="customHandleSlider" type="text" data-slider-handle="custom"/>
<input id="reversedSlider" type="text" data-slider-reversed="true"/>
<input id="disabledSlider" type="text" data-slider-enabled="false"/>
<input id="changeOrientationSlider" type="text"/>
<input id="makeRangeSlider" type="text"/>
<div id="autoregisterSliderContainer">
<input id="autoregisterSlider" data-provide="slider" data-slider-value="1"/>
</div>
<div id="relayoutSliderContainer" style="display: none">
<input id="relayoutSliderInput" type="text"/>
</div>
<div id="relayoutSliderContainerTickLabels" style="display: none">
<input id="relayoutSliderInputTickLabels" type="text"/>
</div>
<div id="scrollable-div">
<p>just a row</p>
<p>just a row</p>
<input id="ex1" data-slider-id='ex1Slider' type="text"/>
</div>
<div id="low-div">
<input id="veryLowPositionedSlider" type="text"/>
</div>
<!-- Sliders used by resize -->
<input id="resizeSlider" type="text"/>
<input id="resizeSliderVertical" data-slider-orientation="vertical" type="text"/>
<!-- Sliders used for AccessibilitySpec -->
<div>
<span id="accessibilitySliderLabelA">Label A</span>
<span id="accessibilitySliderLabelB">Label B</span>
<input id="accessibilitySliderA" type="text" data-slider-labelledby="accessibilitySliderLabelA" />
<input id="accessibilitySliderB" type="text" data-slider-labelledby='["accessibilitySliderLabelA", "accessibilitySliderLabelB"]' />
</div>
<% with (scripts) { %>
<% [].concat(jasmine, vendor, src, specs, reporters, start).forEach(function(script){ %>
<script src="<%= script %>"></script>
<% }) %>
<% }; %>
</body>
</html>