Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
029485d2
Commit
029485d2
authored
May 19, 2018
by
Iuri Matias
Committed by
yann300
Jun 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up test-tab
parent
3e872d6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
test-tab.js
src/app/tabs/test-tab.js
+7
-14
No files found.
src/app/tabs/test-tab.js
View file @
029485d2
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
css
=
require
(
'./styles/test-tab-styles'
)
var
css
=
require
(
'./styles/test-tab-styles'
)
var
remixTests
=
require
(
'remix-tests'
)
var
remixTests
=
require
(
'remix-tests'
)
function
runTests
()
{
function
testTabView
(
api
)
{
let
contractSources
=
window
.
api
.
getAllSources
()
let
runTests
=
function
()
{
remixTests
.
runTestSources
(
contractSources
)
let
contractSources
=
api
.
getAllSources
()
}
remixTests
.
runTestSources
(
contractSources
)
}
function
testTabView
()
{
return
yo
`
return
yo
`
<div class="
${
css
.
testTabView
}
"id="testView">
<div class="
${
css
.
testTabView
}
"id="testView">
<div>
<div>
...
@@ -24,20 +22,15 @@ function testTabView () {
...
@@ -24,20 +22,15 @@ function testTabView () {
}
}
function
testTab
(
api
=
{},
events
=
{},
opts
=
{})
{
function
testTab
(
api
=
{},
events
=
{},
opts
=
{})
{
window
.
api
=
api
let
el
=
testTabView
(
api
)
console
.
dir
(
'------'
)
console
.
dir
(
api
)
let
el
=
testTabView
(
''
)
let
gitterIsLoaded
=
false
let
gitterIsLoaded
=
false
// api.compilerContracts.getSources()
events
.
app
.
register
(
'tabChanged'
,
(
tabName
)
=>
{
events
.
app
.
register
(
'tabChanged'
,
(
tabName
)
=>
{
if
(
tabName
!==
'test'
||
gitterIsLoaded
)
{
if
(
tabName
!==
'test'
||
gitterIsLoaded
)
{
return
return
}
}
yo
.
update
(
el
,
testTabView
())
yo
.
update
(
el
,
testTabView
(
api
))
el
.
style
.
display
=
'block'
el
.
style
.
display
=
'block'
gitterIsLoaded
=
true
gitterIsLoaded
=
true
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment