From 75687711f35355bc30e4829439384aab28fcac6d Mon Sep 17 00:00:00 2001 From: href Date: Wed, 1 Sep 2021 10:30:18 +0200 Subject: Commit all the changes that hasn't been committed + updates. --- .../metrics-graphics-3.0-alpha3/tests/helpers.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 priv/static/metrics-graphics-3.0-alpha3/tests/helpers.js (limited to 'priv/static/metrics-graphics-3.0-alpha3/tests/helpers.js') diff --git a/priv/static/metrics-graphics-3.0-alpha3/tests/helpers.js b/priv/static/metrics-graphics-3.0-alpha3/tests/helpers.js new file mode 100644 index 0000000..22d30ad --- /dev/null +++ b/priv/static/metrics-graphics-3.0-alpha3/tests/helpers.js @@ -0,0 +1,20 @@ +function generateMouseEvent(type) { + var event = document.createEvent('MouseEvent'); + event.initEvent(type, true, true); + return event; +} + +// essentially the same as $.extend +function extend(){ + var result = {}, + $__arguments = [].slice.call(arguments); + + $__arguments.forEach(function(obj) { + for (var prop in obj) { + if (obj.hasOwnProperty(prop)) { + result[prop] = obj[prop]; + } + } + }); + return result; +} -- cgit v1.2.3