From 35abadc5c98dc905fdd5aced7d24f4afc67f399f Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Mon, 30 Nov 2015 14:13:39 -0800 Subject: [PATCH] Patch rAF to setTimeout to reduce flakiness on CI. --- test/unit/dom-repeat.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unit/dom-repeat.html b/test/unit/dom-repeat.html index bf9fd5a9d5..4743d4551a 100644 --- a/test/unit/dom-repeat.html +++ b/test/unit/dom-repeat.html @@ -3648,6 +3648,16 @@

x-repeat-chunked

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) {