| Index: build/android/pylib/results/presentation/javascript/main_html.js
|
| diff --git a/build/android/pylib/results/presentation/javascript/main_html.js b/build/android/pylib/results/presentation/javascript/main_html.js
|
| index 3d94663e33f1b8bf44eda7483c7835650d3b2ffc..76f22f09d5b3bf1d5a6d53a8a6d4119596120c59 100644
|
| --- a/build/android/pylib/results/presentation/javascript/main_html.js
|
| +++ b/build/android/pylib/results/presentation/javascript/main_html.js
|
| @@ -191,3 +191,24 @@ function sortByColumn(head) {
|
| function sortSuiteTableByFailedTestCases() {
|
| sortByColumn(document.getElementById('number_fail_tests'));
|
| }
|
| +
|
| +function setTableCellsAsClickable() {
|
| + const tableCells = document.getElementsByTagName('td');
|
| + for(let i = 0; i < tableCells.length; i++) {
|
| + const links = tableCells[i].getElementsByTagName('a');
|
| + // Only make the cell clickable if there is only one link.
|
| + if (links.length == 1) {
|
| + tableCells[i].addEventListener('click', function() {
|
| + links[0].click();
|
| + });
|
| + tableCells[i].addEventListener('mouseover', function() {
|
| + tableCells[i].style.cursor = 'pointer';
|
| + links[0].style.textDecoration = 'underline';
|
| + });
|
| + tableCells[i].addEventListener('mouseout', function() {
|
| + tableCells[i].style.cursor = 'initial';
|
| + links[0].style.textDecoration = 'initial';
|
| + });
|
| + }
|
| + }
|
| +}
|
|
|