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
a2a8bba1
Commit
a2a8bba1
authored
Jul 02, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added line breaks to tests to match css/bootstrap line breaks change in ui
parent
522fa3e3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
goToVMTraceStep.js
apps/remix-ide/test-browser/commands/goToVMTraceStep.js
+1
-1
verifyContracts.js
apps/remix-ide/test-browser/commands/verifyContracts.js
+1
-1
debugger.test.js
apps/remix-ide/test-browser/tests/debugger.test.js
+9
-9
libraryDeployment.test.js
apps/remix-ide/test-browser/tests/libraryDeployment.test.js
+2
-2
recorder.test.js
apps/remix-ide/test-browser/tests/recorder.test.js
+1
-1
runAndDeploy.js
apps/remix-ide/test-browser/tests/runAndDeploy.js
+1
-1
signingMessage.test.js
apps/remix-ide/test-browser/tests/signingMessage.test.js
+1
-1
No files found.
apps/remix-ide/test-browser/commands/goToVMTraceStep.js
View file @
a2a8bba1
...
...
@@ -17,7 +17,7 @@ function goToVMtraceStep (browser, step, incr, done) {
browser
.
execute
(
function
(
step
)
{
return
document
.
querySelector
(
'#stepdetail'
).
innerHTML
},
[
step
],
function
(
result
)
{
if
(
result
.
value
.
indexOf
(
'vm trace step:
'
)
!==
-
1
&&
result
.
value
.
indexOf
(
step
)
!==
-
1
)
{
if
(
result
.
value
.
indexOf
(
'vm trace step:
\
n'
+
step
)
!==
-
1
)
{
done
()
}
else
if
(
incr
>
1000
)
{
browser
.
assert
.
fail
(
'goToVMtraceStep fails'
,
'info about error'
,
''
)
...
...
apps/remix-ide/test-browser/commands/verifyContracts.js
View file @
a2a8bba1
...
...
@@ -25,7 +25,7 @@ function getCompiledContracts (browser, opts, callback) {
.
pause
(
2000
)
.
click
(
'*[data-id="treeViewDivcompiler"]'
)
.
waitForElementVisible
(
'*[data-id="treeViewLicompiler/version"]'
)
.
assert
.
containsText
(
'*[data-id="treeViewLicompiler/version"]'
,
`version:
${
opts
.
version
}
`
)
.
assert
.
containsText
(
'*[data-id="treeViewLicompiler/version"]'
,
`version:
\n
${
opts
.
version
}
`
)
.
perform
(
done
)
}
else
done
()
})
...
...
apps/remix-ide/test-browser/tests/debugger.test.js
View file @
a2a8bba1
...
...
@@ -43,7 +43,7 @@ module.exports = {
.
setValue
(
'*[data-id="slider"]'
,
50
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'no locals'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
92'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n
92'
)
},
'Should step back and forward transaction'
:
function
(
browser
)
{
...
...
@@ -51,12 +51,12 @@ module.exports = {
.
waitForElementPresent
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
scrollAndClick
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
91'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
91'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n
91'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n
91'
)
.
click
(
'*[data-id="buttonNavigatorIntoForward"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
92'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
92'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n
92'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n
92'
)
},
'Should jump through breakpoints'
:
function
(
browser
)
{
...
...
@@ -66,12 +66,12 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="buttonNavigatorJumpPreviousBreakpoint"]'
)
.
click
(
'*[data-id="buttonNavigatorJumpPreviousBreakpoint"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
0'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
0'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n
0'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n
0'
)
.
click
(
'*[data-id="buttonNavigatorJumpNextBreakpoint"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
184'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
184'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n
184'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n
184'
)
.
end
()
},
...
...
apps/remix-ide/test-browser/tests/libraryDeployment.test.js
View file @
a2a8bba1
...
...
@@ -26,7 +26,7 @@ module.exports = {
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
click
(
'.instance:nth-of-type(2) > div > button'
)
.
perform
((
done
)
=>
{
browser
.
testConstantFunction
(
addressRef
,
'get - call'
,
''
,
'0:
uint256: 45'
).
perform
(()
=>
{
browser
.
testConstantFunction
(
addressRef
,
'get - call'
,
''
,
'0:
\
n
uint256: 45'
).
perform
(()
=>
{
done
()
})
})
...
...
@@ -96,7 +96,7 @@ function checkDeployShouldSucceed (browser, address, callback) {
.
click
(
'.instance:nth-of-type(3) > div > button'
)
.
perform
(()
=>
{
browser
.
testConstantFunction
(
addressRef
,
'get - call'
,
''
,
'0:
uint256: 45'
)
.
testConstantFunction
(
addressRef
,
'get - call'
,
''
,
'0:
\
n
uint256: 45'
)
.
perform
(()
=>
{
callback
()
})
})
}
...
...
apps/remix-ide/test-browser/tests/recorder.test.js
View file @
a2a8bba1
...
...
@@ -30,7 +30,7 @@ module.exports = {
addressRef
=
address
})
.
perform
((
done
)
=>
{
browser
.
verifyCallReturnValue
(
addressRef
,
[
'0:
uint256: 1'
,
'0: uint256: 3456'
,
'0:
address: 0xbBF289D846208c16EDc8474705C748aff07732dB'
])
browser
.
verifyCallReturnValue
(
addressRef
,
[
'0:
uint256: 1'
,
'0:uint256: 3456'
,
'0:
address: 0xbBF289D846208c16EDc8474705C748aff07732dB'
])
.
perform
(()
=>
done
())
})
.
click
(
'*[data-id="deployAndRunClearInstances"]'
)
...
...
apps/remix-ide/test-browser/tests/runAndDeploy.js
View file @
a2a8bba1
...
...
@@ -178,7 +178,7 @@ module.exports = {
.
setValue
(
'*[data-id="debuggerTransactionInput"]'
,
'0x959371506b8f6223d71c709ac2eb2d0158104dca2d76ca949f1662712cf0e6db'
)
// debug tx
.
click
(
'*[data-id="debuggerTransactionStartButton"]'
)
.
waitForElementVisible
(
'*[data-id="treeViewDivto"]'
,
30000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'loaded address:
0x3c943Fb816694d7D1f4C738e3e7823818a88DD6C'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'loaded address:
\
n
0x3c943Fb816694d7D1f4C738e3e7823818a88DD6C'
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'to: 0x6C3CCC7FBA111707D5A1AAF2758E9D4F4AC5E7B1'
)
.
end
()
},
...
...
apps/remix-ide/test-browser/tests/signingMessage.test.js
View file @
a2a8bba1
...
...
@@ -38,7 +38,7 @@ module.exports = {
.
pause
(
5000
)
.
verifyCallReturnValue
(
address
,
[
'0:
address: 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c'
])
[
'0:address: 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c'
])
.
perform
(()
=>
{
done
()
})
...
...
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