clean up test-tab

pull/3094/head
Iuri Matias 7 years ago committed by yann300
parent 6d35283dc2
commit da472f1d77
  1. 21
      src/app/tabs/test-tab.js

@ -1,15 +1,13 @@
var yo = require('yo-yo')
var css = require('./styles/test-tab-styles')
var remixTests = require('remix-tests')
function runTests () {
let contractSources = window.api.getAllSources()
remixTests.runTestSources(contractSources)
}
function testTabView (api) {
let runTests = function () {
let contractSources = api.getAllSources()
remixTests.runTestSources(contractSources)
}
function testTabView () {
return yo`
<div class="${css.testTabView} "id="testView">
<div>
@ -24,20 +22,15 @@ function testTabView () {
}
function testTab (api = {}, events = {}, opts = {}) {
window.api = api
console.dir('------')
console.dir(api)
let el = testTabView('')
let el = testTabView(api)
let gitterIsLoaded = false
// api.compilerContracts.getSources()
events.app.register('tabChanged', (tabName) => {
if (tabName !== 'test' || gitterIsLoaded) {
return
}
yo.update(el, testTabView())
yo.update(el, testTabView(api))
el.style.display = 'block'
gitterIsLoaded = true
})

Loading…
Cancel
Save