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
1e8559af
Commit
1e8559af
authored
Feb 13, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
311f6e77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
init.js
test-browser/init.js
+7
-0
vmdebugger.js
test-browser/vmdebugger.js
+3
-3
No files found.
test-browser/init.js
View file @
1e8559af
...
@@ -11,6 +11,13 @@ module.exports = function (browser, callback) {
...
@@ -11,6 +11,13 @@ module.exports = function (browser, callback) {
}
}
function
extendBrowser
(
browser
)
{
function
extendBrowser
(
browser
)
{
browser
.
multipleClick
=
function
(
id
,
time
)
{
for
(
var
k
=
0
;
k
<
time
;
k
++
)
{
browser
.
click
(
id
)
}
return
browser
}
browser
.
assertCurrentSelectedItem
=
function
(
expected
)
{
browser
.
assertCurrentSelectedItem
=
function
(
expected
)
{
browser
.
execute
(
function
(
id
)
{
browser
.
execute
(
function
(
id
)
{
var
node
=
document
.
querySelector
(
'#asmcodes div div[selected="selected"] span'
)
var
node
=
document
.
querySelector
(
'#asmcodes div div[selected="selected"] span'
)
...
...
test-browser/vmdebugger.js
View file @
1e8559af
...
@@ -62,7 +62,7 @@ function panels (browser) {
...
@@ -62,7 +62,7 @@ function panels (browser) {
.
clearValue
(
'#txinput'
)
.
clearValue
(
'#txinput'
)
.
setValue
(
'#txinput'
,
'0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51'
)
.
setValue
(
'#txinput'
,
'0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51'
)
.
click
(
'#load'
)
.
click
(
'#load'
)
.
click
(
'#nextcall'
)
.
multipleClick
(
'#intoforward'
,
63
)
.
assertStack
([
'0:0x'
,
'1:0x60'
,
'2:0x65'
,
'3:0x38'
,
'4:0x55'
,
'5:0x60fe47b1'
])
.
assertStack
([
'0:0x'
,
'1:0x60'
,
'2:0x65'
,
'3:0x38'
,
'4:0x55'
,
'5:0x60fe47b1'
])
.
assertStorageChanges
([
'0x00:0x38'
])
.
assertStorageChanges
([
'0x00:0x38'
])
.
assertCallData
([
'0:0x60fe47b10000000000000000000000000000000000000000000000000000000000000038'
])
.
assertCallData
([
'0:0x60fe47b10000000000000000000000000000000000000000000000000000000000000038'
])
...
@@ -121,7 +121,7 @@ function stepping (browser) {
...
@@ -121,7 +121,7 @@ function stepping (browser) {
.
click
(
'#intoback'
)
.
click
(
'#intoback'
)
.
click
(
'#intoback'
)
.
click
(
'#intoback'
)
.
assertCurrentSelectedItem
(
'002 PUSH1 40'
)
.
assertCurrentSelectedItem
(
'002 PUSH1 40'
)
.
click
(
'#nextcall'
)
.
multipleClick
(
'#intoforward'
,
62
)
.
assertCurrentSelectedItem
(
'181 CREATE'
)
.
assertCurrentSelectedItem
(
'181 CREATE'
)
.
click
(
'#intoforward'
)
.
click
(
'#intoforward'
)
.
click
(
'#intoforward'
)
.
click
(
'#intoforward'
)
...
@@ -170,7 +170,7 @@ function stepdetail (browser) {
...
@@ -170,7 +170,7 @@ function stepdetail (browser) {
})
})
*/
*/
.
assertStepDetail
(
'6'
,
'6'
,
''
,
'3'
,
'84476'
,
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
)
.
assertStepDetail
(
'6'
,
'6'
,
''
,
'3'
,
'84476'
,
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
)
.
click
(
'#nextcall'
)
.
multipleClick
(
'#intoforward'
,
57
)
.
assertStepDetail
(
'63'
,
'63'
,
''
,
'32000'
,
'79283'
,
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
)
.
assertStepDetail
(
'63'
,
'63'
,
''
,
'32000'
,
'79283'
,
'0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'
)
.
click
(
'#overforward'
)
.
click
(
'#overforward'
)
.
click
(
'#intoback'
)
.
click
(
'#intoback'
)
...
...
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