Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
1e9b3fc1
Commit
1e9b3fc1
authored
Sep 02, 2021
by
lianahus
Committed by
Aniket
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug button in SUT UI
parent
55b30baf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
test-tab-styles.js
apps/remix-ide/src/app/tabs/styles/test-tab-styles.js
+0
-2
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+12
-10
No files found.
apps/remix-ide/src/app/tabs/styles/test-tab-styles.js
View file @
1e9b3fc1
...
@@ -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 {
...
...
apps/remix-ide/src/app/tabs/test-tab.js
View file @
1e9b3fc1
...
@@ -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
)}
>
>
<span> ✘
${
result
.
value
}
</span>
<div class="d-flex my-1 justify-content-between">
<button
<span> ✘
${
result
.
value
}
</span>
class="btn btn-primary btn-sm"
<div
title="Click to debug"
class="btn border btn btn-sm ml-1"
onclick=
${()
=>
this
.
startDebug
(
result
)}
title="Start debugging"
>
onclick=
${()
=>
this
.
startDebug
(
result
)}
Debug
>
</button>
<i class="fas fa-bug"></i>
</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
)}
>
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment