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
3f1736c2
Unverified
Commit
3f1736c2
authored
Apr 15, 2019
by
yann300
Committed by
GitHub
Apr 15, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1852 from ethereum/testLoading
Tiny fix: display 'running tests ...' label
parents
40521079
f9c229b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test-tab.js
src/app/tabs/test-tab.js
+6
-2
No files found.
src/app/tabs/test-tab.js
View file @
3f1736c2
...
@@ -136,12 +136,14 @@ module.exports = class TestTab extends BaseApi {
...
@@ -136,12 +136,14 @@ module.exports = class TestTab extends BaseApi {
}
}
runTest
(
testFilePath
,
callback
)
{
runTest
(
testFilePath
,
callback
)
{
this
.
loading
.
hidden
=
false
this
.
fileManager
.
fileProviderOf
(
testFilePath
).
get
(
testFilePath
,
(
error
,
content
)
=>
{
this
.
fileManager
.
fileProviderOf
(
testFilePath
).
get
(
testFilePath
,
(
error
,
content
)
=>
{
if
(
error
)
return
if
(
error
)
return
var
runningTest
=
{}
var
runningTest
=
{}
runningTest
[
testFilePath
]
=
{
content
}
runningTest
[
testFilePath
]
=
{
content
}
remixTests
.
runTestSources
(
runningTest
,
(
result
)
=>
{
this
.
testCallback
(
result
)
},
(
_err
,
result
,
cb
)
=>
{
this
.
resultsCallback
(
_err
,
result
,
cb
)
},
(
error
,
result
)
=>
{
remixTests
.
runTestSources
(
runningTest
,
(
result
)
=>
{
this
.
testCallback
(
result
)
},
(
_err
,
result
,
cb
)
=>
{
this
.
resultsCallback
(
_err
,
result
,
cb
)
},
(
error
,
result
)
=>
{
this
.
updateFinalResult
(
error
,
result
,
testFilePath
)
this
.
updateFinalResult
(
error
,
result
,
testFilePath
)
this
.
loading
.
hidden
=
true
callback
(
error
)
callback
(
error
)
},
(
url
,
cb
)
=>
{
},
(
url
,
cb
)
=>
{
return
this
.
compileTab
.
compileTabLogic
.
importFileCb
(
url
,
cb
)
return
this
.
compileTab
.
compileTabLogic
.
importFileCb
(
url
,
cb
)
...
@@ -150,6 +152,7 @@ module.exports = class TestTab extends BaseApi {
...
@@ -150,6 +152,7 @@ module.exports = class TestTab extends BaseApi {
}
}
runTests
()
{
runTests
()
{
this
.
loading
.
hidden
=
false
this
.
testsOutput
.
innerHTML
=
''
this
.
testsOutput
.
innerHTML
=
''
this
.
testsSummary
.
innerHTML
=
''
this
.
testsSummary
.
innerHTML
=
''
var
tests
=
this
.
data
.
selectedTests
var
tests
=
this
.
data
.
selectedTests
...
@@ -159,7 +162,8 @@ module.exports = class TestTab extends BaseApi {
...
@@ -159,7 +162,8 @@ module.exports = class TestTab extends BaseApi {
render
()
{
render
()
{
this
.
testsOutput
=
yo
`<div class="
${
css
.
container
}
border border-primary border-right-0 border-left-0 border-bottom-0" hidden='true' id="tests"></div>`
this
.
testsOutput
=
yo
`<div class="
${
css
.
container
}
border border-primary border-right-0 border-left-0 border-bottom-0" hidden='true' id="tests"></div>`
this
.
testsSummary
=
yo
`<div class="
${
css
.
container
}
border border-primary border-right-0 border-left-0 border-bottom-0" hidden='true' id="tests"></div>`
this
.
testsSummary
=
yo
`<div class="
${
css
.
container
}
border border-primary border-right-0 border-left-0 border-bottom-0" hidden='true' id="tests"></div>`
this
.
loading
=
yo
`<span class='text-info ml-1'>Running tests...</span>`
this
.
loading
.
hidden
=
true
var
el
=
yo
`
var
el
=
yo
`
<div class="
${
css
.
testTabView
}
card" id="testView">
<div class="
${
css
.
testTabView
}
card" id="testView">
<div class="
${
css
.
infoBox
}
">
<div class="
${
css
.
infoBox
}
">
...
@@ -187,7 +191,7 @@ module.exports = class TestTab extends BaseApi {
...
@@ -187,7 +191,7 @@ module.exports = class TestTab extends BaseApi {
</div>
</div>
${this.testList}
${this.testList}
<hr>
<hr>
<div class="
$
{
css
.
buttons
}
" ><h6>Results:</h6></div>
<div class="
$
{
css
.
buttons
}
" ><h6>Results:
${
this
.
loading
}
</h6></div>
${
this
.
testsOutput
}
${
this
.
testsOutput
}
${
this
.
testsSummary
}
${
this
.
testsSummary
}
</div>
</div>
...
...
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