We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af2ef34 + 38713ba commit 00375b3Copy full SHA for 00375b3
test/e2e/gridObjectTestUtils.spec.js
@@ -0,0 +1,30 @@
1
+/* globals element, by */
2
+
3
+var gridTestUtils = require('./gridTestUtils.spec.js');
4
5
+function getProxyToRealMethod(gridId, method) {
6
+ return function() {
7
+ var callArgs = [gridId].concat(Array.prototype.slice.call(arguments));
8
+ gridTestUtils[method].apply(gridTestUtils, callArgs);
9
+ };
10
+}
11
12
+/**
13
+ * @ngdoc overview
14
+ * @name ui.grid.e2eTestLibrary
15
+ * @description
16
+ * End to end test functions.
17
+ */
18
19
20
+ * @ngdoc service
21
+ * @name ui.grid.e2eTestLibrary.api:gridTestObject
22
23
24
25
+module.exports = function(gridId) {
26
+ for (var method in gridTestUtils) {
27
+ this[method] = getProxyToRealMethod(gridId, method);
28
+ }
29
+};
30
0 commit comments