use new remix libs

pull/3094/head
yann300 5 years ago
parent 5079e5b021
commit ba97e58408
  1. 3180
      package-lock.json
  2. 10
      package.json
  3. 3
      src/app.js
  4. 10
      src/app/tabs/test-tab.js

3180
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -51,12 +51,12 @@
"npm-merge-driver": "^2.3.5",
"npm-run-all": "^4.0.2",
"onchange": "^3.2.1",
"remix-analyzer": "0.3.8",
"remix-debug": "0.3.9",
"remix-lib": "^0.4.8",
"remix-solidity": "0.3.10",
"remix-analyzer": "0.3.10",
"remix-debug": "0.3.11",
"remix-lib": "0.4.9",
"remix-solidity": "0.3.12",
"remix-tabs": "1.0.48",
"remix-tests": "0.1.13",
"remix-tests": "0.1.15",
"remixd": "0.1.8-alpha.7",
"request": "^2.83.0",
"rimraf": "^2.6.1",

@ -317,7 +317,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
registry.get('filemanager').api,
filePanel,
compileTab,
appManager
appManager,
new Renderer()
)
appManager.register([

@ -19,15 +19,15 @@ const profile = {
}
module.exports = class TestTab extends ViewPlugin {
constructor (fileManager, filePanel, compileTab, appManager) {
constructor (fileManager, filePanel, compileTab, appManager, renderer, editor) {
super(profile)
this.compileTab = compileTab
this._view = { el: null }
this.compileTab = compileTab
this.fileManager = fileManager
this.filePanel = filePanel
this.data = {}
this.appManager = appManager
this.renderer = renderer
appManager.event.on('activate', (name) => {
if (name === 'solidity') this.updateRunAction(fileManager.currentFile())
})
@ -117,10 +117,10 @@ module.exports = class TestTab extends ViewPlugin {
cb()
}
updateFinalResult (_err, result, filename) {
updateFinalResult (_errors, result, filename) {
this.testsSummary.hidden = false
if (_err) {
this.testsSummary.appendChild(yo`<div class="${css.testFailureSummary} text-danger" >${_err.message}</div>`)
if (_errors) {
_errors.forEach((err) => this.renderer.error(err.formattedMessage || err.message, this.testsSummary, {type: err.severity}) )
return
}
this.testsSummary.appendChild(yo`<div class=${css.summaryTitle}> ${filename} </div>`)

Loading…
Cancel
Save