10 Commits

Author SHA1 Message Date
Joe Pea
5767ff82b8 chore: convert test code to TypeScript
This is good for checking our own type definitions make sense. Some types were updated based on their usage in the tests.
2020-10-23 16:11:23 -07:00
Joe Pea
bf4048706e format all files in the project now that we have prettier. Yay! 2020-06-02 23:29:00 -07:00
mikebolt
3ddd168ee7 Merge rollup branch with master. 2019-09-01 13:20:52 -07:00
Kevin Peters
cb0895c4ee feat: include rollup to bundle library 2018-04-04 14:00:23 +02:00
Michael Casebolt
2e6a8a2b47 Setting global.window no longer necessary for testing. 2016-08-02 22:08:34 -07:00
sole
3e49aecaaf (feat) Remove minified version, fixes #206 2015-09-29 13:51:42 +01:00
Ben Ripkens
0adef8e4a5 Ensure compatibility with ECMAScript 2015 modules
The module evaluation context of ECMAScript 2015 modules is not the
global context. As such `this` does not point to the global `window`
object. This is problematic for users of ECMAScript 2015 modules as the
included `window.performance.now` polyfill will fail to work.

Instead of `this`, the polyfill should be added to the global `window`
object directly. This is unproblematic because the following code
assumes that `performance.now` will be available under the global
`window` object, i.e. the code was never execution environment agnostic.

Furthermore, established polyfills like the one from Paul Irish also
directly register the polyfill on the global `window` object.

Fixes #209

[1] https://gist.github.com/paulirish/5438650
2015-08-27 16:31:04 +02:00
Lukas
143f1976ef Add performance.now polyfill 2015-02-13 16:59:09 +01:00
Soledad Penades
22a8c68fa5 also test minified version automatically 2014-08-05 08:06:08 -07:00
Soledad Penades
c955377be0 start adding nodeunit-based tests 2014-08-03 15:51:24 -07:00