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
342a16f7
Commit
342a16f7
authored
Dec 08, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
ee2c3c44
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
vmdebugger.js
test-browser/vmdebugger.js
+1
-0
init.js
test/init.js
+1
-1
insertTestWeb3.js
test/resources/insertTestWeb3.js
+2
-2
testWeb3.js
test/resources/testWeb3.js
+1
-1
No files found.
test-browser/vmdebugger.js
View file @
342a16f7
...
@@ -64,6 +64,7 @@ function panels (browser) {
...
@@ -64,6 +64,7 @@ function panels (browser) {
.
click
(
'#load'
)
.
click
(
'#load'
)
.
click
(
'#nextcall'
)
.
click
(
'#nextcall'
)
.
assertStack
([
'0x'
,
'0x60'
,
'0x65'
,
'0x38'
,
'0x55'
,
'0x60fe47b1'
])
.
assertStack
([
'0x'
,
'0x60'
,
'0x65'
,
'0x38'
,
'0x55'
,
'0x60fe47b1'
])
.
pause
(
5000
)
.
assertStorageChanges
([
'0x000x38'
])
.
assertStorageChanges
([
'0x000x38'
])
.
assertCallData
([
'0x60fe47b10000000000000000000000000000000000000000000000000000000000000038'
])
.
assertCallData
([
'0x60fe47b10000000000000000000000000000000000000000000000000000000000000038'
])
.
assertCallStack
([
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
])
.
assertCallStack
([
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
])
...
...
test/init.js
View file @
342a16f7
...
@@ -2,7 +2,7 @@ var init = {
...
@@ -2,7 +2,7 @@ var init = {
overrideWeb3
:
function
(
web3
,
web3Override
)
{
overrideWeb3
:
function
(
web3
,
web3Override
)
{
web3
.
eth
.
getCode
=
web3Override
.
getCode
web3
.
eth
.
getCode
=
web3Override
.
getCode
web3
.
debug
.
traceTransaction
=
web3Override
.
traceTransaction
web3
.
debug
.
traceTransaction
=
web3Override
.
traceTransaction
web3
.
debug
.
storage
At
=
web3Override
.
stora
geAt
web3
.
debug
.
storage
RangeAt
=
web3Override
.
storageRan
geAt
web3
.
eth
.
getTransaction
=
web3Override
.
getTransaction
web3
.
eth
.
getTransaction
=
web3Override
.
getTransaction
web3
.
eth
.
getTransactionFromBlock
=
web3Override
.
getTransactionFromBlock
web3
.
eth
.
getTransactionFromBlock
=
web3Override
.
getTransactionFromBlock
web3
.
eth
.
getBlockNumber
=
web3Override
.
getBlockNumber
web3
.
eth
.
getBlockNumber
=
web3Override
.
getBlockNumber
...
...
test/resources/insertTestWeb3.js
View file @
342a16f7
...
@@ -28,8 +28,8 @@ function loadTestWeb3 (data) {
...
@@ -28,8 +28,8 @@ function loadTestWeb3 (data) {
callback
(
null
,
data
.
testTraces
[
txHash
])
callback
(
null
,
data
.
testTraces
[
txHash
])
}
}
uiTestweb3
.
debug
.
storage
At
=
function
(
blockNumber
,
txIndex
,
address
,
callback
)
{
uiTestweb3
.
debug
.
storage
RangeAt
=
function
(
blockNumber
,
txIndex
,
address
,
start
,
end
,
size
,
callback
)
{
callback
(
null
,
{})
callback
(
null
,
{
storage
:
{},
complete
:
true
})
}
}
uiTestweb3
.
eth
.
getTransaction
=
function
(
txHash
,
callback
)
{
uiTestweb3
.
eth
.
getTransaction
=
function
(
txHash
,
callback
)
{
...
...
test/resources/testWeb3.js
View file @
342a16f7
...
@@ -19,7 +19,7 @@ web3Override.debug.traceTransaction = function (txHash, options, callback) {
...
@@ -19,7 +19,7 @@ web3Override.debug.traceTransaction = function (txHash, options, callback) {
}
}
web3Override
.
debug
.
storageRangeAt
=
function
(
blockNumber
,
txIndex
,
address
,
start
,
end
,
maxSize
,
callback
)
{
web3Override
.
debug
.
storageRangeAt
=
function
(
blockNumber
,
txIndex
,
address
,
start
,
end
,
maxSize
,
callback
)
{
callback
(
null
,
{})
callback
(
null
,
{
storage
:
{},
complete
:
true
})
}
}
web3Override
.
eth
.
getTransaction
=
function
(
txHash
,
callback
)
{
web3Override
.
eth
.
getTransaction
=
function
(
txHash
,
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