Merge pull request #3110 from Polymer/flaky-raf-workaround

Patch rAF to setTimeout to reduce flakiness on CI.
This commit is contained in:
Steve Orvell 2015-11-30 14:26:00 -08:00
commit 203e862976

View File

@ -3648,6 +3648,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
suite('chunked rendering', function() {
// Patch requestAnimationFrame to setTimeout to reduce IE test 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) {