Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove functions that are no longer in use

  • Loading branch information...
commit d0e07cf731234cebd92e3857181870b58cfcb7a4 1 parent c327866
@davidaurelio davidaurelio authored
Showing with 0 additions and 21 deletions.
  1. +0 −21 test/renderer/event-spec.js
View
21 test/renderer/event-spec.js
@@ -3,27 +3,6 @@ define([
], function(event) {
'use strict';
- function memoize(func) {
- var cache = {};
- return function(param) {
- return (param in cache) ? cache[param] : (cache[param] = func(param));
- }
- }
-
- var getConstructCall = memoize(function(numParameters) {
- var parameters = [];
- for (var i = 0; i < numParameters; i += 1) {
- parameters[i] = 'args[' + i + ']';
- }
- var body = 'return new Constructor(' + parameters.join(', ') + ')';
- return Function('Constructor', 'args', body);
- });
-
- function parameterToPropertyTest(Constructor, args, propertyName, parameterIndex) {
- var construct = getConstructCall(args.length);
- expect(construct(Constructor, args)[propertyName]).toEqual(args[parameterIndex]);
- }
-
describe('renderer events', function() {
describe('PointerEvent', function() {
var PointerEvent = event.PointerEvent;
Please sign in to comment.
Something went wrong with that request. Please try again.