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
d3f75c88
Commit
d3f75c88
authored
Dec 09, 2019
by
app
Committed by
Liana Husikyan
Dec 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm tx hashes updated
parent
c55e5a9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
ballot.js
test-browser/tests/ballot.js
+5
-5
transactionExecution.js
test-browser/tests/transactionExecution.js
+14
-14
No files found.
test-browser/tests/ballot.js
View file @
d3f75c88
...
@@ -24,14 +24,14 @@ module.exports = {
...
@@ -24,14 +24,14 @@ module.exports = {
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
testFunction
(
'delegate - transact (not payable)'
,
'0x
0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e
'
,
.
testFunction
(
'delegate - transact (not payable)'
,
'0x
41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3
'
,
`[vm]\nfrom:0xca3...a733c\nto:Ballot.delegate(address) 0x692...77b3a\nvalue:0 wei\ndata:0x5c1...4d2db\nlogs:0\nhash:0x
057...3ce2e
`
,
`[vm]\nfrom:0xca3...a733c\nto:Ballot.delegate(address) 0x692...77b3a\nvalue:0 wei\ndata:0x5c1...4d2db\nlogs:0\nhash:0x
41f...c31b3
`
,
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
},
null
,
null
)
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
},
null
,
null
)
},
},
'Debug Ballot / delegate'
:
function
(
browser
)
{
'Debug Ballot / delegate'
:
function
(
browser
)
{
browser
.
pause
(
500
)
browser
.
pause
(
500
)
.
click
(
'span#tx0x
0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e
button[class^="debug"]'
)
.
click
(
'span#tx0x
41fab8ea5b1d9fba5e0a6545ca1a2d62fff518578802c033c2b9a031a01c31b3
button[class^="debug"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
clickLaunchIcon
(
'debugger'
)
.
clickLaunchIcon
(
'debugger'
)
.
click
(
'#jumppreviousbreakpoint'
)
.
click
(
'#jumppreviousbreakpoint'
)
...
@@ -52,8 +52,8 @@ module.exports = {
...
@@ -52,8 +52,8 @@ module.exports = {
.
pause
(
500
)
.
pause
(
500
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
testFunction
(
'delegate - transact (not payable)'
,
'0x
d3cd54e2f76f3993078ecf9e1b54a148def4520afc141a182293b3610bddf10f
'
,
.
testFunction
(
'delegate - transact (not payable)'
,
'0x
ca58080c8099429caeeffe43b8104df919c2c543dceb9edf9242fa55f045c803
'
,
`[vm]\nfrom:0xca3...a733c\nto:Ballot.delegate(address) 0x692...77b3a\nvalue:0 wei\ndata:0x5c1...4d2db\nlogs:0\nhash:0x
d3c...df10f
`
,
`[vm]\nfrom:0xca3...a733c\nto:Ballot.delegate(address) 0x692...77b3a\nvalue:0 wei\ndata:0x5c1...4d2db\nlogs:0\nhash:0x
ca5...5c803
`
,
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
},
null
,
null
)
{
types
:
'address to'
,
values
:
'"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"'
},
null
,
null
)
.
end
()
.
end
()
},
},
...
...
test-browser/tests/transactionExecution.js
View file @
d3f75c88
...
@@ -19,16 +19,16 @@ module.exports = {
...
@@ -19,16 +19,16 @@ module.exports = {
.
click
(
'#runTabView .instance div[class^="title"]'
)
.
click
(
'#runTabView .instance div[class^="title"]'
)
.
click
(
'#runTabView .instance div[class^="title"]'
)
.
click
(
'#runTabView .instance div[class^="title"]'
)
.
testFunction
(
'f - transact (not payable)'
,
.
testFunction
(
'f - transact (not payable)'
,
'0x
a178c603400a184ce5fedbcfab392d9b77822f6ffa7facdec693aded214523bc
'
,
'0x
38bb944fa4709ed9e163d6c670259f97284b4defd916d512a2fcc3f35bb53e03
'
,
`[vm]\nfrom:0xca3...a733c\nto:TestContract.f() 0x692...77b3a\nvalue:0 wei\ndata:0x261...21ff0\nlogs:0\nhash:0x
a17...523bc
`
,
null
,
`[vm]\nfrom:0xca3...a733c\nto:TestContract.f() 0x692...77b3a\nvalue:0 wei\ndata:0x261...21ff0\nlogs:0\nhash:0x
38b...53e03
`
,
null
,
`{
`{
"0": "uint256: 8"
"0": "uint256: 8"
}`
)
}`
)
.
pause
(
500
)
.
pause
(
500
)
.
checkTerminalFilter
(
'0x12332162e2e31397dc1e07ed0a1cf08f728e9b4487c6f9ed79d2f39410c92782'
,
''
)
.
checkTerminalFilter
(
'0x12332162e2e31397dc1e07ed0a1cf08f728e9b4487c6f9ed79d2f39410c92782'
,
''
)
.
testFunction
(
'g - transact (not payable)'
,
.
testFunction
(
'g - transact (not payable)'
,
'0x
b1532162e2e31397dc1e07ed0a1cf08f728e9b4487c6f9ed79d2f39410c92781
'
,
'0x
ab4f794ca0b531f27fc6eace623666b440facbf20e77615a057d728c67b500f0
'
,
`[vm]\nfrom:0xca3...a733c\nto:TestContract.g() 0x692...77b3a\nvalue:0 wei\ndata:0xe21...79b8e\nlogs:0\nhash:0x
b15...92781
`
,
null
,
`{
`[vm]\nfrom:0xca3...a733c\nto:TestContract.g() 0x692...77b3a\nvalue:0 wei\ndata:0xe21...79b8e\nlogs:0\nhash:0x
ab4...500f0
`
,
null
,
`{
"0": "uint256: 345",
"0": "uint256: 345",
"1": "string: comment_comment_",
"1": "string: comment_comment_",
"2": "bool: true",
"2": "bool: true",
...
@@ -44,8 +44,8 @@ module.exports = {
...
@@ -44,8 +44,8 @@ module.exports = {
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
testFunction
(
'retunValues1 - transact (not payable)'
,
.
testFunction
(
'retunValues1 - transact (not payable)'
,
'0x
c3660c7ab6899f196e77d3ab3749169e22c00ae7f1b8fe3af0ce54df49504019
'
,
'0x
09c6716a67f0f8c7a0ca2b3ddf59c25982da856a95aefd640b767f9b9feee39d
'
,
`[vm]\nfrom:0xca3...a733c\nto:testReturnValues.retunValues1() 0x5e7...26e9f\nvalue:0 wei\ndata:0x9ed...59eb7\nlogs:0\nhash:0x
c36...04019
`
,
`[vm]\nfrom:0xca3...a733c\nto:testReturnValues.retunValues1() 0x5e7...26e9f\nvalue:0 wei\ndata:0x9ed...59eb7\nlogs:0\nhash:0x
09c...ee39d
`
,
null
,
null
,
`{
`{
"0": "bool: _b true",
"0": "bool: _b true",
...
@@ -54,8 +54,8 @@ module.exports = {
...
@@ -54,8 +54,8 @@ module.exports = {
"3": "address: _a 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c"
"3": "address: _a 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c"
}`
)
}`
)
.
testFunction
(
'retunValues2 - transact (not payable)'
,
.
testFunction
(
'retunValues2 - transact (not payable)'
,
'0x
c8cc8150fcb0b09cdf51e7357341272118888fe8c4efe32881b56e891377aad9
'
,
'0x
e884953e0695399d60914af3e1ea2dad59fe41f3c0c20665c130fa40dd0fb6bf
'
,
`[vm]\nfrom:0xca3...a733c\nto:testReturnValues.retunValues2() 0x5e7...26e9f\nvalue:0 wei\ndata:0xf57...4036c\nlogs:0\nhash:0x
c8c...7aad9
`
,
null
,
`{
`[vm]\nfrom:0xca3...a733c\nto:testReturnValues.retunValues2() 0x5e7...26e9f\nvalue:0 wei\ndata:0xf57...4036c\nlogs:0\nhash:0x
e88...fb6bf
`
,
null
,
`{
"0": "bytes1: _b 0x12",
"0": "bytes1: _b 0x12",
"1": "bytes2: _b2 0x1223",
"1": "bytes2: _b2 0x1223",
"2": "bytes3: _b3 0x000000",
"2": "bytes3: _b3 0x000000",
...
@@ -67,8 +67,8 @@ module.exports = {
...
@@ -67,8 +67,8 @@ module.exports = {
"8": "bytes22: _b22 0x32523523532532532523532500000000000000000000",
"8": "bytes22: _b22 0x32523523532532532523532500000000000000000000",
"9": "bytes32: _b32 0x0325235325325235325235325235320000000000000000000000000000000000"
"9": "bytes32: _b32 0x0325235325325235325235325235320000000000000000000000000000000000"
}`
).
pause
(
500
).
testFunction
(
'retunValues3 - transact (not payable)'
,
}`
).
pause
(
500
).
testFunction
(
'retunValues3 - transact (not payable)'
,
'0x
94c4b4324bad773dec29af3ffe26a698c32b5caf8a1eedf8889563158639d28a
'
,
'0x
b4108649d5e65a4a0776d6ac98c2c356540a7e99d641705a82352a845d467eb5
'
,
'[vm]
\
nfrom:0xca3...a733c
\
nto:testReturnValues.retunValues3() 0x5e7...26e9f
\
nvalue:0 wei
\
ndata:0x033...e0a7d
\
nlogs:0
\
nhash:0x
94c...9d28a
'
,
null
,
`{
'[vm]
\
nfrom:0xca3...a733c
\
nto:testReturnValues.retunValues3() 0x5e7...26e9f
\
nvalue:0 wei
\
ndata:0x033...e0a7d
\
nlogs:0
\
nhash:0x
b41...67eb5
'
,
null
,
`{
"0": "uint8: _en 2",
"0": "uint8: _en 2",
"1": "int256[5][]: _a1 1,-45,-78,56,60,-1,42,334,-45455,-446,1,10,-5435,45,-7"
"1": "int256[5][]: _a1 1,-45,-78,56,60,-1,42,334,-45455,-446,1,10,-5435,45,-7"
}`
).
click
(
'i[class^="clearinstance"]'
)
}`
).
click
(
'i[class^="clearinstance"]'
)
...
@@ -81,8 +81,8 @@ module.exports = {
...
@@ -81,8 +81,8 @@ module.exports = {
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
testFunction
(
'inputValue1 - transact (not payable)'
,
.
testFunction
(
'inputValue1 - transact (not payable)'
,
'0x
f3265e3d9cd9299958bf81bed3cdfdd537942f85b9e0b95c5468c691d9396505
'
,
'0x
e9678b5486674a0425301a1d7e925c22cfb9f7f7ec6242697d742009f7ef5b97
'
,
`[vm]\nfrom:0xca3...a733c\nto:test.inputValue1(uint256,int256,string) 0x8c1...401f5\nvalue:0 wei\ndata:0xd69...00000\nlogs:0\nhash:0x
f32...96505
`
,
`[vm]\nfrom:0xca3...a733c\nto:test.inputValue1(uint256,int256,string) 0x8c1...401f5\nvalue:0 wei\ndata:0xd69...00000\nlogs:0\nhash:0x
e96...f5b97
`
,
{
types
:
'uint256 _u, int256 _i, string _str'
,
values
:
'"2343242", "-4324324", "string _ string _ string _ string _ string _ string _ string _ string _ string _ string _"'
},
{
types
:
'uint256 _u, int256 _i, string _str'
,
values
:
'"2343242", "-4324324", "string _ string _ string _ string _ string _ string _ string _ string _ string _ string _"'
},
`{
`{
"0": "uint256: _uret 2343242",
"0": "uint256: _uret 2343242",
...
@@ -91,8 +91,8 @@ module.exports = {
...
@@ -91,8 +91,8 @@ module.exports = {
}`
)
}`
)
.
pause
(
500
)
.
pause
(
500
)
.
testFunction
(
'inputValue2 - transact (not payable)'
,
.
testFunction
(
'inputValue2 - transact (not payable)'
,
'0x
d9ec6d8aa73d81755447190f52939ee3084e105b988d445a11e7ac718392ff5a
'
,
'0x
21724b08c3699bda8375803f8dc842194aea370f2aac284e55144b452dca321f
'
,
`[vm]\nfrom:0xca3...a733c\nto:test.inputValue2(uint256[3],bytes8[4]) 0x8c1...401f5\nvalue:0 wei\ndata:0x1b7...00000\nlogs:1\nhash:0x
d9e...2ff5a
`
,
`[vm]\nfrom:0xca3...a733c\nto:test.inputValue2(uint256[3],bytes8[4]) 0x8c1...401f5\nvalue:0 wei\ndata:0x1b7...00000\nlogs:1\nhash:0x
217...a321f
`
,
{
types
:
'uint256[3] _n, bytes8[4] _b8'
,
values
:
'[1,2,3], ["0x1234000000000000", "0x1234000000000000","0x1234000000000000","0x1234000000000000"]'
},
{
types
:
'uint256[3] _n, bytes8[4] _b8'
,
values
:
'[1,2,3], ["0x1234000000000000", "0x1234000000000000","0x1234000000000000","0x1234000000000000"]'
},
`{
`{
"0": "uint256[3]: _nret 1,2,3",
"0": "uint256[3]: _nret 1,2,3",
...
...
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