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
1ed4c7d3
Commit
1ed4c7d3
authored
Mar 26, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activate test
parent
ef504cf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
config.yml
.circleci/config.yml
+10
-0
tests.js
remix-debug/test/tests.js
+12
-5
No files found.
.circleci/config.yml
View file @
1ed4c7d3
...
@@ -30,6 +30,15 @@ jobs:
...
@@ -30,6 +30,15 @@ jobs:
steps
:
steps
:
-
checkout
-
checkout
-
run
:
cd remix-solidity && npm install && npm test
-
run
:
cd remix-solidity && npm install && npm test
remix-debug
:
docker
:
-
image
:
circleci/node:7.10
environment
:
working_directory
:
~/repo
steps
:
-
checkout
-
run
:
cd remix-debug && npm install && npm test
workflows
:
workflows
:
version
:
2
version
:
2
...
@@ -38,4 +47,5 @@ workflows:
...
@@ -38,4 +47,5 @@ workflows:
-
remix-lib
-
remix-lib
-
remix-core
-
remix-core
-
remix-solidity
-
remix-solidity
-
remix-debug
remix-debug/test/tests.js
View file @
1ed4c7d3
...
@@ -8,6 +8,7 @@ var Debugger = require('../src/Ethdebugger')
...
@@ -8,6 +8,7 @@ var Debugger = require('../src/Ethdebugger')
var
compiler
=
require
(
'solc'
)
var
compiler
=
require
(
'solc'
)
tape
(
'debug contract'
,
function
(
t
)
{
tape
(
'debug contract'
,
function
(
t
)
{
t
.
plan
(
12
)
var
privateKey
=
new
Buffer
(
'dae9801649ba2d95a21e688b56f77905e5667c44ce868ec83f82e838712a2c7a'
,
'hex'
)
var
privateKey
=
new
Buffer
(
'dae9801649ba2d95a21e688b56f77905e5667c44ce868ec83f82e838712a2c7a'
,
'hex'
)
var
vm
=
vmCall
.
initVM
(
t
,
privateKey
)
var
vm
=
vmCall
.
initVM
(
t
,
privateKey
)
var
output
=
compiler
.
compileStandardWrapper
(
compilerInput
(
ballot
))
var
output
=
compiler
.
compileStandardWrapper
(
compilerInput
(
ballot
))
...
@@ -95,16 +96,22 @@ function testDebugging (t, debugManager) {
...
@@ -95,16 +96,22 @@ function testDebugging (t, debugManager) {
var
sourceMappingDecoder
=
new
remixLib
.
SourceMappingDecoder
()
var
sourceMappingDecoder
=
new
remixLib
.
SourceMappingDecoder
()
var
breakPointManager
=
new
remixCore
.
code
.
BreakpointManager
(
debugManager
,
(
rawLocation
)
=>
{
var
breakPointManager
=
new
remixCore
.
code
.
BreakpointManager
(
debugManager
,
(
rawLocation
)
=>
{
return
sourceMappingDecoder
.
convertOffsetToLineColumn
(
rawLocation
,
ballot
)
return
sourceMappingDecoder
.
convertOffsetToLineColumn
(
rawLocation
,
sourceMappingDecoder
.
getLinebreakPositions
(
ballot
)
)
})
})
breakPointManager
.
add
({
fileName
:
'test.sol'
,
row
:
2
4
})
breakPointManager
.
add
({
fileName
:
'test.sol'
,
row
:
2
3
})
breakPointManager
.
event
.
register
(
'breakpointHit'
,
function
(
sourceLocation
,
step
)
{
breakPointManager
.
event
.
register
(
'breakpointHit'
,
function
(
sourceLocation
,
step
)
{
t
.
equal
(
sourceLocation
,
''
)
console
.
log
(
'breakpointHit'
)
t
.
equal
(
step
,
67
)
t
.
equal
(
JSON
.
stringify
(
sourceLocation
),
JSON
.
stringify
({
start
:
591
,
length
:
1
,
file
:
0
,
jump
:
'-'
}))
t
.
equal
(
step
,
73
)
})
})
breakPointManager
.
jumpNextBreakpoint
(
true
)
breakPointManager
.
event
.
register
(
'noBreakpointHit'
,
function
()
{
t
.
end
(
'noBreakpointHit'
)
console
.
log
(
'noBreakpointHit'
)
})
breakPointManager
.
jumpNextBreakpoint
(
0
,
true
)
}
}
var
ballot
=
`pragma solidity ^0.4.0;
var
ballot
=
`pragma solidity ^0.4.0;
...
...
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