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
1dc53ecf
Commit
1dc53ecf
authored
May 12, 2020
by
LianaHus
Committed by
Liana Husikyan
May 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the opacity of highlight color
added opacity on highlighitcode_fullLine removed anused css class
parent
1f6267d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
sourceHighlighter.js
src/app/editor/sourceHighlighter.js
+2
-2
renderer-styles.js
src/app/ui/styles/renderer-styles.js
+0
-6
staticAnalysis.test.js
test-browser/tests/staticAnalysis.test.js
+2
-2
No files found.
src/app/editor/sourceHighlighter.js
View file @
1dc53ecf
...
...
@@ -47,7 +47,7 @@ class SourceHighlighter {
.highlightcode {
position:absolute;
z-index:20;
opacity: 0.
2
;
opacity: 0.
3
;
background-color:
${
style
||
'var(--info)'
}
;
}
.highlightcode_fullLine {
...
...
@@ -61,7 +61,7 @@ class SourceHighlighter {
}
`
this
.
statementMarker
=
this
.
_deps
.
editor
.
addMarker
(
lineColumnPos
,
this
.
source
,
css
.
highlightcode
.
className
+
' '
+
css
.
customBackgroundColor
.
className
+
' '
+
`highlightLine
${
lineColumnPos
.
start
.
line
}
`
)
this
.
statementMarker
=
this
.
_deps
.
editor
.
addMarker
(
lineColumnPos
,
this
.
source
,
css
.
highlightcode
.
className
+
' '
+
css
.
customBackgroundColor
.
className
+
' '
+
`highlightLine
${
lineColumnPos
.
start
.
line
}
`
)
this
.
_deps
.
editor
.
scrollToLine
(
lineColumnPos
.
start
.
line
,
true
,
true
,
function
()
{})
this
.
position
=
lineColumnPos
if
(
lineColumnPos
.
start
.
line
===
lineColumnPos
.
end
.
line
)
{
...
...
src/app/ui/styles/renderer-styles.js
View file @
1dc53ecf
...
...
@@ -3,7 +3,6 @@ var yo = require('yo-yo')
var
css
=
yo
`<style>
.sol.success,
.sol.error,
.sol.staticAnalysisWarning,
.sol.warning {
white-space: pre-line;
word-wrap: break-word;
...
...
@@ -17,7 +16,6 @@ var css = yo`<style>
.sol.success pre,
.sol.error pre,
.sol.staticAnalysisWarning pre,
.sol.warning pre {
white-space: pre-line;
overflow-y: hidden;
...
...
@@ -30,7 +28,6 @@ var css = yo`<style>
}
.sol.success .close,
.sol.staticAnalysisWarning .close,
.sol.error .close,
.sol.warning .close {
white-space: pre-line;
...
...
@@ -48,9 +45,6 @@ var css = yo`<style>
.sol.warning {
}
.sol.staticAnalysisWarning {
}
.sol.success {
/* background-color: // styles.rightPanel.message_Success_BackgroundColor; */
}</style>`
...
...
test-browser/tests/staticAnalysis.test.js
View file @
1dc53ecf
...
...
@@ -38,11 +38,11 @@ function runTests (browser) {
.
testContracts
(
'Untitled.sol'
,
sources
[
0
][
'browser/Untitled.sol'
],
[
'TooMuchGas'
,
'test1'
,
'test2'
])
.
clickLaunchIcon
(
'solidityStaticAnalysis'
)
.
click
(
'#staticanalysisView button'
)
.
waitForElementPresent
(
'#staticanalysisresult .
staticAnalysisW
arning'
,
2000
,
true
,
function
()
{
.
waitForElementPresent
(
'#staticanalysisresult .
w
arning'
,
2000
,
true
,
function
()
{
listSelectorContains
([
'Use of tx.origin'
,
'Fallback function of contract TooMuchGas requires too much gas'
,
'TooMuchGas.() : Variables have very similar names test and test1.'
],
'#staticanalysisresult .
staticAnalysisW
arning'
,
'#staticanalysisresult .
w
arning'
,
browser
,
function
()
{
browser
.
end
()
}
...
...
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