Commit 1e9b3fc1 authored by lianahus's avatar lianahus Committed by Aniket

debug button in SUT UI

parent 55b30baf
...@@ -31,8 +31,6 @@ var css = csjs` ...@@ -31,8 +31,6 @@ var css = csjs`
border-radius: 4px; border-radius: 4px;
padding: 1% 1% 1% 5%; padding: 1% 1% 1% 5%;
} }
.testFailure {
}
.testFailureSummary { .testFailureSummary {
} }
.title { .title {
......
...@@ -251,18 +251,20 @@ module.exports = class TestTab extends ViewPlugin { ...@@ -251,18 +251,20 @@ module.exports = class TestTab extends ViewPlugin {
if (!result.assertMethod) { if (!result.assertMethod) {
this.testsOutput.appendChild(yo` this.testsOutput.appendChild(yo`
<div <div
class="bg-light mb-2 ${css.testFailure} ${css.testLog} d-flex flex-column text-danger border-0" class="bg-light mb-2 px-2 ${css.testLog} d-flex flex-column text-danger border-0"
id="UTContext${result.context}" id="UTContext${result.context}"
onclick=${() => this.highlightLocation(result.location, runningTests, result.filename)} onclick=${() => this.highlightLocation(result.location, runningTests, result.filename)}
> >
<div class="d-flex my-1 justify-content-between">
<span> ✘ ${result.value}</span> <span> ✘ ${result.value}</span>
<button <div
class="btn btn-primary btn-sm" class="btn border btn btn-sm ml-1"
title="Click to debug" title="Start debugging"
onclick=${() => this.startDebug(result)} onclick=${() => this.startDebug(result)}
> >
Debug <i class="fas fa-bug"></i>
</button> </div>
</div>
<span class="text-dark">Error Message:</span> <span class="text-dark">Error Message:</span>
<span class="pb-2 text-break">"${result.errMsg}"</span> <span class="pb-2 text-break">"${result.errMsg}"</span>
</div> </div>
...@@ -273,7 +275,7 @@ module.exports = class TestTab extends ViewPlugin { ...@@ -273,7 +275,7 @@ module.exports = class TestTab extends ViewPlugin {
const expected = result.assertMethod === 'ok' ? '\'true\'' : result.expected const expected = result.assertMethod === 'ok' ? '\'true\'' : result.expected
this.testsOutput.appendChild(yo` this.testsOutput.appendChild(yo`
<div <div
class="bg-light mb-2 ${css.testFailure} ${css.testLog} d-flex flex-column text-danger border-0" class="bg-light mb-2 px-2 ${css.testLog} d-flex flex-column text-danger border-0"
id="UTContext${result.context}" id="UTContext${result.context}"
onclick=${() => this.highlightLocation(result.location, runningTests, result.filename)} onclick=${() => this.highlightLocation(result.location, runningTests, result.filename)}
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment