Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made caspers comments clearer

  • Loading branch information...
commit bc03a8dee500a60e892497bf723f5b3655afd84a 1 parent 48666eb
@timsuchanek timsuchanek authored
Showing with 20 additions and 4 deletions.
  1. +20 −4 test/drift.js
View
24 test/drift.js
@@ -75,11 +75,27 @@ function testDrift (test, direction) {
return result;
}, function () {
- that.test.assertEquals(that.getScrollLeft(), target.direct[0], 'direct after drift - x');
- that.test.assertEquals(that.getScrollTop(), target.direct[1], 'direct after drift - y');
+ that.test.assertEquals(
+ that.getScrollLeft(),
+ target.direct[0],
+ 'x = ' + target.direct[0] + ', direct after drift'
+ );
+ that.test.assertEquals(
+ that.getScrollTop(),
+ target.direct[1],
+ 'y = ' + target.direct[1] + ', direct after drift'
+ );
casper.wait(1000, function () {
- that.test.assertEquals(that.getScrollLeft(), target.delay[0], '1 sec after drift - x');
- that.test.assertEquals(that.getScrollTop(), target.delay[1], '1 sec after drift - y');
+ that.test.assertEquals(
+ that.getScrollLeft(),
+ target.delay[0],
+ 'x = ' + target.direct[0] + ', 1 sec after drift'
+ );
+ that.test.assertEquals(
+ that.getScrollTop(),
+ target.delay[1],
+ 'y = ' + target.direct[1] + ', 1 sec after drift'
+ );
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.