From 94b6ce5ca09dec53f9b8613ce98c23552ef104ab Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 1 Dec 2013 20:07:42 -0600 Subject: [PATCH] Excuse some underscore `_.debounce` and `_.throttle` tests in sauce. --- test/underscore.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/underscore.html b/test/underscore.html index e492877ed..8ae160616 100644 --- a/test/underscore.html +++ b/test/underscore.html @@ -66,7 +66,11 @@ ], 'bindAll': [ 'throws an error for bindAll with no functions named' - ] + ], + 'throttle repeatedly with results': true, + 'more throttle does not trigger leading call when leading is set to false': true, + 'throttle does not trigger trailing call when trailing is set to false': true, + 'debounce asap': true }, 'Objects': { 'isEqual': [ @@ -97,10 +101,14 @@ } }; - // only excuse in Sauce Labs (buggy Safari) + // only excuse in Sauce Labs (buggy Safari and timers) if (location.port != '9001') { delete QUnit.config.excused.Chaining['select/reject/sortBy']; delete QUnit.config.excused.Chaining['select/reject/sortBy in functional style']; + delete QUnit.config.excused.Functions['throttle repeatedly with results']; + delete QUnit.config.excused.Functions['more throttle does not trigger leading call when leading is set to false']; + delete QUnit.config.excused.Functions['throttle does not trigger trailing call when trailing is set to false']; + delete QUnit.config.excused.Functions['debounce asap']; delete QUnit.config.excused.Objects.isEqual; delete QUnit.config.excused.Utility.times; delete QUnit.config.excused.Utility.uniqueId;