|
29 | 29 | }
|
30 | 30 | };
|
31 | 31 | helper.createSlider(sliderConf);
|
32 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('1'); |
33 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('1'); |
| 32 | + expect(helper.slider.flrLab.css('visibility')).to.equal('visible'); |
| 33 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('visible'); |
34 | 34 | });
|
35 | 35 |
|
36 | 36 | it('should hide floor and display ceil labels when handle is at min', function() {
|
|
42 | 42 | }
|
43 | 43 | };
|
44 | 44 | helper.createSlider(sliderConf);
|
45 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('0'); |
46 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('1'); |
| 45 | + expect(helper.slider.flrLab.css('visibility')).to.equal('hidden'); |
| 46 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('visible'); |
47 | 47 | });
|
48 | 48 |
|
49 | 49 | it('should show floor and hide ceil labels when handle is at max', function() {
|
|
55 | 55 | }
|
56 | 56 | };
|
57 | 57 | helper.createSlider(sliderConf);
|
58 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('1'); |
59 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('0'); |
| 58 | + expect(helper.slider.flrLab.css('visibility')).to.equal('visible'); |
| 59 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('hidden'); |
60 | 60 | });
|
61 | 61 |
|
62 | 62 | it('should display floor and ceil labels when handle is at the middle for RTL slider', function() {
|
|
69 | 69 | }
|
70 | 70 | };
|
71 | 71 | helper.createSlider(sliderConf);
|
72 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('1'); |
73 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('1'); |
| 72 | + expect(helper.slider.flrLab.css('visibility')).to.equal('visible'); |
| 73 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('visible'); |
74 | 74 | });
|
75 | 75 |
|
76 | 76 | it('should hide floor and display ceil labels when handle is at min for RTL slider', function() {
|
|
83 | 83 | }
|
84 | 84 | };
|
85 | 85 | helper.createSlider(sliderConf);
|
86 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('0'); |
87 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('1'); |
| 86 | + expect(helper.slider.flrLab.css('visibility')).to.equal('hidden'); |
| 87 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('visible'); |
88 | 88 | });
|
89 | 89 |
|
90 | 90 | it('should show floor and hide ceil labels when handle is at max for RTL slider', function() {
|
|
97 | 97 | }
|
98 | 98 | };
|
99 | 99 | helper.createSlider(sliderConf);
|
100 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('1'); |
101 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('0'); |
| 100 | + expect(helper.slider.flrLab.css('visibility')).to.equal('visible'); |
| 101 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('hidden'); |
102 | 102 | });
|
103 | 103 |
|
104 | 104 | it('should hide floor and ceil labels when minHandle is at min and maxHandle at max for range slider', function() {
|
|
111 | 111 | }
|
112 | 112 | };
|
113 | 113 | helper.createRangeSlider(sliderConf);
|
114 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('0'); |
115 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('0'); |
| 114 | + expect(helper.slider.flrLab.css('visibility')).to.equal('hidden'); |
| 115 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('hidden'); |
116 | 116 | });
|
117 | 117 |
|
118 | 118 | it('should hide floor and ceil labels when minHandle is at min and maxHandle at max for range RTL slider', function() {
|
|
126 | 126 | }
|
127 | 127 | };
|
128 | 128 | helper.createRangeSlider(sliderConf);
|
129 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('0'); |
130 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('0'); |
| 129 | + expect(helper.slider.flrLab.css('visibility')).to.equal('hidden'); |
| 130 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('hidden'); |
131 | 131 | });
|
132 | 132 |
|
133 | 133 | it('should hide floor and ceil labels when cmb label is overlapping, for range slider', function() {
|
|
145 | 145 | };
|
146 | 146 |
|
147 | 147 | helper.createRangeSlider(sliderConf);
|
148 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('0'); |
149 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('0'); |
| 148 | + expect(helper.slider.flrLab.css('visibility')).to.equal('hidden'); |
| 149 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('hidden'); |
150 | 150 | });
|
151 | 151 |
|
152 | 152 | it('should hide floor and ceil labels when cmb label is overlapping, for range RTL slider', function() {
|
|
164 | 164 | rightToLeft: true
|
165 | 165 | };
|
166 | 166 | helper.createRangeSlider(sliderConf);
|
167 |
| - expect(helper.slider.flrLab.css('opacity')).to.equal('0'); |
168 |
| - expect(helper.slider.ceilLab.css('opacity')).to.equal('0'); |
| 167 | + expect(helper.slider.flrLab.css('visibility')).to.equal('hidden'); |
| 168 | + expect(helper.slider.ceilLab.css('visibility')).to.equal('hidden'); |
169 | 169 | });
|
170 | 170 |
|
171 | 171 |
|
|
0 commit comments