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
11d4d371
Commit
11d4d371
authored
Nov 02, 2020
by
LianaHus
Committed by
Liana Husikyan
Nov 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
passing sources
parent
ab9933e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+6
-6
No files found.
apps/remix-ide/src/app/tabs/test-tab.js
View file @
11d4d371
...
@@ -130,7 +130,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -130,7 +130,7 @@ module.exports = class TestTab extends ViewPlugin {
await
this
.
call
(
'editor'
,
'discardHighlight'
)
await
this
.
call
(
'editor'
,
'discardHighlight'
)
}
}
async
highlightLocation
(
location
,
fileName
)
{
async
highlightLocation
(
location
,
runningTest
,
fileName
)
{
if
(
location
)
{
if
(
location
)
{
var
split
=
location
.
split
(
':'
)
var
split
=
location
.
split
(
':'
)
var
file
=
split
[
2
]
var
file
=
split
[
2
]
...
@@ -141,14 +141,14 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -141,14 +141,14 @@ module.exports = class TestTab extends ViewPlugin {
location
=
this
.
offsetToLineColumnConverter
.
offsetToLineColumn
(
location
=
this
.
offsetToLineColumnConverter
.
offsetToLineColumn
(
location
,
location
,
parseInt
(
file
),
parseInt
(
file
),
fileName
runningTest
)
)
await
this
.
call
(
'editor'
,
'discardHighlight'
)
await
this
.
call
(
'editor'
,
'discardHighlight'
)
await
this
.
call
(
'editor'
,
'highlight'
,
location
,
fileName
)
await
this
.
call
(
'editor'
,
'highlight'
,
location
,
fileName
)
}
}
}
}
testCallback
(
result
)
{
testCallback
(
result
,
runningTest
)
{
this
.
testsOutput
.
hidden
=
false
this
.
testsOutput
.
hidden
=
false
if
(
result
.
type
===
'contract'
)
{
if
(
result
.
type
===
'contract'
)
{
this
.
testSuite
=
result
.
value
this
.
testSuite
=
result
.
value
...
@@ -182,7 +182,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -182,7 +182,7 @@ module.exports = class TestTab extends ViewPlugin {
<div
<div
class="bg-light mb-2
${
css
.
testFailure
}
${
css
.
testLog
}
d-flex flex-column text-danger border-0"
class="bg-light mb-2
${
css
.
testFailure
}
${
css
.
testLog
}
d-flex flex-column text-danger border-0"
id="UTContext
${
result
.
context
}
"
id="UTContext
${
result
.
context
}
"
onclick=
${()
=>
this
.
highlightLocation
(
result
.
location
,
this
.
rawFileName
)}
onclick=
${()
=>
this
.
highlightLocation
(
result
.
location
,
runningTest
,
this
.
rawFileName
)}
>
>
<span> ✘
${
result
.
value
}
</span>
<span> ✘
${
result
.
value
}
</span>
<span class="text-dark">Error Message:</span>
<span class="text-dark">Error Message:</span>
...
@@ -197,7 +197,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -197,7 +197,7 @@ module.exports = class TestTab extends ViewPlugin {
<div
<div
class="bg-light mb-2
${
css
.
testFailure
}
${
css
.
testLog
}
d-flex flex-column text-danger border-0"
class="bg-light mb-2
${
css
.
testFailure
}
${
css
.
testLog
}
d-flex flex-column text-danger border-0"
id="UTContext
${
result
.
context
}
"
id="UTContext
${
result
.
context
}
"
onclick=
${()
=>
this
.
highlightLocation
(
result
.
location
,
this
.
rawFileName
)}
onclick=
${()
=>
this
.
highlightLocation
(
result
.
location
,
runningTest
,
this
.
rawFileName
)}
>
>
<span> ✘
${
result
.
value
}
</span>
<span> ✘
${
result
.
value
}
</span>
<span class="text-dark">Error Message:</span>
<span class="text-dark">Error Message:</span>
...
@@ -397,7 +397,7 @@ module.exports = class TestTab extends ViewPlugin {
...
@@ -397,7 +397,7 @@ module.exports = class TestTab extends ViewPlugin {
remixTests
.
runTestSources
(
remixTests
.
runTestSources
(
runningTest
,
runningTest
,
compilerConfig
,
compilerConfig
,
(
result
)
=>
this
.
testCallback
(
result
),
(
result
)
=>
this
.
testCallback
(
result
,
runningTest
),
(
_err
,
result
,
cb
)
=>
this
.
resultsCallback
(
_err
,
result
,
cb
),
(
_err
,
result
,
cb
)
=>
this
.
resultsCallback
(
_err
,
result
,
cb
),
(
error
,
result
)
=>
{
(
error
,
result
)
=>
{
this
.
updateFinalResult
(
error
,
result
,
testFilePath
)
this
.
updateFinalResult
(
error
,
result
,
testFilePath
)
...
...
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