Skip to content

Commit

Permalink
Patch rAF to setTimeout to reduce flakiness on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Nov 30, 2015
1 parent 06898da commit 35abadc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -3648,6 +3648,16 @@ <h4>x-repeat-chunked</h4>

suite('chunked rendering', function() {

// Patch requestAnimationFrame to setTimeout to reduce flakiness on CI
var rAF;
suiteSetup(function() {
rAF = window.requestAnimationFrame;
window.requestAnimationFrame = setTimeout;
});
suiteTeardown(function() {
window.requestAnimationFrame = rAF;
});

test('basic chunked rendering', function(done) {

var checkItemOrder = function(stamped) {
Expand Down

0 comments on commit 35abadc

Please sign in to comment.