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`
border-radius: 4px;
padding: 1% 1% 1% 5%;
}
.testFailure {
}
.testFailureSummary {
}
.title {
......
......@@ -251,18 +251,20 @@ module.exports = class TestTab extends ViewPlugin {
if (!result.assertMethod) {
this.testsOutput.appendChild(yo`
<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}"
onclick=${() => this.highlightLocation(result.location, runningTests, result.filename)}
>
<span> ✘ ${result.value}</span>
<button
class="btn btn-primary btn-sm"
title="Click to debug"
onclick=${() => this.startDebug(result)}
>
Debug
</button>
<div class="d-flex my-1 justify-content-between">
<span> ✘ ${result.value}</span>
<div
class="btn border btn btn-sm ml-1"
title="Start debugging"
onclick=${() => this.startDebug(result)}
>
<i class="fas fa-bug"></i>
</div>
</div>
<span class="text-dark">Error Message:</span>
<span class="pb-2 text-break">"${result.errMsg}"</span>
</div>
......@@ -273,7 +275,7 @@ module.exports = class TestTab extends ViewPlugin {
const expected = result.assertMethod === 'ok' ? '\'true\'' : result.expected
this.testsOutput.appendChild(yo`
<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}"
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