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
3a41c86d
Commit
3a41c86d
authored
Sep 11, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests
parent
d5651ae8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
txLogger.js
src/app/execution/txLogger.js
+1
-1
compiling.js
test-browser/tests/compiling.js
+2
-0
No files found.
src/app/execution/txLogger.js
View file @
3a41c86d
...
@@ -319,7 +319,7 @@ function createTable (opts) {
...
@@ -319,7 +319,7 @@ function createTable (opts) {
var
outputDecoded
=
yo
`
var
outputDecoded
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> decoded output </td>
<td class="
${
css
.
td
}
"> decoded output </td>
<td class="
${
css
.
td
}
">
${
opts
[
'decoded output'
]}
</td>
<td class="
${
css
.
td
}
"
id="decodedoutput"
>
${
opts
[
'decoded output'
]}
</td>
</tr class="
${
css
.
tr
}
">`
</tr class="
${
css
.
tr
}
">`
table
.
appendChild
(
outputDecoded
)
table
.
appendChild
(
outputDecoded
)
}
}
...
...
test-browser/tests/compiling.js
View file @
3a41c86d
...
@@ -34,6 +34,8 @@ function runTests (browser) {
...
@@ -34,6 +34,8 @@ function runTests (browser) {
.
click
(
'.instance button[title="f - transact (not payable)"]'
)
.
click
(
'.instance button[title="f - transact (not payable)"]'
)
.
waitForElementPresent
(
'#editor-container div[class^="terminal"] span[id="tx0xa178c603400a184ce5fedbcfab392d9b77822f6ffa7facdec693aded214523bc"]'
)
.
waitForElementPresent
(
'#editor-container div[class^="terminal"] span[id="tx0xa178c603400a184ce5fedbcfab392d9b77822f6ffa7facdec693aded214523bc"]'
)
.
assert
.
containsText
(
'#editor-container div[class^="terminal"] span[id="tx0xa178c603400a184ce5fedbcfab392d9b77822f6ffa7facdec693aded214523bc"]'
,
'[vm] from:0xca3...a733c, to:browser/Untitled.sol:TestContract.f() 0x692...77b3a, value:0 wei, data:0x261...21ff0, 0 logs, hash:0xa17...523bc'
)
.
assert
.
containsText
(
'#editor-container div[class^="terminal"] span[id="tx0xa178c603400a184ce5fedbcfab392d9b77822f6ffa7facdec693aded214523bc"]'
,
'[vm] from:0xca3...a733c, to:browser/Untitled.sol:TestContract.f() 0x692...77b3a, value:0 wei, data:0x261...21ff0, 0 logs, hash:0xa17...523bc'
)
.
click
(
'#editor-container div[class^="terminal"] span[id="tx0xa178c603400a184ce5fedbcfab392d9b77822f6ffa7facdec693aded214523bc"] button[class^="details"]'
)
.
assert
.
containsText
(
'#editor-container div[class^="terminal"] span[id="tx0xa178c603400a184ce5fedbcfab392d9b77822f6ffa7facdec693aded214523bc"] table[class^="txTable"] #decodedoutput'
,
`"uint256": "8"`
)
.
end
()
.
end
()
/*
/*
@TODO: need to check now the return value of the function
@TODO: need to check now the return value of the function
...
...
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