aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-05 14:09:25 -0700
committerMisko Hevery2010-04-05 14:09:25 -0700
commit1c670b2a7c3f6153ea2e5047722f7151b9795b33 (patch)
tree08d9baac79e65425db3f24fd8bb06a489d855b1f /test/testabilityPatch.js
parent7a4b48020688060debe9cb0f9c17615d7585cbe7 (diff)
downloadangular.js-1c670b2a7c3f6153ea2e5047722f7151b9795b33.tar.bz2
added ng:include
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js22
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) {