File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
apitester/runtests/static/runtests/js Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ $(function() {
21
21
var alertType = 'success' ;
22
22
var msg = '' ;
23
23
var collapse = '' ;
24
- var text = " <pre>${escapeHTML(data['text'])}</pre>" ;
24
+ var text = ` <pre>${ escapeHTML ( data [ 'text' ] ) } </pre>` ;
25
25
if ( ! data [ 'success' ] ) {
26
26
alertType = 'danger' ;
27
27
msg = '<ul>' ;
28
28
for ( var i = 0 ; i < data [ 'messages' ] . length ; i ++ ) {
29
- msg += " <li>${data['messages'][i]}</li>" ;
29
+ msg += ` <li>${ data [ 'messages' ] [ i ] } </li>` ;
30
30
}
31
31
msg += '</ul>' ;
32
32
} else {
33
- collapse = " <button type='button' class='btn btn-xs btn-success pull-right' data-toggle='collapse' data-target='#${data['config']['operation_id']}' aria-expanded='false'><span class='glyphicon glyphicon-chevron-right'></span><span class='glyphicon glyphicon-chevron-down'></span></button>";
34
- text = " <div id='${data['config']['operation_id']}' class='collapse'>${text}</div>" ;
33
+ collapse = ` <button type='button' class='btn btn-xs btn-success pull-right' data-toggle='collapse' data-target='#${ data [ 'config' ] [ 'operation_id' ] } ' aria-expanded='false'><span class='glyphicon glyphicon-chevron-right'></span><span class='glyphicon glyphicon-chevron-down'></span></button>"` ;
34
+ text = ` <div id='${ data [ 'config' ] [ 'operation_id' ] } ' class='collapse'>${ text } </div>` ;
35
35
}
36
- var result = " <div class='alert alert-${alertType}'><div class='row'><div class='col-xs-10 col-sm-11'>${data['config']['summary']}<br />${data['config']['urlpath']}<br />Took ${data['execution_time']} ms<br />${msg}</div><div class='col-xs-2 col-sm-1'>${collapse}</div></div>${text}</div>" ;
36
+ var result = ` <div class='alert alert-${ alertType } '><div class='row'><div class='col-xs-10 col-sm-11'>${ data [ 'config' ] [ 'summary' ] } <br />${ data [ 'config' ] [ 'urlpath' ] } <br />Took ${ data [ 'execution_time' ] } ms<br />${ msg } </div><div class='col-xs-2 col-sm-1'>${ collapse } </div></div>${ text } </div>` ;
37
37
$ ( runner . find ( '.result' ) ) . append ( result ) ;
38
38
} ) ;
39
39
}
You can’t perform that action at this time.
0 commit comments