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