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
f05d3bc0
Commit
f05d3bc0
authored
Sep 26, 2017
by
yann300
Committed by
GitHub
Sep 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #579 from ethereum/fixTestWithNewcompiler
Fix test with newcompiler && fix standard
parents
dc4d27fa
02760d8e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
51 deletions
+51
-51
package.json
package.json
+1
-1
basicStyles.js
src/ui/styles/basicStyles.js
+15
-15
style-guide.js
src/ui/styles/style-guide.js
+27
-27
int.js
test/solidity/localsTests/int.js
+7
-7
structArray.js
test/solidity/localsTests/structArray.js
+1
-1
No files found.
package.json
View file @
f05d3bc0
...
...
@@ -58,7 +58,7 @@
"start_dev"
:
"npm-run-all -lpr serve watch onchange"
,
"start_eth"
:
"npm run warning_message; eth -j --rpccorsdomain '*'"
,
"start_geth"
:
"npm run warning_message; geth --rpc --rpcapi 'web3,eth,debug' --rpcport 8545 --rpccorsdomain '*'"
,
"test"
:
"standard
;
tape ./test/tests.js"
,
"test"
:
"standard
&&
tape ./test/tests.js"
,
"test-browser"
:
"npm-run-all -lpr selenium serve waittest"
,
"waittest"
:
"sleep 5 && npm run nightwatch_local"
,
"warning_message"
:
"echo 'DO NOT DO THIS IF eth/geth STORES PRIVATE KEYS!! External system might be able to access your node through the RPC server.
\n\n
';"
,
...
...
src/ui/styles/basicStyles.js
View file @
f05d3bc0
...
...
@@ -65,20 +65,20 @@ module.exports = {
'margin-bottom'
:
'10px'
},
button
:
{
'border-color'
:
'transparent'
,
'border-radius'
:
'3px'
,
'border'
:
'.3px solid ${colors.veryLightGrey}'
,
'cursor'
:
'pointer'
,
'min-height'
:
'25px'
,
'max-height'
:
'25px'
,
'padding'
:
'3px'
,
'min-width'
:
'100px'
,
'font-size'
:
'12px'
,
'overflow'
:
'hidden'
,
'word-break'
:
'normal'
,
'background-color'
:
'hsla(0, 0%, 40%, .2)'
,
'color'
:
'hsla(0, 0%, 40%, 1)'
,
'margin'
:
'3px'
,
'text-decoration'
:
'none'
'border-color'
:
'transparent'
,
'border-radius'
:
'3px'
,
'border'
:
'.3px solid ${colors.veryLightGrey}'
,
'cursor'
:
'pointer'
,
'min-height'
:
'25px'
,
'max-height'
:
'25px'
,
'padding'
:
'3px'
,
'min-width'
:
'100px'
,
'font-size'
:
'12px'
,
'overflow'
:
'hidden'
,
'word-break'
:
'normal'
,
'background-color'
:
'hsla(0, 0%, 40%, .2)'
,
'color'
:
'hsla(0, 0%, 40%, 1)'
,
'margin'
:
'3px'
,
'text-decoration'
:
'none'
}
}
src/ui/styles/style-guide.js
View file @
f05d3bc0
var
csjs
=
require
(
'csjs-inject'
)
//
var csjs = require('csjs-inject')
module
.
exports
=
styleGuide
...
...
@@ -40,32 +40,32 @@ function styleGuide () {
FONTS
-------------------------------------------------------------------------- */
var
texts
=
{
'title-XL'
:
`
font-size : 2em;
font-weight : 700;
letter-spacing : .05em;
`
,
'title-L'
:
`
font-size : 1em;
font-weight : 600;
`
,
'title-M'
:
`
font-size : 1em;
font-weight : 400;
`
,
'title-S'
:
`
font-size : .8em;
font-weight : 300;
`
,
'text'
:
`
font-size : .8em;
`
}
var
texts
=
{
'title-XL'
:
`
font-size : 2em;
font-weight : 700;
letter-spacing : .05em;
`
,
'title-L'
:
`
font-size : 1em;
font-weight : 600;
`
,
'title-M'
:
`
font-size : 1em;
font-weight : 400;
`
,
'title-S'
:
`
font-size : .8em;
font-weight : 300;
`
,
'text'
:
`
font-size : .8em;
`
}
/* --------------------------------------------------------------------------
TEXT-BOXES
...
...
test/solidity/localsTests/int.js
View file @
f05d3bc0
...
...
@@ -32,12 +32,12 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu
callTree
.
event
.
register
(
'callTreeReady'
,
(
scopes
,
scopeStarts
)
=>
{
try
{
st
.
equals
(
scopeStarts
[
0
],
''
)
st
.
equals
(
scopeStarts
[
1
2
],
'1'
)
st
.
equals
(
scopeStarts
[
10
4
],
'2'
)
st
.
equals
(
scopeStarts
[
11
9
],
'2.1'
)
st
.
equals
(
scopeStarts
[
1
42
],
'3'
)
st
.
equals
(
scopeStarts
[
1
61
],
'4'
)
st
.
equals
(
scopeStarts
[
17
6
],
'4.1'
)
st
.
equals
(
scopeStarts
[
1
1
],
'1'
)
st
.
equals
(
scopeStarts
[
10
3
],
'2'
)
st
.
equals
(
scopeStarts
[
11
8
],
'2.1'
)
st
.
equals
(
scopeStarts
[
1
39
],
'3'
)
st
.
equals
(
scopeStarts
[
1
57
],
'4'
)
st
.
equals
(
scopeStarts
[
17
2
],
'4.1'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui8'
].
type
.
typeName
,
'uint8'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui16'
].
type
.
typeName
,
'uint16'
)
st
.
equals
(
scopes
[
''
].
locals
[
'ui32'
].
type
.
typeName
,
'uint32'
)
...
...
@@ -81,7 +81,7 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu
st
.
equals
(
locals
[
'ishrink'
].
value
,
'2'
)
})
helper
.
decodeLocals
(
st
,
17
5
,
traceManager
,
callTree
,
function
(
locals
)
{
helper
.
decodeLocals
(
st
,
17
1
,
traceManager
,
callTree
,
function
(
locals
)
{
try
{
st
.
equals
(
locals
[
'ui8'
].
value
,
'123'
)
st
.
equals
(
Object
.
keys
(
locals
).
length
,
1
)
...
...
test/solidity/localsTests/structArray.js
View file @
f05d3bc0
...
...
@@ -30,7 +30,7 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu
st
.
fail
(
error
)
})
callTree
.
event
.
register
(
'callTreeReady'
,
(
scopes
,
scopeStarts
)
=>
{
helper
.
decodeLocals
(
st
,
20
94
,
traceManager
,
callTree
,
function
(
locals
)
{
helper
.
decodeLocals
(
st
,
20
89
,
traceManager
,
callTree
,
function
(
locals
)
{
try
{
st
.
equals
(
locals
[
'bytesSimple'
].
length
,
'0x14'
)
st
.
equals
(
locals
[
'bytesSimple'
].
value
,
'0x746573745f7375706572'
)
...
...
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