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
1b4a7cb3
Commit
1b4a7cb3
authored
Nov 11, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add e2e tests
parent
cc1707e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
debugger.test.ts
apps/remix-ide-e2e/src/tests/debugger.test.ts
+17
-0
No files found.
apps/remix-ide-e2e/src/tests/debugger.test.ts
View file @
1b4a7cb3
...
@@ -178,6 +178,14 @@ module.exports = {
...
@@ -178,6 +178,14 @@ module.exports = {
.
getEditorValue
((
content
)
=>
{
.
getEditorValue
((
content
)
=>
{
browser
.
assert
.
ok
(
content
.
indexOf
(
'if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }'
)
!=
-
1
,
'current displayed content is not a generated source'
)
browser
.
assert
.
ok
(
content
.
indexOf
(
'if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }'
)
!=
-
1
,
'current displayed content is not a generated source'
)
})
})
},
'Should call the debugger api: getTrace'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
addFile
(
'test_jsCompileWithOptimization.js'
,
{
content
:
jsDebug
})
.
executeScript
(
'remix.exeCurrent()'
)
.
pause
(
3000
)
.
journalChildIncludes
(
`{ "gas": "0x2dc6c0", "return": "0x", "structLogs":`
)
.
end
()
.
end
()
},
},
...
@@ -335,3 +343,12 @@ const localVariable_step717_ABIEncoder = {
...
@@ -335,3 +343,12 @@ const localVariable_step717_ABIEncoder = {
"type"
:
"bytes"
"type"
:
"bytes"
}
}
}
}
const
jsDebug
=
`(async () => {
try {
const result = await remix.call('debugger', 'getTrace', '0xb175c3c9a9cd6bee3b6cc8be3369a945ac9611516005f8cba27a43486ff2bc50')
console.log('result ', result)
} catch (e) {
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