文件名称:request-animation-frame-mock:模拟 requestAnimationFrame API
文件大小:12KB
文件格式:ZIP
更新时间:2024-06-26 15:47:43
JavaScript
请求动画帧模拟 模拟 requestAnimationFrame API。 用法 var requestAnimationFrameMock = require('request-animation-frame-mock'); var testedModule = proxyquire('example', { 'request-animation-frame': requestAnimationFrameMock.mock /* mock field is an object with two functions requestAnimationFrame and cancelAnimationFrame */ }); // manual mode is default // it allows you to manually tr
【文件预览】:
request-animation-frame-mock-master
----.jshintrc(1KB)
----requestanimationframe-mock.sublime-project(631B)
----gruntfile.js(5KB)
----lib()
--------mock.js(658B)
--------trigger.js(4KB)
--------queue.js(922B)
----demo()
--------index.html(240B)
--------index.js(53B)
----LICENSE(1KB)
----test()
--------mock.spec.js(3KB)
--------trigger.spec.js(12KB)
--------phantomjs-extensions.js(1KB)
--------karma.conf.js(473B)
----README.md(2KB)
----.gitignore(626B)
----index.js(223B)
----package.json(1KB)