Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
+ [ios] update maraca case
Browse files Browse the repository at this point in the history
  • Loading branch information
kfeagle committed May 25, 2017
1 parent 7a6b69a commit e7446fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/scripts/components/scroll-event.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ describe('list scroll event', function () {

it('#1 Drag list', () => {
return driver
.dragUp(20)
.dragUp(20)
.dragUp(200)
.dragUp(200)
.elementById('status')
.text()
.then((text)=>{
var y = Math.abs(parseInt(text))
assert.equal(y > 20,true)
assert.equal(y > 200,true)
})
})
});
Expand All @@ -70,14 +70,14 @@ describe('scroller scroll event', function () {

it('#1 Drag scroller', () => {
return driver
.dragUp(20)
.dragUp(20)
.dragUp(200)
.dragUp(200)
.elementById('status')
.text()
.then((text)=>{
var y = Math.abs(parseInt(text))
console.log(`y=${y}`)
assert.equal(y > 20,true)
assert.equal(y > 200,true)
})
})
});
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ module.exports = {
.getWindowSize()
.then(size=>{
let middleX = size.width * 0.5
let startY = size.height * 0.7
let startY = size.height * 0.3
return this
.touch('drag', {fromX:middleX, fromY:startY+distance, toX:middleX, toY: startY, duration: 1})
.sleep(1000)
Expand Down

0 comments on commit e7446fe

Please sign in to comment.