Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix 1-indexing for scroll test

  • Loading branch information...
commit 05a571d2bb1406fb931ba973e1067d10a3961df8 1 parent 45958fb
@substack authored
Showing with 13 additions and 6 deletions.
  1. +13 −6 test/scroll.js
View
19 test/scroll.js
@@ -13,8 +13,9 @@ test('scroll', function (t) {
.seq(function () { pos.once('pos', this.ok) })
.seq(function () { setTimeout(this.ok, 50) })
.seq(function () {
- t.equal(pos.x, 13);
- t.equal(pos.y, 0);
+ // abcde*
+ t.equal(pos.x, 14);
+ t.equal(pos.y, 1);
this();
})
.seq(function () {
@@ -23,8 +24,12 @@ test('scroll', function (t) {
})
.seq(function () { setTimeout(this.ok, 50) })
.seq(function () {
- t.equal(pos.x, 13);
- t.equal(pos.y, 3);
+ // abcde
+ //
+ //
+ // *
+ t.equal(pos.x, 14);
+ t.equal(pos.y, 4);
this();
})
.seq(function () {
@@ -33,8 +38,10 @@ test('scroll', function (t) {
})
.seq(function () { setTimeout(this.ok, 50) })
.seq(function () {
- t.equal(pos.x, 10);
- t.equal(pos.y, 1);
+ // abcde
+ // *
+ t.equal(pos.x, 11);
+ t.equal(pos.y, 2);
charm.end();
t.end();
})
Please sign in to comment.
Something went wrong with that request. Please try again.