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
edf19b46
Commit
edf19b46
authored
Apr 16, 2021
by
tizah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: testing to see if test passes
parent
84bcd82c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
staticAnalysis.spec.ts
apps/remix-ide-e2e/src/tests/staticAnalysis.spec.ts
+1
-1
ErrorRenderer.tsx
libs/remix-ui/static-analyser/src/lib/ErrorRenderer.tsx
+1
-1
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+1
-0
No files found.
apps/remix-ide-e2e/src/tests/staticAnalysis.spec.ts
View file @
edf19b46
...
...
@@ -41,7 +41,7 @@ function runTests (browser: NightwatchBrowser) {
.
testContracts
(
'Untitled.sol'
,
sources
[
0
][
'Untitled.sol'
],
[
'TooMuchGas'
,
'test1'
,
'test2'
])
.
clickLaunchIcon
(
'solidityStaticAnalysis'
)
.
click
(
'#staticanalysisView button'
)
.
waitForElementPresent
(
'#staticanalysisresult .warning'
,
2000
,
tru
e
,
function
()
{
.
waitForElementPresent
(
'#staticanalysisresult .warning'
,
2000
,
fals
e
,
function
()
{
listSelectorContains
([
'Use of tx.origin'
,
'Fallback function of contract TooMuchGas requires too much gas'
,
'TooMuchGas.() : Variables have very similar names "test" and "test1".'
,
...
...
libs/remix-ui/static-analyser/src/lib/ErrorRenderer.tsx
View file @
edf19b46
...
...
@@ -60,7 +60,7 @@ const ErrorRenderer = ({ message, opt }: ErrorRendererProps) => {
<
i
className=
"fas fa-times"
></
i
>
</
div
>
<
span
className=
'd-flex flex-column'
>
<
span
className=
'h6 font-weight-bold'
>
{
opt
.
item
.
name
}
</
span
>
<
span
className=
'h6 font-weight-bold'
>
{
opt
.
name
}
</
span
>
{
opt
.
item
.
warning
}
{
opt
.
item
.
more
?
<
span
><
a
href=
{
opt
.
item
.
more
}
target=
'_blank'
>
more
</
a
></
span
>
...
...
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
edf19b46
...
...
@@ -164,6 +164,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
<span class="" title="Position in
${
fileName
}
">Pos:
${
locationString
}
</span>
</span>`
console
.
log
(
result
.
name
,
' result name now'
)
const
options
=
{
type
:
'warning'
,
useSpan
:
true
,
...
...
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