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
510cccff
Commit
510cccff
authored
Feb 23, 2021
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger tests fixed
parent
89ac4fe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
debugger.test.ts
apps/remix-ide-e2e/src/tests/debugger.test.ts
+5
-6
No files found.
apps/remix-ide-e2e/src/tests/debugger.test.ts
View file @
510cccff
...
@@ -167,7 +167,6 @@ module.exports = {
...
@@ -167,7 +167,6 @@ module.exports = {
'Should debug using generated sources'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should debug using generated sources'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
browser
.
clickLaunchIcon
(
'solidity'
)
.
clickLaunchIcon
(
'solidity'
)
// .setSolidityCompilerVersion('soljson-v0.7.2+commit.51b20bc0.js')
.
pause
(
2000
)
.
pause
(
2000
)
.
testContracts
(
'withGeneratedSources.sol'
,
sources
[
4
][
'browser/withGeneratedSources.sol'
],
[
'A'
])
.
testContracts
(
'withGeneratedSources.sol'
,
sources
[
4
][
'browser/withGeneratedSources.sol'
],
[
'A'
])
.
clickLaunchIcon
(
'udapp'
)
.
clickLaunchIcon
(
'udapp'
)
...
@@ -190,8 +189,8 @@ module.exports = {
...
@@ -190,8 +189,8 @@ module.exports = {
browser
browser
.
addFile
(
'test_jsGetTrace.js'
,
{
content
:
jsGetTrace
})
.
addFile
(
'test_jsGetTrace.js'
,
{
content
:
jsGetTrace
})
.
executeScript
(
'remix.exeCurrent()'
)
.
executeScript
(
'remix.exeCurrent()'
)
.
pause
(
3
000
)
.
pause
(
5
000
)
.
journalChildIncludes
(
'
{ "gas": "0x2dc6c0", "return": "0x
", "structLogs":'
)
.
journalChildIncludes
(
'
result { "gas": "0x5863", "return": "0x0000000000000000000000000000000000000000000000000000000000000000
", "structLogs":'
)
},
},
'Should call the debugger api: debug'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should call the debugger api: debug'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -209,7 +208,7 @@ module.exports = {
...
@@ -209,7 +208,7 @@ module.exports = {
=> There is something going wrong with the nightwatch API here.
=> There is something going wrong with the nightwatch API here.
As we are only testing if debugger is active, this is ok to keep that for now.
As we are only testing if debugger is active, this is ok to keep that for now.
*/
*/
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n
9
'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n
154
'
)
.
end
()
.
end
()
},
},
...
@@ -372,7 +371,7 @@ const localVariable_step717_ABIEncoder = { // eslint-disable-line
...
@@ -372,7 +371,7 @@ const localVariable_step717_ABIEncoder = { // eslint-disable-line
const
jsGetTrace
=
`(async () => {
const
jsGetTrace
=
`(async () => {
try {
try {
const result = await remix.call('debugger', 'getTrace', '0x
84a147f7cb39628f7aa586c61ef6a899bcab71ed504b0229d5dd050dda5bd2ca
')
const result = await remix.call('debugger', 'getTrace', '0x
4c490499df52a3b5f238535a21c28ad35d261e2d53b80343ce78f59f5a63ec9e
')
console.log('result ', result)
console.log('result ', result)
} catch (e) {
} catch (e) {
console.log(e.message)
console.log(e.message)
...
@@ -381,7 +380,7 @@ const jsGetTrace = `(async () => {
...
@@ -381,7 +380,7 @@ const jsGetTrace = `(async () => {
const
jsDebug
=
`(async () => {
const
jsDebug
=
`(async () => {
try {
try {
const result = await remix.call('debugger', 'debug', '0x
b175c3c9a9cd6bee3b6cc8be3369a945ac9611516005f8cba27a43486ff2bc50
')
const result = await remix.call('debugger', 'debug', '0x
4c490499df52a3b5f238535a21c28ad35d261e2d53b80343ce78f59f5a63ec9e
')
console.log('result ', result)
console.log('result ', result)
} catch (e) {
} catch (e) {
console.log(e.message)
console.log(e.message)
...
...
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