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
33b7ea06
Commit
33b7ea06
authored
Apr 27, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
9af81198
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
contracts.js
test-browser/helpers/contracts.js
+1
-1
ballot.js
test-browser/tests/ballot.js
+2
-0
compiling.js
test-browser/tests/compiling.js
+3
-0
testRecorder.js
test-browser/tests/units/testRecorder.js
+1
-0
No files found.
test-browser/helpers/contracts.js
View file @
33b7ea06
...
...
@@ -43,7 +43,7 @@ function getCompiledContracts (browser, compiled, callback) {
function
createContract
(
browser
,
inputParams
,
callback
)
{
browser
.
click
(
'.runView'
)
.
setValue
(
'div[class^="contractActionsContainerSingle"] input'
,
inputParams
,
function
()
{
browser
.
click
(
'#runTabView button[class^="instanceButton"]'
).
perform
(
function
()
{
callback
()
})
browser
.
click
(
'#runTabView button[class^="instanceButton"]'
).
p
ause
(
500
).
p
erform
(
function
()
{
callback
()
})
})
}
...
...
test-browser/tests/ballot.js
View file @
33b7ea06
...
...
@@ -36,6 +36,8 @@ function runTests (browser, testData) {
}).
click
(
'.runView'
)
.
setValue
(
'input[placeholder="uint8 _numProposals"]'
,
'1'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
pause
(
500
)
.
click
(
'.instance:nth-of-type(2)'
)
.
testFunction
(
'delegate - transact (not payable)'
,
'0x0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e'
,
`[vm]\nfrom:0xca3...a733c\nto:Ballot.delegate(address) 0x692...77b3a\nvalue:0 wei\ndata:0x5c1...4d2db\nlogs:0\nhash:0x057...3ce2e`
,
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
},
null
,
null
)
...
...
test-browser/tests/compiling.js
View file @
33b7ea06
...
...
@@ -40,6 +40,7 @@ function testSimpleContract (browser, callback) {
browser
.
click
(
'.runView'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
pause
(
500
)
.
click
(
'.instance:nth-of-type(2)'
)
.
click
(
'#runTabView .instance div[class^="title"]'
)
.
click
(
'#runTabView .instance div[class^="title"]'
)
.
testFunction
(
'f - transact (not payable)'
,
...
...
@@ -70,6 +71,7 @@ function testReturnValues (browser, callback) {
browser
.
click
(
'.runView'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
pause
(
500
)
.
click
(
'.instance:nth-of-type(2)'
)
.
testFunction
(
'retunValues1 - transact (not payable)'
,
'0x79dc928d149d2ade02ab610a8ae290636222d034d4adce0bb08a68401e3d1f7f'
,
`[vm]\nfrom:0xca3...a733c\nto:testReturnValues.retunValues1() 0x5e7...26e9f\nvalue:0 wei\ndata:0x9ed...59eb7\nlogs:0\nhash:0x79d...d1f7f`
,
...
...
@@ -108,6 +110,7 @@ function testInputValues (browser, callback) {
browser
.
click
(
'.runView'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
pause
(
500
)
.
click
(
'.instance:nth-of-type(2)'
)
.
testFunction
(
'inputValue1 - transact (not payable)'
,
'0x917a873d27d105213eaf5461e14780387ccceb66fed574f8432d1963917832ae'
,
`[vm]\nfrom:0xca3...a733c\nto:test.inputValue1(uint256,int256,string) 0x8c1...401f5\nvalue:0 wei\ndata:0xd69...00000\nlogs:0\nhash:0x917...832ae`
,
...
...
test-browser/tests/units/testRecorder.js
View file @
33b7ea06
...
...
@@ -31,6 +31,7 @@ module.exports = {
done
()
})
})
.
click
(
'.instance:nth-of-type(2)'
)
.
perform
((
client
,
done
)
=>
{
browser
.
clickFunction
(
'set - transact (not payable)'
,
{
types
:
'uint256 _p'
,
values
:
'34'
})
.
click
(
'i.savetransaction'
).
modalFooterOKClick
().
getEditorValue
(
function
(
result
)
{
...
...
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