rename limiter to throttle and refactor

- don't inject raf/setTimeout since we can't really mock them w/ a good degree of timing accuracy anyways

fix some unrelated tests
This commit is contained in:
Leo Horie 2016-05-19 23:24:04 -04:00
parent 2af3aa27c7
commit 977239d207
15 changed files with 813 additions and 353 deletions

View file

@ -533,7 +533,7 @@ o.spec("domMock", function() {
o.beforeEach(function() {
spy = o.spy()
div = $document.createElement("div")
e = $document.createEvent("AnimationEvent")
e = $document.createEvent("HTMLEvents")
e.initEvent("transitionend", true, true)
$document.body.appendChild(div)