Skip to content

Commit

Permalink
Merge pull request ethereum#1792 from ethereum/yann300-patch-17
Browse files Browse the repository at this point in the history
Update vertical-icons-component.js
  • Loading branch information
yann300 authored Apr 3, 2019
2 parents d5f5184 + 0e96e48 commit 4e98f26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/components/vertical-icons-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

Expand Down
2 changes: 1 addition & 1 deletion test-browser/helpers/contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions test-browser/helpers/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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 () {
browser.click('#pluginManager article[title="solidity"] button')
.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() })
})
}

0 comments on commit 4e98f26

Please sign in to comment.