diff options
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index b2ee5526..dc67ddec 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -5,14 +5,28 @@ function nakedExpect(obj) { return expect(angular.fromJson(angular.toJson(obj))); } -angularService('$browser', function(){ - return new MockBrowser(); -}); - function childNode(element, index) { return jqLite(element[0].childNodes[index]); } +extend(angular, { + 'element': jqLite, + 'compile': compile, + 'scope': createScope, + 'copy': copy, + 'extend': extend, + 'foreach': foreach, + 'noop':noop, + 'identity':identity, + 'isUndefined': isUndefined, + 'isDefined': isDefined, + 'isString': isString, + 'isFunction': isFunction, + 'isNumber': isNumber, + 'isArray': isArray +}); + + function sortedHtml(element) { var html = ""; (function toString(node) { |
