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
d7d9c8b5
Commit
d7d9c8b5
authored
Feb 27, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix browser test && rename module
parent
86eb049a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
framingService.js
src/framingService.js
+3
-3
contracts.js
test-browser/helpers/contracts.js
+5
-5
init.js
test-browser/helpers/init.js
+3
-3
No files found.
src/framingService.js
View file @
d7d9c8b5
...
...
@@ -2,12 +2,12 @@ export default {
start
:
(
appStore
,
swapPanelApi
,
verticalIconApi
,
mainPanelApi
,
resizeFeature
)
=>
{
swapPanelApi
.
event
.
on
(
'toggle'
,
(
moduleName
)
=>
{
resizeFeature
.
panel1
.
clientWidth
!==
0
?
resizeFeature
.
minimize
()
:
resizeFeature
.
maximise
()
if
(
moduleName
===
'file
e
xplorers'
)
{
if
(
moduleName
===
'file
E
xplorers'
)
{
mainPanelApi
.
showContent
(
'code editor'
)
}
})
swapPanelApi
.
event
.
on
(
'showing'
,
(
moduleName
)
=>
{
if
(
moduleName
===
'file
e
xplorers'
)
{
if
(
moduleName
===
'file
E
xplorers'
)
{
mainPanelApi
.
showContent
(
'code editor'
)
}
resizeFeature
.
panel1
.
clientWidth
===
0
?
resizeFeature
.
maximise
()
:
''
...
...
@@ -21,7 +21,7 @@ export default {
})
// mainPanelApi.event.on('showing', (moduleName) => {})
verticalIconApi
.
select
(
'file
e
xplorers'
)
verticalIconApi
.
select
(
'file
E
xplorers'
)
verticalIconApi
.
select
(
'homepage'
)
resizeFeature
.
minimize
()
}
...
...
test-browser/helpers/contracts.js
View file @
d7d9c8b5
...
...
@@ -50,14 +50,14 @@ function getCompiledContracts (browser, compiled, callback) {
}
function
selectContract
(
browser
,
contractName
,
callback
)
{
browser
.
clickLaunchIcon
(
'settings'
).
clickLaunchIcon
(
'run
transactions
'
)
browser
.
clickLaunchIcon
(
'settings'
).
clickLaunchIcon
(
'run'
)
.
setValue
(
'#runTabView select[class^="contractNames"]'
,
contractName
).
perform
(()
=>
{
callback
()
})
}
function
createContract
(
browser
,
inputParams
,
callback
)
{
browser
.
clickLaunchIcon
(
'settings'
).
clickLaunchIcon
(
'run
transactions
'
)
browser
.
clickLaunchIcon
(
'settings'
).
clickLaunchIcon
(
'run'
)
.
setValue
(
'div[class^="contractActionsContainerSingle"] input'
,
inputParams
,
function
()
{
browser
.
click
(
'#runTabView button[class^="instanceButton"]'
).
pause
(
500
).
perform
(
function
()
{
callback
()
})
})
...
...
@@ -217,7 +217,7 @@ function setEditorValue (value, callback) {
}
function
addInstance
(
browser
,
address
,
isValidFormat
,
isValidChecksum
,
callback
)
{
browser
.
clickLaunchIcon
(
'run
transactions
'
).
clearValue
(
'.ataddressinput'
).
setValue
(
'.ataddressinput'
,
address
,
function
()
{
browser
.
clickLaunchIcon
(
'run'
).
clearValue
(
'.ataddressinput'
).
setValue
(
'.ataddressinput'
,
address
,
function
()
{
browser
.
click
(
'div[class^="atAddress"]'
)
.
execute
(
function
()
{
var
ret
=
document
.
querySelector
(
'div[class^="modalBody"] div'
).
innerHTML
...
...
@@ -265,7 +265,7 @@ function modalFooterOKClick () {
}
function
addFile
(
browser
,
name
,
content
,
done
)
{
browser
.
clickLaunchIcon
(
'run
transactions'
).
clickLaunchIcon
(
'file e
xplorers'
).
click
(
'.newFile'
)
browser
.
clickLaunchIcon
(
'run
'
).
clickLaunchIcon
(
'fileE
xplorers'
).
click
(
'.newFile'
)
.
perform
((
client
,
done
)
=>
{
browser
.
execute
(
function
(
fileName
)
{
if
(
fileName
!==
'Untitled.sol'
)
{
...
...
@@ -372,7 +372,7 @@ function useFilter (browser, filter, test, done) {
}
function
switchFile
(
browser
,
name
,
done
)
{
browser
.
clickLaunchIcon
(
'settings'
).
clickLaunchIcon
(
'file
e
xplorers'
)
browser
.
clickLaunchIcon
(
'settings'
).
clickLaunchIcon
(
'file
E
xplorers'
)
.
click
(
'li[key="'
+
name
+
'"]'
)
.
pause
(
2000
)
.
perform
(()
=>
{
...
...
test-browser/helpers/init.js
View file @
d7d9c8b5
...
...
@@ -22,10 +22,10 @@ function initModules (browser, callback) {
document
.
querySelector
(
'div[title="pluginManager"]'
).
scrollTop
=
document
.
querySelector
(
'div[title="pluginManager"]'
).
scrollHeight
},
[],
function
()
{
browser
.
click
(
'#pluginManager div[title="solidity"] button'
)
.
click
(
'#pluginManager div[title="run
transactions
"] button'
)
.
click
(
'#pluginManager div[title="solidity
static a
nalysis"] button'
)
.
click
(
'#pluginManager div[title="run"] button'
)
.
click
(
'#pluginManager div[title="solidity
StaticA
nalysis"] button'
)
.
click
(
'#pluginManager div[title="debugger"] button'
)
.
click
(
'#icon-panel div[title="file
e
xplorers"]'
)
.
click
(
'#icon-panel div[title="file
E
xplorers"]'
)
.
perform
(()
=>
{
callback
()
})
})
}
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