Skip to content

Commit

Permalink
Fixed an issue that was causing an error on the front-end if the user…
Browse files Browse the repository at this point in the history
… clicked the space between test group div elements.
  • Loading branch information
vakenbolt committed Jun 10, 2020
1 parent 59554ba commit 968eacf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test_report.html.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>gorgeous</title>
<title>go-test-report</title>
<style type="text/css">
body {
font-family: sans-serif;
Expand Down
5 changes: 5 additions & 0 deletions test_report.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ window.GoTestReport = function (elements) {
testResultsElement.style.backgroundColor = selectedItems.selectedTestGroupColor
}
const testGroupId = /**@type {number}*/ target.id
if ((target.id === undefined)
|| (data[testGroupId] === undefined)
|| (data[testGroupId]['TestResults'] === undefined)) {
return
}
const testResults = /**@type {TestResults}*/ data[testGroupId]['TestResults']
let testGroupList = /**@type {string}*/ ''
selectedItems.selectedTestGroupColor = getComputedStyle(target).getPropertyValue('background-color')
Expand Down

0 comments on commit 968eacf

Please sign in to comment.