|
178 | 178 | startTestButton.innerHTML = 'Testing in Progress ...'; |
179 | 179 | //disable button |
180 | 180 | startTestButton.disabled = true; |
181 | | - //set accessiblity aria-disabled state. |
| 181 | + //set accessiblity aria-disabled state. |
182 | 182 | //This will also effect the visual look by corresponding css |
183 | 183 | startTestButton.setAttribute('aria-disabled', true); |
184 | 184 | } |
|
217 | 217 | startTestButton.innerHTML = 'Start Test'; |
218 | 218 | option.series[0].data[0].value = 0; |
219 | 219 | option.series[0].data[0].name = 'Test Complete'; |
220 | | - //set accessiblity aria-disabled state. |
| 220 | + //set accessiblity aria-disabled state. |
221 | 221 | //This will also effect the visual look by corresponding css |
222 | 222 | startTestButton.setAttribute('aria-disabled', false); |
223 | 223 | startTestButton.disabled = false; |
|
248 | 248 | option.series[0].data[0].value = 0; |
249 | 249 | //updat test status to complete |
250 | 250 | option.series[0].data[0].name = 'Test Failed'; |
251 | | - //set accessiblity aria-disabled state. |
| 251 | + //set accessiblity aria-disabled state. |
252 | 252 | //This will also effect the visual look by corresponding css |
253 | 253 | startTestButton.setAttribute('aria-disabled', false); |
254 | 254 | //update button text to communicate current state of test as In Progress |
255 | 255 | startTestButton.innerHTML = 'Start Test'; |
256 | 256 | //enable start button |
257 | 257 | startTestButton.disabled = false; |
258 | | - //hide current test value in chart |
| 258 | + //hide current test value in chart |
259 | 259 | option.series[0].detail.show = false; |
260 | 260 | //update gauge |
261 | 261 | myChart.setOption(option, true); |
|
271 | 271 | option.series[0].data[0].value = 0; |
272 | 272 | //updat test status to complete |
273 | 273 | option.series[0].data[0].name = 'Test Failed'; |
274 | | - //set accessiblity aria-disabled state. |
| 274 | + //set accessiblity aria-disabled state. |
275 | 275 | //This will also effect the visual look by corresponding css |
276 | 276 | startTestButton.setAttribute('aria-disabled', false); |
277 | 277 | //update button text to communicate current state of test as In Progress |
278 | 278 | startTestButton.innerHTML = 'Start Test'; |
279 | 279 | //enable start button |
280 | 280 | startTestButton.disabled = false; |
281 | | - //hide current test value in chart |
| 281 | + //hide current test value in chart |
282 | 282 | option.series[0].detail.show = false; |
283 | 283 | //update gauge |
284 | 284 | myChart.setOption(option, true); |
|
294 | 294 | option.series[0].data[0].value = 0; |
295 | 295 | //updat test status to complete |
296 | 296 | option.series[0].data[0].name = 'Test Failed'; |
297 | | - //set accessiblity aria-disabled state. |
| 297 | + //set accessiblity aria-disabled state. |
298 | 298 | //This will also effect the visual look by corresponding css |
299 | 299 | startTestButton.setAttribute('aria-disabled', false); |
300 | 300 | //update button text to communicate current state of test as In Progress |
301 | 301 | startTestButton.innerHTML = 'Start Test'; |
302 | 302 | //enable start button |
303 | 303 | startTestButton.disabled = false; |
304 | | - //hide current test value in chart |
| 304 | + //hide current test value in chart |
305 | 305 | option.series[0].detail.show = false; |
306 | 306 | //update gauge |
307 | 307 | myChart.setOption(option, true); |
|
0 commit comments