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
8fec5d48
Commit
8fec5d48
authored
Apr 20, 2020
by
LianaHus
Committed by
Aniket
Apr 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the link for UT help:wq
parent
01f4535f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test-tab.js
src/app/tabs/test-tab.js
+6
-6
No files found.
src/app/tabs/test-tab.js
View file @
8fec5d48
...
@@ -29,7 +29,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -29,7 +29,7 @@ module.exports = class TestTab extends ViewPlugin {
this
.
data
=
{}
this
.
data
=
{}
this
.
appManager
=
appManager
this
.
appManager
=
appManager
this
.
renderer
=
renderer
this
.
renderer
=
renderer
this
.
hasBeenStoped
=
false
this
.
hasBeenStop
p
ed
=
false
this
.
baseurl
=
'https://solc-bin.ethereum.org/bin'
this
.
baseurl
=
'https://solc-bin.ethereum.org/bin'
appManager
.
event
.
on
(
'activate'
,
(
name
)
=>
{
appManager
.
event
.
on
(
'activate'
,
(
name
)
=>
{
if
(
name
===
'solidity'
)
this
.
updateRunAction
(
fileManager
.
currentFile
())
if
(
name
===
'solidity'
)
this
.
updateRunAction
(
fileManager
.
currentFile
())
...
@@ -159,7 +159,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -159,7 +159,7 @@ module.exports = class TestTab extends ViewPlugin {
this
.
testsSummary
.
appendChild
(
yo
`<div class="
${
css
.
testFailureSummary
}
text-danger" >
${
error
.
message
}
</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<div class="
${
css
.
testFailureSummary
}
text-danger" >
${
error
.
message
}
</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<br>`
)
this
.
testsSummary
.
appendChild
(
yo
`<br>`
)
})
})
if
(
this
.
hasBeenStoped
)
{
if
(
this
.
hasBeenStop
p
ed
)
{
this
.
testsSummary
.
appendChild
(
yo
`<label class="text-warning h5">The test execution has been stopped</label>`
)
this
.
testsSummary
.
appendChild
(
yo
`<label class="text-warning h5">The test execution has been stopped</label>`
)
}
}
}
}
...
@@ -194,7 +194,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -194,7 +194,7 @@ module.exports = class TestTab extends ViewPlugin {
}
}
runTest
(
testFilePath
,
callback
)
{
runTest
(
testFilePath
,
callback
)
{
if
(
this
.
hasBeenStoped
)
{
if
(
this
.
hasBeenStop
p
ed
)
{
this
.
updateFinalResult
()
this
.
updateFinalResult
()
return
return
}
}
...
@@ -239,7 +239,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -239,7 +239,7 @@ module.exports = class TestTab extends ViewPlugin {
}
}
stopTests
()
{
stopTests
()
{
this
.
hasBeenStoped
=
true
this
.
hasBeenStop
p
ed
=
true
}
}
updateGenerateFileAction
(
currentFile
)
{
updateGenerateFileAction
(
currentFile
)
{
...
@@ -258,7 +258,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -258,7 +258,7 @@ module.exports = class TestTab extends ViewPlugin {
updateRunAction
(
currentFile
)
{
updateRunAction
(
currentFile
)
{
let
el
=
yo
`
let
el
=
yo
`
<button id="runTestsTabRunAction" data-id="testTabRunTestsTabRunAction" class="w-50 btn btn-primary" onclick="
${()
=>
{
this
.
hasBeenStoped
=
false
;
this
.
runTests
()
}}
">
<button id="runTestsTabRunAction" data-id="testTabRunTestsTabRunAction" class="w-50 btn btn-primary" onclick="
${()
=>
{
this
.
hasBeenStop
p
ed
=
false
;
this
.
runTests
()
}}
">
<span class="
fas
fa
-
play
ml
-
2
"></span>
<span class="
fas
fa
-
play
ml
-
2
"></span>
<label class="
btn
btn
-
primary
p
-
1
ml
-
2
m
-
0
">Run</label>
<label class="
btn
btn
-
primary
p
-
1
ml
-
2
m
-
0
">Run</label>
</button>
</button>
...
@@ -321,7 +321,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -321,7 +321,7 @@ module.exports = class TestTab extends ViewPlugin {
infoButton () {
infoButton () {
return yo`
return yo`
<a class="
btn
border
text
-
decoration
-
none
pr
-
0
d
-
flex
w
-
50
ml
-
2
" title="
Check
out
documentation
.
" target="
__blank
" href="
https
:
//remix-ide.readthedocs.io/en/latest/unittesting.html">
<a class="
btn
border
text
-
decoration
-
none
pr
-
0
d
-
flex
w
-
50
ml
-
2
" title="
Check
out
documentation
.
" target="
__blank
" href="
https
:
//remix-ide.readthedocs.io/en/latest/unittesting.html
#generate-test-file
">
<
label
class
=
"btn p-1 ml-3 text-dark m-0"
>
How
to
use
<
/label
>
<
label
class
=
"btn p-1 ml-3 text-dark m-0"
>
How
to
use
<
/label
>
<
/a
>
<
/a
>
`
`
...
...
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