Skip to content

Commit

Permalink
clean up test-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
iurimatias authored and yann300 committed Jun 1, 2018
1 parent 3e872d6 commit 029485d
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/app/tabs/test-tab.js
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -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
})
Expand Down

0 comments on commit 029485d

Please sign in to comment.