Commit 8f52cb42 authored by yann300's avatar yann300

use new remix libs

parent bb355c6b
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -51,12 +51,12 @@ ...@@ -51,12 +51,12 @@
"npm-merge-driver": "^2.3.5", "npm-merge-driver": "^2.3.5",
"npm-run-all": "^4.0.2", "npm-run-all": "^4.0.2",
"onchange": "^3.2.1", "onchange": "^3.2.1",
"remix-analyzer": "0.3.8", "remix-analyzer": "0.3.10",
"remix-debug": "0.3.9", "remix-debug": "0.3.11",
"remix-lib": "^0.4.8", "remix-lib": "0.4.9",
"remix-solidity": "0.3.10", "remix-solidity": "0.3.12",
"remix-tabs": "1.0.48", "remix-tabs": "1.0.48",
"remix-tests": "0.1.13", "remix-tests": "0.1.15",
"remixd": "0.1.8-alpha.7", "remixd": "0.1.8-alpha.7",
"request": "^2.83.0", "request": "^2.83.0",
"rimraf": "^2.6.1", "rimraf": "^2.6.1",
......
...@@ -317,7 +317,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org ...@@ -317,7 +317,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
registry.get('filemanager').api, registry.get('filemanager').api,
filePanel, filePanel,
compileTab, compileTab,
appManager appManager,
new Renderer()
) )
appManager.register([ appManager.register([
......
...@@ -19,15 +19,15 @@ const profile = { ...@@ -19,15 +19,15 @@ const profile = {
} }
module.exports = class TestTab extends ViewPlugin { module.exports = class TestTab extends ViewPlugin {
constructor (fileManager, filePanel, compileTab, appManager) { constructor (fileManager, filePanel, compileTab, appManager, renderer, editor) {
super(profile) super(profile)
this.compileTab = compileTab this.compileTab = compileTab
this._view = { el: null } this._view = { el: null }
this.compileTab = compileTab
this.fileManager = fileManager this.fileManager = fileManager
this.filePanel = filePanel this.filePanel = filePanel
this.data = {} this.data = {}
this.appManager = appManager this.appManager = appManager
this.renderer = renderer
appManager.event.on('activate', (name) => { appManager.event.on('activate', (name) => {
if (name === 'solidity') this.updateRunAction(fileManager.currentFile()) if (name === 'solidity') this.updateRunAction(fileManager.currentFile())
}) })
...@@ -117,10 +117,10 @@ module.exports = class TestTab extends ViewPlugin { ...@@ -117,10 +117,10 @@ module.exports = class TestTab extends ViewPlugin {
cb() cb()
} }
updateFinalResult (_err, result, filename) { updateFinalResult (_errors, result, filename) {
this.testsSummary.hidden = false this.testsSummary.hidden = false
if (_err) { if (_errors) {
this.testsSummary.appendChild(yo`<div class="${css.testFailureSummary} text-danger" >${_err.message}</div>`) _errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}) )
return return
} }
this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`) this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment