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
4e98f269
Unverified
Commit
4e98f269
authored
Apr 03, 2019
by
yann300
Committed by
GitHub
Apr 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1792 from ethereum/yann300-patch-17
Update vertical-icons-component.js
parents
d5f51844
0e96e48a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
vertical-icons-component.js
src/app/components/vertical-icons-component.js
+2
-2
contracts.js
test-browser/helpers/contracts.js
+1
-1
init.js
test-browser/helpers/init.js
+2
-2
No files found.
src/app/components/vertical-icons-component.js
View file @
4e98f269
...
...
@@ -56,8 +56,8 @@ class VerticalIconComponent {
* Add an icon to the map
* @param {ModuleProfile} profile The profile of the module
*/
addIcon
({
kind
,
name
,
icon
})
{
this
.
icons
[
name
]
=
yo
`<div class="
${
css
.
icon
}
" onclick="
${(
e
)
=>
{
this
.
_iconClick
(
name
)
}}
"
title="
$
{
name
}
" ><img src="
${
icon
}
" alt="
${
name
}
" /></div>`
addIcon
({
kind
,
name
,
icon
,
displayName
})
{
this
.
icons
[
name
]
=
yo
`<div class="
${
css
.
icon
}
" onclick="
${(
e
)
=>
{
this
.
_iconClick
(
name
)
}}
"
plugin="
$
{
name
}
" title="
${
displayName
||
name
}
" ><img src="
${
icon
}
" alt="
${
name
}
" /></div>`
this
.
iconKind
[
kind
||
'other'
].
appendChild
(
this
.
icons
[
name
])
}
...
...
test-browser/helpers/contracts.js
View file @
4e98f269
...
...
@@ -28,7 +28,7 @@ module.exports = {
}
function
clickLaunchIcon
(
icon
)
{
this
.
click
(
'#icon-panel div[
title
="'
+
icon
+
'"]'
)
this
.
click
(
'#icon-panel div[
plugin
="'
+
icon
+
'"]'
)
return
this
}
...
...
test-browser/helpers/init.js
View file @
4e98f269
...
...
@@ -17,7 +17,7 @@ module.exports = function (browser, callback) {
}
function
initModules
(
browser
,
callback
)
{
browser
.
click
(
'#icon-panel div[
title
="pluginManager"]'
)
browser
.
click
(
'#icon-panel div[
plugin
="pluginManager"]'
)
.
execute
(
function
()
{
document
.
querySelector
(
'div[title="pluginManager"]'
).
scrollTop
=
document
.
querySelector
(
'div[title="pluginManager"]'
).
scrollHeight
},
[],
function
()
{
...
...
@@ -25,7 +25,7 @@ function initModules (browser, callback) {
.
click
(
'#pluginManager article[title="run"] button'
)
.
click
(
'#pluginManager article[title="solidityStaticAnalysis"] button'
)
.
click
(
'#pluginManager article[title="debugger"] button'
)
.
click
(
'#icon-panel div[
title
="fileExplorers"]'
)
.
click
(
'#icon-panel div[
plugin
="fileExplorers"]'
)
.
perform
(()
=>
{
callback
()
})
})
}
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