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

Commit

Permalink
Merge pull request #9044 from julienw/859376-fix-panning-test
Browse files Browse the repository at this point in the history
Bug 859376 - [homescreen] fix unreliable test about panning r=crdlc
  • Loading branch information
Cristian Rodriguez committed Apr 9, 2013
2 parents f219c47 + dc6dce5 commit 577789c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/homescreen/test/unit/grid_test.js
Expand Up @@ -23,7 +23,6 @@ mocksHelperForGrid.init();
suite('grid.js >', function() {
var TAP_THRESHOLD = 10;
var SWIPE_THRESHOLD = 0.5;
var PANNING_DELAY = 200;

var wrapperNode, containerNode;
var realMozApps;
Expand Down Expand Up @@ -101,12 +100,12 @@ suite('grid.js >', function() {
containerNode.dispatchEvent(evt);

assert.equal(document.body.dataset.transitioning, 'true');
setTimeout(function() {
mozRequestAnimationFrame(function() {
done(function() {
var currentPage = document.getElementById('landing-page');
assert.include(currentPage.style.MozTransform, 'translateX');
});
}, PANNING_DELAY);
});
});
});
}
Expand Down

0 comments on commit 577789c

Please sign in to comment.