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
ce53867d
Commit
ce53867d
authored
Dec 13, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
d787fcde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
testRecorder.js
test-browser/tests/units/testRecorder.js
+14
-5
No files found.
test-browser/tests/units/testRecorder.js
View file @
ce53867d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
var
contractHelper
=
require
(
'../../helpers/contracts'
)
var
contractHelper
=
require
(
'../../helpers/contracts'
)
module
.
exports
=
{
module
.
exports
=
{
'@disabled'
:
true
,
// run by compiling.j
'@sources'
:
function
()
{
'@sources'
:
function
()
{
return
sources
return
sources
},
},
...
@@ -22,8 +23,16 @@ module.exports = {
...
@@ -22,8 +23,16 @@ module.exports = {
.
click
(
'i[class^="clearinstance"]'
)
.
click
(
'i[class^="clearinstance"]'
)
.
perform
((
client
,
done
)
=>
{
.
perform
((
client
,
done
)
=>
{
contractHelper
.
testContracts
(
browser
,
'testRecorder.sol'
,
sources
[
0
][
'browser/testRecorder.sol'
],
[
'testRecorder'
],
function
()
{
contractHelper
.
testContracts
(
browser
,
'testRecorder.sol'
,
sources
[
0
][
'browser/testRecorder.sol'
],
[
'testRecorder'
],
function
()
{
contractHelper
.
createContract
(
browser
,
'12'
,
function
()
{
done
()
browser
.
clickFunction
(
'set - transact (not payable)'
,
{
types
:
'uint256 _p'
,
values
:
'34'
})
})
})
.
perform
((
client
,
done
)
=>
{
contractHelper
.
createContract
(
browser
,
'12'
,
function
()
{
done
()
})
})
.
perform
((
client
,
done
)
=>
{
browser
.
clickFunction
(
'set - transact (not payable)'
,
{
types
:
'uint256 _p'
,
values
:
'34'
})
.
click
(
'i.savetransaction'
).
modalFooterOKClick
().
getEditorValue
(
function
(
result
)
{
.
click
(
'i.savetransaction'
).
modalFooterOKClick
().
getEditorValue
(
function
(
result
)
{
var
parsed
=
JSON
.
parse
(
result
)
var
parsed
=
JSON
.
parse
(
result
)
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
0
].
record
.
parameters
),
JSON
.
stringify
(
scenario
.
transactions
[
0
].
record
.
parameters
))
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
0
].
record
.
parameters
),
JSON
.
stringify
(
scenario
.
transactions
[
0
].
record
.
parameters
))
...
@@ -36,10 +45,10 @@ module.exports = {
...
@@ -36,10 +45,10 @@ module.exports = {
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
1
].
record
.
name
),
JSON
.
stringify
(
scenario
.
transactions
[
1
].
record
.
name
))
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
1
].
record
.
name
),
JSON
.
stringify
(
scenario
.
transactions
[
1
].
record
.
name
))
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
1
].
record
.
type
),
JSON
.
stringify
(
scenario
.
transactions
[
1
].
record
.
type
))
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
1
].
record
.
type
),
JSON
.
stringify
(
scenario
.
transactions
[
1
].
record
.
type
))
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
1
].
record
.
from
),
JSON
.
stringify
(
scenario
.
transactions
[
1
].
record
.
from
))
browser
.
assert
.
equal
(
JSON
.
stringify
(
parsed
.
transactions
[
1
].
record
.
from
),
JSON
.
stringify
(
scenario
.
transactions
[
1
].
record
.
from
))
callback
()
done
()
})
})
})
}).
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