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
3e614224
Commit
3e614224
authored
Apr 16, 2020
by
LianaHus
Committed by
Aniket
Apr 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added titles
parent
811ce13e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test-tab.js
src/app/tabs/test-tab.js
+5
-5
No files found.
src/app/tabs/test-tab.js
View file @
3e614224
...
@@ -231,7 +231,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -231,7 +231,7 @@ module.exports = class TestTab extends ViewPlugin {
}
}
updateGenerateFileAction
(
currentFile
)
{
updateGenerateFileAction
(
currentFile
)
{
let
el
=
yo
`<button class="btn border w-50" data-id="testTabGenerateTestFile" onclick="
${
this
.
testTabLogic
.
generateTestFile
.
bind
(
this
.
testTabLogic
)}
">Generate</button>`
let
el
=
yo
`<button class="btn border w-50" data-id="testTabGenerateTestFile"
title="Generate sample test file."
onclick="
${
this
.
testTabLogic
.
generateTestFile
.
bind
(
this
.
testTabLogic
)}
">Generate</button>`
if
(
!
currentFile
)
{
if
(
!
currentFile
)
{
el
.
setAttribute
(
'disabled'
,
'disabled'
)
el
.
setAttribute
(
'disabled'
,
'disabled'
)
el
.
setAttribute
(
'title'
,
'No file selected'
)
el
.
setAttribute
(
'title'
,
'No file selected'
)
...
@@ -269,7 +269,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -269,7 +269,7 @@ module.exports = class TestTab extends ViewPlugin {
updateStopAction
()
{
updateStopAction
()
{
return
yo
`
return
yo
`
<div id="runTestsTabStopAction" class="w-50 pl-2 ml-2 btn btn-secondary" onclick="
${
this
.
runTests
.
bind
(
this
)}
">
<div id="runTestsTabStopAction" class="w-50 pl-2 ml-2 btn btn-secondary"
title="Stop running tests"
onclick="
${
this
.
runTests
.
bind
(
this
)}
">
<span class="fas fa-stop ml-2"></span>
<span class="fas fa-stop ml-2"></span>
<label class="btn p-1 ml-2 m-0">Stop</label>
<label class="btn p-1 ml-2 m-0">Stop</label>
</div>
</div>
...
@@ -278,7 +278,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -278,7 +278,7 @@ module.exports = class TestTab extends ViewPlugin {
updateTestFileList
(
tests
)
{
updateTestFileList
(
tests
)
{
const
testsMessage
=
(
tests
&&
tests
.
length
?
this
.
listTests
()
:
'No test file available'
)
const
testsMessage
=
(
tests
&&
tests
.
length
?
this
.
listTests
()
:
'No test file available'
)
let
el
=
yo
`<div class="
${
css
.
testList
}
py-2 border-bottom">
${
testsMessage
}
</div>`
let
el
=
yo
`<div class="
${
css
.
testList
}
py-2
mt-0
border-bottom">
${
testsMessage
}
</div>`
if
(
!
this
.
testFilesListElement
)
{
if
(
!
this
.
testFilesListElement
)
{
this
.
testFilesListElement
=
el
this
.
testFilesListElement
=
el
}
else
{
}
else
{
...
@@ -303,7 +303,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -303,7 +303,7 @@ module.exports = class TestTab extends ViewPlugin {
infoButton () {
infoButton () {
return yo`
return yo`
<a class="
btn
border
d
-
flex
w
-
50
ml
-
2
" target="
__blank
" href="
https
:
//remix-ide.readthedocs.io/en/latest/unittesting.html">
<a class="
btn
border
d
-
flex
w
-
50
ml
-
2
" t
itle="
Check
out
documentation
.
" t
arget="
__blank
" href="
https
:
//remix-ide.readthedocs.io/en/latest/unittesting.html">
<
label
class
=
"btn p-1 ml-2 text-dark m-0"
>
How
to
use
<
/label
>
<
label
class
=
"btn p-1 ml-2 text-dark m-0"
>
How
to
use
<
/label
>
<
/a
>
<
/a
>
`
`
...
@@ -311,7 +311,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -311,7 +311,7 @@ module.exports = class TestTab extends ViewPlugin {
render () {
render () {
this.onActivationInternal()
this.onActivationInternal()
this.testsOutput = yo`
<
div
class
=
"${css.container} mx-3 border-top border-primary"
hidden
=
'true'
id
=
"solidityUnittestsOutput"
data
-
id
=
"testTabSolidityUnitTestsOutput"
><
/a>
`
this.testsOutput = yo`
<
div
class
=
"${css.container} mx-3 border-top border-primary"
hidden
=
'true'
id
=
"solidityUnittestsOutput"
data
-
id
=
"testTabSolidityUnitTestsOutput"
><
/a>
`
this
.
testsSummary
=
yo
`<div class="
${
css
.
container
}
mx-3 border-top border-primary" hidden='true' id="solidityUnittestsSummary" data-id="testTabSolidityUnitTestsSummary"></div>`
this
.
testsSummary
=
yo
`<div class="
${
css
.
container
}
mx-3
pt-2
border-top border-primary" hidden='true' id="solidityUnittestsSummary" data-id="testTabSolidityUnitTestsSummary"></div>`
this
.
loading
=
yo
`<span class='text-info ml-1'>Running tests...</span>`
this
.
loading
=
yo
`<span class='text-info ml-1'>Running tests...</span>`
this
.
loading
.
hidden
=
true
this
.
loading
.
hidden
=
true
var
el
=
yo
`
var
el
=
yo
`
...
...
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