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
3b5ad90e
Commit
3b5ad90e
authored
Aug 21, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
355a6d1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
vmdebugger.js
test-browser-debugger/test/vmdebugger.js
+3
-23
ballot.js
test-browser/tests/ballot.js
+0
-2
No files found.
test-browser-debugger/test/vmdebugger.js
View file @
3b5ad90e
...
@@ -18,8 +18,6 @@ module.exports = {
...
@@ -18,8 +18,6 @@ module.exports = {
'vmdebugger'
:
function
(
browser
)
{
'vmdebugger'
:
function
(
browser
)
{
loadTraceNotFound
(
browser
)
loadTraceNotFound
(
browser
)
.
click
(
'#unload'
)
.
click
(
'#unload'
)
loadTrace
(
browser
)
.
click
(
'#unload'
)
panels
(
browser
)
panels
(
browser
)
.
click
(
'#unload'
)
.
click
(
'#unload'
)
slider
(
browser
)
slider
(
browser
)
...
@@ -40,31 +38,13 @@ function loadTraceNotFound (browser) {
...
@@ -40,31 +38,13 @@ function loadTraceNotFound (browser) {
.
click
(
'#load'
)
.
click
(
'#load'
)
.
click
(
'#txinfo .title'
)
.
click
(
'#txinfo .title'
)
.
execute
(
function
()
{
.
execute
(
function
()
{
return
document
.
querySelector
(
'#
txinfo .dropdownpanel .dropdownrawcontent
'
).
innerHTML
return
document
.
querySelector
(
'#
debugger #error
'
).
innerHTML
},
[],
function
(
result
)
{
},
[],
function
(
result
)
{
console
.
log
(
result
.
value
)
console
.
log
(
result
.
value
)
if
(
result
.
value
.
indexOf
(
'not found'
)
===
-
1
)
{
if
(
result
.
value
.
indexOf
(
'unable to retrieve tx 0x20ef65b8b186ca942zcccd634f37074dde49b541c27994fc7596740ef44cfd51'
)
===
-
1
)
{
browser
.
assert
.
fail
(
' txinput panel does not contain <not found> '
,
'info about error'
,
''
)
browser
.
assert
.
fail
(
' "unable to retrieve tx ..." error message should have been displayed '
,
'info about error'
,
''
)
}
})
return
browser
}
function
loadTrace
(
browser
)
{
browser
.
clearValue
(
'#txinput'
)
.
setValue
(
'#txinput'
,
'0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51'
)
.
click
(
'#load'
)
.
click
(
'#txinfo .title'
)
.
execute
(
function
()
{
return
document
.
querySelector
(
'#txinfo .dropdownpanel .dropdownrawcontent'
).
innerHTML
},
[],
function
(
result
)
{
if
(
result
.
value
.
indexOf
(
'0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51'
)
===
-
1
)
{
browser
.
assert
.
fail
(
' txinput panel does not contain 0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51 '
,
'info about error'
,
''
)
}
}
})
})
.
click
(
'#unload'
)
.
waitForElementNotVisible
(
'#vmdebugger'
,
1000
)
return
browser
return
browser
}
}
...
...
test-browser/tests/ballot.js
View file @
3b5ad90e
...
@@ -45,8 +45,6 @@ function runTests (browser, testData) {
...
@@ -45,8 +45,6 @@ function runTests (browser, testData) {
.
click
(
'span#tx0x0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e div[class^="debug"]'
)
.
click
(
'span#tx0x0571a2439ea58bd349dd130afb8aff62a33af14c06de0dbc3928519bdf13ce2e div[class^="debug"]'
)
.
pause
(
1000
)
.
pause
(
1000
)
.
click
(
'#jumppreviousbreakpoint'
)
.
click
(
'#jumppreviousbreakpoint'
)
.
click
(
'#stepdetail .title .fa'
)
.
click
(
'#asmcodes .title .fa'
)
.
pause
(
500
)
.
pause
(
500
)
.
perform
(
function
(
client
,
done
)
{
.
perform
(
function
(
client
,
done
)
{
console
.
log
(
'goToVMtraceStep'
)
console
.
log
(
'goToVMtraceStep'
)
...
...
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