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
f3767c92
Commit
f3767c92
authored
Nov 25, 2020
by
aniket-engg
Committed by
Aniket
Dec 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated runs from URL
test for runs set default value in input
parent
006464f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
url.test.ts
apps/remix-ide-e2e/src/tests/url.test.ts
+3
-1
compilerContainer.js
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
+4
-2
No files found.
apps/remix-ide-e2e/src/tests/url.test.ts
View file @
f3767c92
...
...
@@ -23,6 +23,7 @@ module.exports = {
.
assert
.
containsText
(
'#versionSelector option[selected="selected"]'
,
'0.7.4+commit.3f05b770'
)
.
assert
.
containsText
(
'#evmVersionSelector option[selected="selected"]'
,
'istanbul'
)
.
verify
.
elementPresent
(
'#optimize:checked'
)
.
verify
.
attributeEquals
(
'#runs'
,
'value'
,
'300'
)
},
'Should load using compiler from link passed in remix URL'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -34,9 +35,10 @@ module.exports = {
.
pause
(
5000
)
.
assert
.
containsText
(
'#versionSelector option[selected="selected"]'
,
'custom'
)
// default values
.
assert
.
containsText
(
'#evmVersionSelector option[selected="selected"]'
,
'default'
)
.
verify
.
elementPresent
(
'#optimize'
)
.
assert
.
elementNotPresent
(
'#optimize:checked'
)
.
assert
.
containsText
(
'#evmVersionSelector option[selected="selected"]'
,
'default
'
)
.
verify
.
elementPresent
(
'#runs:disabled
'
)
.
end
()
},
...
...
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
View file @
f3767c92
...
...
@@ -197,12 +197,14 @@ class CompilerContainer {
class="custom-select ml-2
${
css
.
runs
}
"
id="runs"
placeholder="200"
value="200"
type="number"
title="Estimated number of times each opcode of the deployed code will be executed across the life-time of the contract."
onchange=
${()
=>
this
.
onchangeRuns
()}
>`
if
(
this
.
compileTabLogic
.
optimize
)
this
.
_view
.
runs
.
removeAttribute
(
'disabled'
)
else
{
if
(
this
.
compileTabLogic
.
optimize
)
{
this
.
_view
.
runs
.
value
=
this
.
compileTabLogic
.
runs
}
else
{
this
.
_view
.
runs
.
setAttribute
(
'disabled'
,
''
)
}
...
...
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